Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1
-
Component/s: maven-scm-provider-perforce
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
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:
path = workDir.getCanonicalPath().replace( '/', '\\' )
be replaced with:
path = workDir.getCanonicalPath().replace( '/', '\\' ).replaceAll("[ ~]", "-")
Issue Links
- duplicates
-
SCM-370
generated client spec contains backslashes leading die problems on unix os
-
Here is the output.
[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?