You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/08/23 12:56:42 UTC

[jira] Updated: (MAVEN-1466) install_repo.bat can require inconsistent quoting on the command line

     [ http://jira.codehaus.org/browse/MAVEN-1466?page=all ]

Brett Porter updated MAVEN-1466:
--------------------------------

    Fix Version:     (was: 1.1-beta-2)
                 1.1-rc1

> install_repo.bat can require inconsistent quoting on the command line
> ---------------------------------------------------------------------
>
>          Key: MAVEN-1466
>          URL: http://jira.codehaus.org/browse/MAVEN-1466
>      Project: Maven
>         Type: Bug
>   Components: documentation
>     Versions: 1.0
>  Environment: Windows XP Professional SP 1
>     Reporter: Albert Davidson Chou
>     Priority: Minor
>      Fix For: 1.1-rc1

>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> The install_repo.bat script in version 1.0 builds up its argument word by word and then puts double quotes around the value thereby built up wherever it is used.  However, this implementation makes using the script kind of weird.  On Windows I have to quote the command anyway if it contains spaces, e.g.,
> "%MAVEN_HOME%\bin\install_repo.bat"
> and I would expect to have to quote its argument for similar reasons.  But as it stands now, install_repo.bat _requires_ the following quoting syntax if both MAVEN_HOME and HOME (or HOMEPATH) contain spaces:
> "%MAVEN_HOME%\bin\install_repo.bat" %HOME%\.maven\repository
> Note the inconsistency in quoting.
> The Windows batch language doesn't treat quotes the way most shells do; the quotes are literally part of the string rather than just a meta-character that signifies that contained whitespace is literal rather than a command or argument separator.  The syntax %~1 can be used to produce a non-quoted and fully-path-expanced version of whatever argument %1 was, at least in more recent versions of Windows (2000, XP, 2003).  No guarantees that this feature is present in Windows 9x....

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org