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 30921] - Quotes in CLASSPATH can screw up ant.bat
Date Thu, 06 Jan 2005 21:12:40 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=30921>.
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=30921





------- Additional Comments From ant@kruithof.xs4all.nl  2005-01-06 22:12 -------
This would break ant if no classpath is set at all, as then also the java
command being called would have to be stripped from the quotes, which would in
turn take the first of the ant opts as classpath if the classpath is not set at all.

Trying with

    BLAH set to: | some text | "some text" |  ""   | not set | text  |
test performed   |           |             |       |         |       |
-----------------+-----------+-------------+-------+---------+-------+
%BLAH%==""       |   error   |    false    | true  |  false  | false |
-----------------+-----------+-------------+-------+---------+-------+
"%BLAH%"==""     |   false   |    error    | false |  false  | false |
-----------------+-----------+-------------+-------+---------+-------+
""%BLAH%""=="""" |   error   |    false    | false |  false  | false |
-----------------+-----------+-------------+-------+---------+-------+

shows that the check is completely bogus and that the batch script either fails
or runs ant with the classpath, unless the -noclasspath option was given.

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