-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
jdk1.6.20,windows 7 64 bit,ant 1.8.1
Ant can't find target after update to hudson 1.3.7.6 (ant say Target "clean,war" does not exist in the project)
I found that hudson add extra double quote to ant target as below.
$ cmd.exe /C '"D:\tools\apache-ant-1.8.1\bin\ant.bat -file build3.xml "clean,war" && exit %%ERRORLEVEL%%"'
and below is previous version that i used.
$ cmd.exe /C '"D:\tools\apache-ant-1.8.0\bin\ant.bat -file build3.xml clean,war && exit %%ERRORLEVEL%%"'
according to issue 2149, using a space instead of a comma is supposed to work now:
clean war
This is the way documented in the ant manual:
http://ant.apache.org/manual/running.html#commandline
And this should probably be noted in the Jenkins inline help.