简体   繁体   English

如何在同一CMD窗口中显示ANT exec任务输出?

[英]How do I display ANT exec task output in the same CMD window?

I am trying to build an ADF application using ANT from the command line, by making use of OJDeploy. 我正在尝试通过使用OJDeploy从命令行使用ANT来构建ADF应用程序。

In the build.xml OJDeploy is executed on the CMD line using an exec task, I need to display the output from this task on the same command line. 在build.xml中,使用exec任务在CMD行上执行OJDeploy,我需要在同一命令行上显示此任务的输出。

I have tried running ANT with the -v option, and writing the output to a file but it does not give any of the output from OJDeploy executing. 我尝试使用-v选项运行ANT,并将输出写入文件,但它不提供OJDeploy执行中的任何输出。

See How can I ensure all output from Ant's exec task goes to stdout? 请参阅如何确保Ant的exec任务的所有输出都输出到stdout?

Or perhaps. 也许。

 <exec outputproperty="output" ... /> <echo message="${output}" /> 

I solved the problem by simply calling "ojdeploy64" instead of "ojdeploy". 我通过简单地调用“ ojdeploy64”而不是“ ojdeploy”解决了该问题。 After I did that the output was shown in the command line as I expected. 完成后,输出将按预期显示在命令行中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM