[jboss-jira] [JBoss JIRA] (WFLY-1792) build.sh fails with command line arguments with spaces

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Mon Aug 12 05:52:26 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated WFLY-1792:
-----------------------------------

    Summary: build.sh fails with command line arguments with spaces  (was: build.sh fails with coomand line arguments with spaces)

    
> build.sh fails with command line arguments with spaces
> ------------------------------------------------------
>
>                 Key: WFLY-1792
>                 URL: https://issues.jboss.org/browse/WFLY-1792
>             Project: WildFly
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: No Release
>            Reporter: Aleksandar Kostadinov
>            Assignee: Aleksandar Kostadinov
>             Fix For: 8.0.0.Alpha4
>
>
> An execution like:
> {code}./build.sh validate -Dmaven.local.repo="asd dsa"{code}
> Fails because handling of command line arguments of build.sh is broken.
> btw I can't understand why there should be this block of code:
> {code}    for param in $@ ; do
>         case $param in
>             ## -s .../settings.xml - don't use our own.
>             -s)      MVN_SETTINGS_XML_ARGS="";   ADDIT_PARAMS="$ADDIT_PARAMS $param";;
>             -*)      ADDIT_PARAMS="$ADDIT_PARAMS $param";;
>             clean)   MVN_GOAL="$MVN_GOAL$param ";;
>             test)    MVN_GOAL="$MVN_GOAL$param ";;
>             install) MVN_GOAL="$MVN_GOAL$param ";;
>             deploy)  MVN_GOAL="$MVN_GOAL$param ";;
>             site)    MVN_GOAL="$MVN_GOAL$param ";;
>             *)       ADDIT_PARAMS="$ADDIT_PARAMS $param";;
>         esac
>     done{code}
> I can't spot anything useful it does but anyways, I'll prepare a pull request for fixing it in a minute.

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


More information about the jboss-jira mailing list