ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stephan beal <step...@wanderinghorse.net>
Subject <condition> extension: does this make sense?
Date Sat, 30 Mar 2002 11:38:29 GMT
Is there already a way to do this:

<condition>
<and>
  <exec .../>
<!-- fail == BuildException thrown -->
</and>
<and>
  <antcall .../>
</and>
</condition>

Same could be done using <or>.

That looks like a pretty safe way to check for platform-specific commands (or 
maybe <available> could be extended to look for a system command). i could 
see using such a construct to essentially do some of the same things a  
'configure' script typically does.

<and> may need to force failonerror=true on the exec child. In this context, 
<exec failonerror='false'.../> does not make sense, as it invalidates our 
<and>.


----- stephan@wanderinghorse.net
http://qub.sourceforge.net  - http://radioaqtiph.sourceforge.net
http://www.countermoves.net - http://stephan.rootonfire.org
"Attention is narrowed perception." -- Alan W. Watts





--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message