ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@elastica.com
Subject RE: make -D in ant?
Date Wed, 01 Nov 2000 19:04:06 GMT
What can we expect? It would definately be nice to be able to pass in 
properties from the command line especially for baseDir or for that
matter anything else. I don't want to keep these references in the 
.xml file.

On Wed, 1 Nov 2000, Samuel R Listopad II wrote:

> > <project name="plymedia" basedir="${rootDir}">
> >
> > and
> >
> > ant -DrootDir=C:\plymediadev
> >
> > I want to hide all references to absolute paths outside of
> > the build file.
> >
> > when I do this it doesn't evaluate $rootDir as I would expect.
> 
> Ok this is what I was getting at with my last post (albeit poorly).  Ant 1.2
> only seems
> to evaluate properties at creation time.  However I would propose a more
> dynamic system
> where properties were recursively evaluated whenever used.
> 
> i.e. in this case when ${basedir} used it would lookup basedir in the hash,
> get the value
> of ${rootDir},  and the try to extract rootDir from the hashmap and find
> C:\plymediadev.
> 
> Its a simple change,  I was just wondering if it had already been thought of
> and done/shot down
> for some glaring reason I could not see.
> 
> Sam
> 


Mime
View raw message