2

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.

Amr Gawish
  • 2,015
  • 1
  • 17
  • 29
LDM91
  • 437
  • 1
  • 7
  • 16
  • 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

2 Answers2

4

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

Or perhaps.

<exec outputproperty="output" ... />
<echo message="${output}" />
Community
  • 1
  • 1
Tobber
  • 7,211
  • 8
  • 33
  • 56
0

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.

LDM91
  • 437
  • 1
  • 7
  • 16