Take the 2-minute tour ×

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.

share|improve this question
You're going to be way better off using the ojdeploy ant task. –  thekbb Oct 16 '13 at 14:25
Please can you explain why. –  LDM91 Oct 16 '13 at 16:31
For starters, all of it's output would show up in the right place. It's just genearlly cleaner to keep it all in ant, rather than exec out. You'll have nice named parameters to the task rather than many arg values to exec. –  thekbb Oct 16 '13 at 18:50
add comment

2 Answers

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

Or perhaps.

<exec outputproperty="output" ... />
<echo message="${output}" />
share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer


