ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Unless using more than one property
Date Wed, 17 Oct 2007 07:39:25 GMT
 


-----Original Message-----
From: Knuplesch, J├╝rgen [mailto:Juergen.Knuplesch@icongmbh.de] 
Sent: Wednesday, October 17, 2007 9:00 AM
To: user@ant.apache.org
Subject: Unless using more than one property

/*
Is it possible to use two or more propertys with the unless attribut?

The following doesnt seem to work:
  <target name="dsf.copynbdb" unless="dope.nodsf,dope.nodsf.copynbdb">

It looks like that the >,< is interpreted as part of the property.

I cant find the answer to this question in the Ant-Doku.
*/

no, but you can bundle those things to check in a condition  =

<condition property="copy.no">
<and>
...
</and>
</condition>

and then =

 <target name="dsf.copynbdb" unless="copy.no">

If you need to do more complicated stuff with execution-rules,
flow-control ... then have a look at  AntXtras  =

http://antxtras.sourceforge.net/

Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message