ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhavin Patel <bpa...@go2.com>
Subject RE: ant -D option
Date Mon, 18 Jun 2001 20:55:28 GMT
is callant a batch file? if so you might be only specifying %1 %2 and not %3

-----Original Message-----
From: Hari Ramasubbu [mailto:hariramasubbu@yahoo.com]
Sent: Monday, June 18, 2001 1: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