You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jean-Marc Borer (JIRA)" <ji...@codehaus.org> on 2009/05/27 09:44:42 UTC

[jira] Created: (MCOMPILER-99) Spaces in for external executable are not accepted

Spaces in for external executable are not accepted
--------------------------------------------------

                 Key: MCOMPILER-99
                 URL: http://jira.codehaus.org/browse/MCOMPILER-99
             Project: Maven 2.x Compiler Plugin
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: Windows XP
            Reporter: Jean-Marc Borer


When the path to the external executable in <executable> contains space(s), the build will fail: the command is misunderstood because it stops at the first space encountered.

Example:
<executable>C:\Program Files\java\jdk1.6.0_11\bin\javac.exe</executable>
The plugin will try to execute "C:\Program" instead.

On windows the only workaround I know of is:
<executable>C:\PROGRA~1\java\jdk1.6.0_11\bin\javac.exe</executable>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCOMPILER-99) Spaces in for external executable are not accepted

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277231#comment-277231 ] 

Robert Scholte commented on MCOMPILER-99:
-----------------------------------------

Could someone verify if this is still a problem? With Windows7 I'm not able to reproduce this issue.
The problem should be caused by the [plexus-compiler|http://plexus.codehaus.org/plexus-components/plexus-compiler/]. Meanwhile we've already updated its version from 1.6 (used by maven-compiler-plugin-2.1) to 1.8.2. Strange enough [Plexus' Jira|http://jira.codehaus.org/browse/PLXCOMP/component/12541] doesn't refer to such an issue.

> Spaces in for external executable are not accepted
> --------------------------------------------------
>
>                 Key: MCOMPILER-99
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-99
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Jean-Marc Borer
>
> When the path to the external executable in <executable> contains space(s), the build will fail: the command is misunderstood because it stops at the first space encountered.
> Example:
> <executable>C:\Program Files\java\jdk1.6.0_11\bin\javac.exe</executable>
> The plugin will try to execute "C:\Program" instead.
> On windows the only workaround I know of is:
> <executable>C:\PROGRA~1\java\jdk1.6.0_11\bin\javac.exe</executable>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-99) Spaces in for external executable are not accepted

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MCOMPILER-99.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4
         Assignee: Olivier Lamy

tested on osx
                
> Spaces in for external executable are not accepted
> --------------------------------------------------
>
>                 Key: MCOMPILER-99
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-99
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Jean-Marc Borer
>            Assignee: Olivier Lamy
>             Fix For: 2.4
>
>
> When the path to the external executable in <executable> contains space(s), the build will fail: the command is misunderstood because it stops at the first space encountered.
> Example:
> <executable>C:\Program Files\java\jdk1.6.0_11\bin\javac.exe</executable>
> The plugin will try to execute "C:\Program" instead.
> On windows the only workaround I know of is:
> <executable>C:\PROGRA~1\java\jdk1.6.0_11\bin\javac.exe</executable>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira