----- Original Message -----
From: "Bill Burton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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


Reply via email to