You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "zak jacobson (JIRA)" <ji...@codehaus.org> on 2007/11/20 21:56:57 UTC
[jira] Commented: (SCM-351) generated client spec name fails if
there is a space or tilde in directory name
[ http://jira.codehaus.org/browse/SCM-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114352 ]
zak jacobson commented on SCM-351:
----------------------------------
Here is the output.
{noformat}
[DEBUG] Updating clientspec:
Client: johndoe-SDGL04301175-MavenSCM-C:\Perforce Workspace\foundation\target\checkout
Root: C:\Perforce Workspace\foundation\target\checkout
Owner: johndoe
View:
/... //johndoe-SDGL04301175-MavenSCM-C:\Perforce Workspace\foundation\target\checkout/...
Description:
Created by maven-scm-provider-perforce
[ERROR] Unable to sync. Are you logged in?
{noformat}
> generated client spec name fails if there is a space or tilde in directory name
> -------------------------------------------------------------------------------
>
> Key: SCM-351
> URL: http://jira.codehaus.org/browse/SCM-351
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-perforce
> Affects Versions: 1.0
> Reporter: zak jacobson
>
> The default generated client spec name is calculated in generateDefaultClientspecName() as:
> username + "−" + hostname + "−MavenSCM−" + path;
> if path includes a space or tilde, the client spec is not created and the plugin fails to sync.
> Can:
> {noformat}path = workDir.getCanonicalPath().replace( '/', '\\' ){noformat}
> be replaced with:
> {noformat}path = workDir.getCanonicalPath().replace( '/', '\\' ).replaceAll("[ ~]", "-"){noformat}
--
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