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=38914>.
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=38914





------- Additional Comments From [EMAIL PROTECTED]  2006-03-13 16:07 -------
(In reply to comment #1)
> I've just confirmed this issue with the ant code base (trunk).
> 
> 
I think its a bug in the ant.bat script (tested on XP Home SP1):

I cd'ed into ANT_HOME_1.6.5\bin\ and copied ant.bat to antDebug.bat
and then changed 1st line from
   @echo off
to
   @echo on
Then I ran
    antDebug -p
with 2 cases (a = bad, b = good)
   a) set classpath=""
   b) set classpath=
in the bad case (a), there is a
   -cp """""
argument which looks odd to me..


Test result a)
--------------
   set classpath=""
   antDebug -p
and eventually I see this:
 
--- BEG CLIPPED OUTPUT ----
C:\temp\ant.bug>if not """" == "" goto runAntWithClasspath 

C:\temp\ant.bug>"C:\jdk1.5.0_04\bin\java.exe"  -classpath
"C:\apache-ant-1.6.5\lib\ant-launcher.jar" "-Dant.home=C:\apache-ant-1.6.5"
org.apache.tools.ant.launch.Launcher  -cp """" -p 
Buildfile: build.xml

init:
     [echo] FAKE init step

compile:
     [echo] FAKE compile step
     [echo] building Hello.jar

BUILD SUCCESSFUL
Total time: 0 seconds

C:\temp\ant.bug>goto end 
------------ END CLIPPED OUTPUT ---------


Test case b)
------------
But if I unset the classpath:
  set classpath=
and run
  antDebug -p
I see that the actual execution path is different (the -cp """"" is left out):

----------- BEG CLIPPED OUTPUT ------------
C:\temp\ant.bug>if "yes" == "no" goto runAntNoClasspath 

C:\temp\ant.bug>if not "" == "" goto runAntWithClasspath 

C:\temp\ant.bug>"C:\jdk1.5.0_04\bin\java.exe"  -classpath
"C:\apache-ant-1.6.5\lib\ant-launcher.jar" "-Dant.home=C:\apache-ant-1.6.5"
org.apache.tools.ant.launch.Launcher  -p 
Buildfile: build.xml

Main targets:

 compile  compile java stuff step and builds ${jarfile}
 init     initialization stuff
Default target: compile

C:\temp\ant.bug>goto end 
----------- END CLIPPED OUTPUT ------------

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to