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 38771] - apply task strips needed quote character from command line
Date Thu, 23 Feb 2006 19:30:59 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=38771>.
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=38771





------- Additional Comments From bpracht@nc.rr.com  2006-02-23 20:30 -------
(In reply to comment #4)
> Created an attachment (id=17787)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17787&action=view) [edit]
> Example showing that this is not Ant's fault
> 
> extract the files into a folder and run ant.  You will see two sets of output,
> one from calling "java ShowArgs" with <exec> and quotes embedded in XML args;
> the other calling Run with <java>, which uses the core Java APIs to run java
> ShowArgs with quotes specified in arguments.  The quotes still disappear; thus
> I must attribute this behavior to Java.  I am running Sun JDK 1.4.2_10.
Thanks for your quick response.
Unfortunately, your example is missing the arguments for the   <java
classname="Run" classpath="." />.
But, if I understand what you're saying, Ant is correctly converting &quot; to
quote (") in the string, then calling making a core Java API call to run
java.exe with the specified arguments, including the quoted argument.  Then, the
Java API, according to your example must be stripping out quotes in the middle
of the argument.  Am I correct?  If so, which core API call is it making, and
can I have an example of it?

-- 
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