L
Lax
Hi all,
I dont know if this is the appropriate group for ANT build questions,
sorry if its not.
In my ANT build.xml, I've a compile task calling javac compiler, pretty
basic.
But, before running the javac task the build creates a bunch of temp
files.
If and when the compilation fails, the build exits and I'd like to
delete the temp files before the build finishes/fails.
Is there any way to trap the return status from the javac( or any)
task? Is there any status or ERRORLEVEL like property/environment
variable available after running the task?
Sample code:
<tasks to create bunch of temp files>
<target name="javac">
<javac>
blah blah
</javac>
Check javac return status here...
If javac is successful, do the mail
If javac is not successful, cleanup the temp files
</target>
Any idea how I can test the success of a nested task?
Thanks for your time.
I dont know if this is the appropriate group for ANT build questions,
sorry if its not.
In my ANT build.xml, I've a compile task calling javac compiler, pretty
basic.
But, before running the javac task the build creates a bunch of temp
files.
If and when the compilation fails, the build exits and I'd like to
delete the temp files before the build finishes/fails.
Is there any way to trap the return status from the javac( or any)
task? Is there any status or ERRORLEVEL like property/environment
variable available after running the task?
Sample code:
<tasks to create bunch of temp files>
<target name="javac">
<javac>
blah blah
</javac>
Check javac return status here...
If javac is successful, do the mail
If javac is not successful, cleanup the temp files
</target>
Any idea how I can test the success of a nested task?
Thanks for your time.