ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35360] - ${basedir} can contain spaces
Date Sun, 14 Aug 2005 18:20:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35360





------- Additional Comments From phil.weighill-smith@volantis.com  2005-08-14 20:20 -------
(In reply to comment #2)
> <property name="args" value="${basedir}/foofile ${basedir}/barfile" />
> <java fork="yes" classname="test.Main" classpath=".">
> 	<arg line="${args}"/>
> 	<arg value="${args}"/>
> </java>

What you actually need to do is:

<property name="first-arg" value="${basedir}/foofile"/>
<property name="second-arg" value="${basedir}/barfile"/>
<java fork="yes" classname="test.Main" classpath=".">
    <arg value="${first-arg}"/>
    <arg value="${second-arg}"/>
</java>

I believe that this is pretty well documented in 
http://ant.apache.org/manual/using.html#arg.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message