ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vittoria, Felice" <Felice_Vitto...@bmc.com>
Subject RE: ant -D option
Date Mon, 18 Jun 2001 21:02:01 GMT
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:hariramasubbu@yahoo.com]
Sent: Monday, June 18, 2001 3:52 PM
To: ant-user@jakarta.apache.org
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


Mime
View raw message