Hari,
Your test.xml worked for me.
I did the following: C:\Temp>ant -buildfile test.xml -Dprop1=zzzz
-Dprop2=aaaa
It's output was:
Buildfile: test.xml
Myproperty:
[echo] prop1 is : zzzz
[echo] prop2 is : aaaa
BUILD SUCCESSFUL
Total time: 2 seconds
Felice
-----Original Message-----
From: Hari Ramasubbu [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: Re: ant -D option
Still i cant get the second property set from the
command line.
this what i get on the command prompt.
C:\build>callant -buildfile test.xml -Dprop1=zzzz
-Dprop2=aaaa
Buildfile: test.xml
Myproperty:
[echo] prop1 is : zzzz
[echo] prop2 is : ${prop2}
BUILD SUCCESSFUL
Total time: 0 seconds
-------------------------------------
this is the test build file i wrote
<project name="test" default="Myproperty" basedir=".">
<target name="Myproperty">
<echo>prop1 is : ${prop1} </echo>
<echo>prop2 is : ${prop2} </echo>
</target>
</project>
thanks
hari