ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Joshua" <daniel.jos...@gridnode.com>
Subject Properties in Ant are immutable [was: Bug with property/propertyfile ?]
Date Mon, 21 Jul 2003 02:50:12 GMT
Since properties cannot be changed, why isn't there some form of varibles in
Ant?

This will really make Ant a more useful language..


Regards,
Daniel


-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Friday, 18 July, 2003 8:28 PM
To: user@ant.apache.org
Subject: RE: Bug with property/propertyfile ?


> Hi all,
>
> I am not really sure if this is a bug actually.
>
> I used <propertyfile> to write to a file, and then read from
> that file using
> <property file="">,
> and write again, then read again, etc.
>
> However, after writing to the file and reading from it,
> the value that is read is still the original value sometimes,
> and not the
> recently written one.


Properties in Ant are immutable, that means: once set the value of a
property
canĀ“t be changed.


> Here's my scenario:
>
> I am using ant (with ant-contrib) to build and application
> and the below is
> a snippet of how I try to execute
> sql files to setup my database. New sql files are often
> added, and only the
> new ones should be executed.
> So I store the filenames of the sql files I have executed to
> exclude them
> from the fileset.

Sounds for a scenario for a selector ... maybe the <date> selector.
http://ant.apache.org/manual/CoreTypes/selectors.html#dateselect




Jan


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


Mime
View raw message