Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7451

Ant can't find target after update to hudson 1.3.7.6

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ant-plugin
    • 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%%"'

          [JENKINS-7451] Ant can't find target after update to hudson 1.3.7.6

          evernat added a comment - - edited

          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.

          evernat added a comment - - edited 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.

            Unassigned Unassigned
            p_suwanpech p_suwanpech
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: