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

Clover automatic integration doesn't handle paths with spaces

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • clover-plugin
    • None

      E.g.

      cmd.exe /C '"d:\path with spaces\Ant\bin\ant.bat -file build.xml ...'
      

      gets mangled into this when auto integration is enabled

      cmd.exe /C d:\path clover.fullclean with spaces\Tools\Ant\bin\ant.bat -file build.xml ...
      

          [JENKINS-12189] Clover automatic integration doesn't handle paths with spaces

          Bug is still present in version 4.8.0.

          Marek Parfianowicz added a comment - Bug is still present in version 4.8.0 .

          Workaround:

          Install Ant in a folder with no space characters.

          Marek Parfianowicz added a comment - Workaround: Install Ant in a folder with no space characters.

          There was a refactoring of ant task handling in
          https://github.com/jenkinsci/clover-plugin/commit/ae3eb62493acdd1c4a3246b77a427c675a4d328d (clover-plugin 4.9.0 and newer).

          Tested with clover 4.11, it does not recognize Ant with spaces in a path as an Ant task:

          Clover did not found Ant command in '""c:\Program Files\Ant\apache-ant-1.9.4\bin\ant.bat" clean test && exit %%ERRORLEVEL%%"' - not integrating.
          [workspace] $ cmd.exe /C '""c:\Program Files\Ant\apache-ant-1.9.4\bin\ant.bat" clean test && exit %%ERRORLEVEL%%"'
          

          So the bug report is still valid.

          Marek Parfianowicz added a comment - There was a refactoring of ant task handling in https://github.com/jenkinsci/clover-plugin/commit/ae3eb62493acdd1c4a3246b77a427c675a4d328d (clover-plugin 4.9.0 and newer). Tested with clover 4.11, it does not recognize Ant with spaces in a path as an Ant task: Clover did not found Ant command in '""c:\Program Files\Ant\apache-ant-1.9.4\bin\ant.bat" clean test && exit %%ERRORLEVEL%%"' - not integrating. [workspace] $ cmd.exe /C '""c:\Program Files\Ant\apache-ant-1.9.4\bin\ant.bat" clean test && exit %%ERRORLEVEL%%"' So the bug report is still valid.

            marekparf Marek Parfianowicz
            mstudman Michael Studman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: