1

I´m running a macro in ant build script in a netbeans project and in this macro is called an exec operation. In the macro I can write something to a run console of the netbeans project, but what if I want to write something during executing the exec statement? Like output from the exec?

Thanks for answers, O.

0

1 Answer 1

1

Use the resultproperty property. This post explains it: How to get a return value from an exec in ant script

Sign up to request clarification or add additional context in comments.

3 Comments

so everything I write to console via the executed program will be displayed in ant script console?
I do not think you need any special handling for that. At least on the commandline, I get the output of the executed external commands automatically. Did you try it?
Actually I did not:) I've never thought that it can be this easy. I'll give it a try. thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.