开发者

How to pass (cli) arguments by file in Ant

开发者 https://www.devze.com 2022-12-22 08:10 出处:网络
I\'m using Ant to build开发者_高级运维 my project, generate docs and check coding strandard violations. I use some external tool through exec task. Exec prefixes the output lines with [exec]

I'm using Ant to build开发者_高级运维 my project, generate docs and check coding strandard violations. I use some external tool through exec task. Exec prefixes the output lines with [exec]

This string messes my output up. If I specify the -e switch in the command line, it remains quiet.

Is there a way to

  • specify the -e switch on every run in the build.xml file?
  • or something else equivalent.


Maybe the Java System Properties will help ... see http://ant.apache.org/manual/running.html#sysprops

In particular, I think that setting the property build.compiler.emacs to true may help. Anyway, I doubt that setting (or, re-setting it via ant-extensions) it in the build file helps, as properties are designed to be immutable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号