ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Property Setting
Date Mon, 26 Feb 2001 20:35:41 GMT
----- Original Message -----
From: "Bill Burton" <billb@progress.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, February 26, 2001 9:16 PM
Subject: Re: Property Setting


> Hello,
>
> This should be fixed in Ant 1.3beta3.  In the meantime, edit the ant
> script and change the $@ on the last line to "$@" so that arguments will
> be passed quoted into the JVM.
>

Yes, I think so too. At least it works on my SuSE 7.1 in every combination
which came to my mind :-)

seessle@linux:~/work > cat build.xml
<?xml version="1.0"?>

<project name="Ant" default="test3" basedir=".">

  <target name="test3">
    <echo message="${myProperty}"/>
  </target>

</project>

seessle@linux:~/work > ant -DmyProperty="foo bar"
Buildfile: build.xml

test3:
     [echo] foo bar

BUILD SUCCESSFUL

Total time: 1 second
seessle@linux:~/work > ant -D"myProperty=foo bar"
Buildfile: build.xml

test3:
     [echo] foo bar

BUILD SUCCESSFUL

Total time: 1 second
seessle@linux:~/work > ant "-DmyProperty=foo bar"
Buildfile: build.xml

test3:
     [echo] foo bar

BUILD SUCCESSFUL

Total time: 1 second

Nico



Mime
View raw message