ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ventimiglia, David" <David.Ventimig...@msdw.com>
Subject RE: make -D in ant?
Date Wed, 01 Nov 2000 20:17:57 GMT
Maybe I'm missing something, but why doesn't ant -Dbasedir=C:\plymediadev
work?

-----Original Message-----
From: robert@elastica.com [mailto:robert@elastica.com]
Sent: Wednesday, November 01, 2000 11:04 AM
To: Samuel R Listopad II
Cc: ant-user@jakarta.apache.org; robert@elastica.com
Subject: RE: make -D in ant?


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