Hello,
I have a script that depends on a property being set on the command
line. The first thing it does is ensure that property is set. If it's
not set the script cannot proceed, but I don't want it to end my entire
build (this script is ran in cruisecontrol along with a number of other
things).
As of now, my solution is well quite bad. But it's the best I've found. I do
<property name="abort" value="false"/>
<if test="${not property::exists('myProp')}">
<echo>give user a decent error message here</echo>
<property name="abort" value="true"/>
</if>
then the rest of the script will only perform if abort is false. But
that requires I check the abort property often. I'd prefer something like
<if test="${not property::exists('myProp')}">
<echo>error message</echo>
<!-- *** just exit the script, don't throw a build exception, no
error codes, just exit and return 0 *** -->
<exit/>
</if>
I'm a very new nant user and I haven't used ant in many years. So if I'm
missing something obvious I apologize. I searched the mailing list
archive but didn't really find anything relevant.
Thanks,
Matt
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users