开发者

How to pass (cli) arguments by file in Ant

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜