Hi, Ho to exit from executing the rest of targets if some conditions get failed.
This is what I expect : <target name="nested"> <if> <equals arg1="abc" arg2="def"/> <then> <echo>success</echo> <property name="letter" value="abc" /> <echo>${letter}</echo> </then> <else> <echo>Not equal</echo> *******Code For Exit********** </else> </if> </nested> <target name="callnested" depends="nested"> <echo>I don't want to see this message in the command prompt</echo> </target> If I execute the target callnested then I shouldn't see the message of callnested ("I don't want to see this message in the command prompt"). -- View this message in context: http://www.nabble.com/How-to-skip-the-rest-of-execution-tp22369239p22369239.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org