It's all about the answers!

Ask a question

How to pass the output of an ant task to a java code

Ananya Joisa (4552124) | asked Sep 24 '12, 7:10 a.m.
edited Sep 24 '12, 7:10 a.m.

I am using the ant task 'sshexec'. I have stored the output in the 'outputProperty' tag.
How can I pass the value in 'outputProperty' to a Java code?

Please help.


2 answers

permanent link
Scott Crouch (48532326) | answered Sep 24 '12, 8:27 a.m.
 Take a look at this article on writing an ant custom task:

permanent link
Ananya Joisa (4552124) | answered Sep 27 '12, 1:23 a.m.
Thanks Scott.

Is there a way to access the build results through the build definition object or any object in the code. Since on double clicking/right clicking on the build definition, we get the list of build results, I was assuming there might be a function to access the results from the build definition.

Kindly guide.

Thank you.

Your answer

Register or to post your answer.