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 00:55:00 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 shalmaneser@ePost.de  2005-01-07 01:55 -------
There is a smarter fix to lines like
IF "%VARIABLE%"=="" ... 

a.) do *not* use IF DEFINED, since this will break execution on Win98
which doesn't support "DEFINED"

b.) reverse the test, using a simple uninterpreted character, eg. '_'
that is unlikely to apear isolated at the start of the String.
Example:

  IF _==%VARIABLE%_

Rationale: for command.com and its ugly brothers, there has to be
something nonspacey before and after the ==. 
The sollution would work in all cases with just one exception:
- VARIABLE=_ some other text, which should be reasonably uncommon
for paths aund file names.

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