ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taylor, Jeremy" <jtay...@lehman.com>
Subject RE: properties that are not set
Date Thu, 28 Sep 2000 11:15:52 GMT
Yes that is what the "if" attribute of target is for.

You should read the ANT document about  targets and use the "if" attribute
to do something like

<target name="makedir4" if="4">
  ..... your mkdir task
</target>


> -----Original Message-----
> From:	Wim Bervoets [SMTP:wim.bervoets@iconmedialab.com]
> Sent:	28 September 2000 12:12
> To:	'ant-user@jakarta.apache.org'
> Subject:	FW: properties that are not set
> 
> 
> 
> -----Original Message-----
> From: Wim Bervoets [mailto:wim.bervoets@iconmedialab.com]
> Sent: Tuesday, September 26, 2000 12:46 PM
> To: ant-user@jakarta.apache.org
> Subject: properties that are not set
> 
> 
> Hello,
> 
> I read properties in from a file. I want to know how I can test if a
> property has been set/hasn't been set.
> Eg I have:
> 
> 1=Wim
> 2=Tom
> 3=Stefan
> 
> So I use {$1}, {$2}, {$3} and create a directory with that name each time.
> Now {$4} is not set so I would like to be able to stop creating
> directories
> then (and stop checking if {$5}, {$6},... has been set)
> 
> Is this possible ?
> 
> Wim
> 
> --------------------------------------------------------------------------
> --
> ------------
> Wim Bervoets 
> Internet Applications Developper @ Icon Medialab Brussels
> 
> wim.bervoets@iconmedialab.com
> http://www.iconmedialab.com
> 
> Wim's BIOS Page
> http://www.ping.be/bios
> 
> Freelancer for Computer Magazine
> http://www.compmag.com
> --------------------------------------------------------------------------
> --
> ------------

Mime
View raw message