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

Clover automatic integration doesn't handle paths with spaces

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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 ...
      

        Attachments

          Activity

          Hide
          marekparf Marek Parfianowicz added a comment -

          Bug is still present in version 4.8.0.

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

          Workaround:

          Install Ant in a folder with no space characters.

          Show
          marekparf Marek Parfianowicz added a comment - Workaround: Install Ant in a folder with no space characters.
          Hide
          marekparf 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.

          Show
          marekparf 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.

            People

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

              Dates

              Created:
              Updated: