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

Problem with spaces in path names on XP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ant-plugin
    • None
    • Platform: All, OS: Windows XP

      This is a little weird. I got an ant build working fine but I had to define a
      property for the build to succeed. As soon as I did the log showed that the path
      to ant was now proving to be a problem.

      In the first case, this is the command that was executed:

      cmd.exe /C "C:\Program Files\eclipse\plugins\org.apache.ant_1.6.5\bin\ant.bat"
      -file build.xml && exit %%ERRORLEVEL%%

      In the second case this was the command:

      cmd.exe /C "C:\Program Files\eclipse\plugins\org.apache.ant_1.6.5\bin\ant.bat"
      -file build.xml "-DTOMCAT_HOME=C:\Tomcat\Tomcat 5.5" && exit %%ERRORLEVEL%%

      The only difference is the addition of "-DTOMCAT_HOME=C:\Tomcat\Tomcat 5.5", but
      this is the error I get:

      'C:\Program' is not recognized as an internal or external command,
      operable program or batch file.

      Note that without the property definition I don't get this error.

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

              Created:
              Updated:
              Resolved: