简体   繁体   中英

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.

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.

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.

See How can I ensure all output from Ant's exec task goes to stdout?

Or perhaps.

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

I solved the problem by simply calling "ojdeploy64" instead of "ojdeploy". After I did that the output was shown in the command line as I expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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