ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: make -D in ant?
Date Thu, 02 Nov 2000 08:17:25 GMT
>>>>> "r" == robert  <> 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

<project name="plymedia">


ant -Dbasedir=C:\plymediadev


View raw message