ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: make -D in ant?
Date Thu, 02 Nov 2000 08:17:25 GMT
>>>>> "r" == robert  <robert@elastica.com> writes:

 r> Can I parse in parameters from the command line?  Why can't I do
 r> this

 r> <project name="plymedia" basedir="${rootDir}">

 r> and

 r> ant -DrootDir=C:\plymediadev

Because Ant doesn't evaluate ${} constructs in attributes of project
and target. At least not in Ant 1.2.

The simple workaround, don't specify a basedir in you build file at
all:

<project name="plymedia">

and

ant -Dbasedir=C:\plymediadev

Stefan

Mime
View raw message