ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject AW: Build failed is wrong
Date Fri, 03 Oct 2003 13:38:48 GMT
Hi Venkat,

add failonerror="true" on your invocation of the command (<exec/>).
If a dependent target fails, then your build will be stopped automatically.
If you want to run a target which is dependent upon other targets, then you
might want to create a new target which does not have dependencies and
invoke just this one.

one way of doing this is :

<target name="aaa" depends="bbb">
    <antcall target="ccc"/>


<!-- this target can be invoked directly, does not have dependencies -->
<target name="ccc">
<!-- here some actions --->

<target name="bbb">
<!-- here some other actions --->



-----Urspr√ľngliche Nachricht-----
Von: venkatesh Sira []
Gesendet: Donnerstag, 2. Oktober 2003 23:13
An: Ant Users List
Betreff: Build failed is wrong

1) I am running script using executable command inside ant build file, Ant
always says build successfull, even if the script run & not done its task.
How can i return the error out of script back to ant, so that
If script does its job return sucessful else unsuccessful.

2) Other thing how can run task only if dependent target is successful.

3) How can run the only the target even though it is dependent on other


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message