maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MSHARED-141) MavenCommandLineBuilder incorrectly adds system properties
Date Tue, 02 Oct 2012 19:19:44 GMT

    [ https://jira.codehaus.org/browse/MSHARED-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=310171#comment-310171
] 

Robert Scholte commented on MSHARED-141:
----------------------------------------

I'm not sure if this will always work. For instance: IIUC there's a difference of quoting
arguments between Windows and Linux.
For Windows it is {{-Darg="some value with spaces"}}, whereas with Linux it's {{'-Darg=some
value with spaces'}} (correct me if I'm wrong).

                
> MavenCommandLineBuilder incorrectly adds system properties
> ----------------------------------------------------------
>
>                 Key: MSHARED-141
>                 URL: https://jira.codehaus.org/browse/MSHARED-141
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-invoker
>    Affects Versions: maven-invoker-2.0.7, maven-invoker-2.0.8, maven-invoker-2.0.9, maven-invoker-2.0.10,
maven-invoker-2.0.11
>            Reporter: Andrei Solntsev
>            Priority: Minor
>         Attachments: MSHARED-141-maven-invoker.patch
>
>
> Class MavenCommandLineBuilder adds system properties with spaces.
> For example, given the following properties: {skipTests=true, listScmChanges=}
> MavenCommandLineBuilder generates the following command line:
> cmd.exe /X /C "C:\Programs\apache-maven-2.2.1\bin\mvn.bat -B -N -e -D skipTests=true
-D listScmChanges="
> The correct form is without spaces: "-DskipTests=true -DlistScmChanges"

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

        

Mime
View raw message