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 Fri, 07 Jan 2005 14:01:34 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-07 15:01 -------
Why is everyone reacting ignoring the suspected next problem that will be hit 
if the check is removed? The problem of starting java with ant call and a set
classpath when the classpath contains spaces? (If the answer would be then put
quotes around the classpath if it contains space, for exactly the same reason
the answer could be then don't put quotes around the classpath.)

As said getting rid of the check would completely do the trick, as any check
either gives an error in an "valid" situation and returns false in all other
valid cases.
Currently ant always is called on windows XP with an empty classpath if the
classpath is not set

I have tried several patches, on the test and the line after it, the best result
so far was without any test at all (as the test would either sometimes give an
error, or would only return false.


if %BLAH%_ == _ echo true with BLAH not set returns an emtpy line on my system,
not true, at least when run from the command line.
When run from an batch file it will return true argh.

echo %BLAH%_ for an undefined BLAH gives %BLAH%_ as response, therefore %BLAH%_
is not equal to _

that would mean the extended table reads:
    BLAH set to: | some text | "some text" |  ""   | not set | text  | _ text |
test performed   |           |             |       |         |       |        |
-----------------+-----------+-------------+-------+---------+-------+--------+
%BLAH%_==_       |   error   |    false    | false |  true   | false | error  |
-----------------+-----------+-------------+-------+---------+-------+--------+
_==%BLAH%_       | false(*)  |    false    | false |  true   | false | error  |
-----------------+-----------+-------------+-------+---------+-------+--------+
not _==%BLAH%_   |   error   |    true     | true  |  false  | true  |false(2)|
-----------------+-----------+-------------+-------+---------+-------+--------+
(2) should have returned true though! 
(3) the goal probably was to get the opposite here.

so also here either error or the result is always the same, or deviates from the
same only if it shouldn't have deviated.

btw. is it possible to have an if defined in an batch script for win9x as long
as it isn't executed?

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