ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Joshua" <>
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

This will really make Ant a more useful language..


-----Original Message-----
From: []
Sent: Friday, 18 July, 2003 8:28 PM
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
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message