Xianyi Ye
Xianyi Ye

Reputation: 1043

How to make ANT Task <java> show detailed error if failed?

I'm using ANT to build app. But when the building is failed, it displays: Java returned: 1 There is nothing more info so that it is hardly for me to debug what's going on. The only thing I knew is the failure happened during executed a ANT tak . So, I believe that an exception was thrown by the invoking method.

But how can I make ANT display the detail information once there is anything wrong during ANT Task?

I do appreciate anyone's help!

Upvotes: 1

Views: 1901

Answers (2)

Xianyi Ye
Xianyi Ye

Reputation: 1043

Thanks everyone. Finally, I found the answer by myself. The attribute "output" of <java> task can help on this case. e.g. output="C:/buildError.log"

Upvotes: 1

ramp
ramp

Reputation: 1256

Use the 'verbose' property of javac which is set to 'no' by default

<javac verbose = 'true' srcdir = "...">

Upvotes: 2

Related Questions