https://issues.apache.org/bugzilla/show_bug.cgi?id=47060





--- Comment #3 from J.M. (Martijn) Kruithof <[email protected]>  2009-04-25 
01:53:43 PST ---
This seems to be an issue in Runtime.exec() of java.
The lines CMD is the actual command passed to the Runtime.exec method of java.
As can be seen no quotation is applied in either case.

Given the relative infrequence in directories with () and without whitespace,
and the indication that the inconsistency arises from an issue with the jre
used I have only opened a bug report to Sun.


D:\data\eclipseworkspace\ant-trunk\testje\testje()>..\..\dist\bin\ant
Buildfile: D:\data\eclipseworkspace\ant-trunk\testje\testje()\build.xml

all:
     [echo] Running Program...
     [exec] CMD D:\data\eclipseworkspace\ant-trunk\testje\testje()\this.bat
     [exec] D:\data\eclipseworkspace\ant-trunk\testje\testje wordt niet herkend
als een interne
     [exec] of externe opdracht, programma of batchbestand.
     [exec] Result: 1

BUILD SUCCESSFUL
Total time: 1 second
D:\data\eclipseworkspace\ant-trunk\testje\testje()>cd ..

D:\data\eclipseworkspace\ant-trunk\testje>cd "test je()"

D:\data\eclipseworkspace\ant-trunk\testje\test je()>..\..\dist\bin\ant
Buildfile: D:\data\eclipseworkspace\ant-trunk\testje\test je()\build.xml

all:
     [echo] Running Program...
     [exec] CMD D:\data\eclipseworkspace\ant-trunk\testje\test je()\this.bat
     [exec]
     [exec] D:\data\eclipseworkspace\ant-trunk\testje\test je()>echo Hoi
     [exec] Hoi

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to