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=35522>.
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=35522
Summary: ant.bat splits system properties passed by -
D<prop>=<val> option
Product: Ant
Version: 1.6.5
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Wrapper scripts
AssignedTo: dev@ant.apache.org
ReportedBy: urs.fiore.2@credit-suisse.com
The shift command used in the ant.bat script to iterate over the command line
splits options like '-D<prop>=<val>' into '-D<prop>' and '<val>'.
Such a
property will not be recognized by the java interpreter.
You may use follwing script to see the errorneous behaviour:
<<<cut into a file like param.bat>>>
@echo off
:readParam
if ""%1""=="""" goto end
echo %1
shift
goto readParam
:end
<<<end cut into a file like param.bat>>>
run: param.bat -Dperson=urs
--
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
|