Summary: | ant.bat (or cmd?) mangles command-line arguments ending in equals sign | ||
---|---|---|---|
Product: | Ant | Reporter: | Trejkaz (pen name) <trejkaz> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.9.4 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Trejkaz (pen name)
2015-05-05 01:25:07 UTC
Turns out running it directly breaks too, so I guess it isn't exec, it must be either cmd or the batch file. C:\Users\Tester\Documents\issues\ant\cmd mangling> ant -f sub-build.xml -Da= -Db=c Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Buildfile: C:\Users\Daniel\Documents\issues\ant\cmd mangling\sub-build.xml BUILD FAILED Target "c" does not exist in the project "sub-build". Total time: 0 seconds This is the nature of Windows batch files https://support.microsoft.com/en-us/kb/35938 The code inside the batch file sees '/c' 'ant.bat' '-Da' '-Db' 'c' and there isn't anything we could do about it. You will need to provide some kind of value to a. IIRC quoting won't help either. My guess is that providing an ant.exe might get around it. |