You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by "mike perham (JIRA)" <ji...@codehaus.org> on 2005/12/14 16:18:46 UTC
[jira] Created: (SCM-114) Clientspec naming
Clientspec naming
-----------------
Key: SCM-114
URL: http://jira.codehaus.org/browse/SCM-114
Project: Maven SCM
Type: Improvement
Components: maven-scm-provider-perforce
Versions: 1.0-beta-3
Reporter: mike perham
Fix For: 1.0-beta-3
Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
${project}-${user}-${hostname}-mavenscm
Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Resolved: (SCM-114) Clientspec naming
Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=all ]
Mike Perham resolved SCM-114:
-----------------------------
Resolution: Fixed
Added path to clientspec name. Also added owner as a field since it was creating clientspecs without an owner before (I assumed it would associate the current user with the clientspec but apparently that is not the case).
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: Mike Perham
> Assignee: Mike Perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "Wim Deblauwe (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53414 ]
Wim Deblauwe commented on SCM-114:
----------------------------------
I can answer for Emmanuel, because I have asked the same question for ClearCase. It does not :(.
For ClearCase, I implemented it with using the last directory name of the working directory ( an unique number generate by Continuum ), because the project name is not in the SCM url.
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Closed: (SCM-114) Clientspec naming
Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=all ]
Emmanuel Venisse closed SCM-114:
--------------------------------
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: Mike Perham
> Assignee: Mike Perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "skylab (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53425 ]
skylab commented on SCM-114:
----------------------------
It's true, you cannot use One client for all projects in Continuum.
But I had to use a client-name in company style and found a solution to override it:
You can use the System.property *maven.scm.perforce.clientspec.name*
to override the clientname:
e.g. *maven.scm.perforce.clientspec.name=my-company_uses_this_clientspec_name*
There is also a flexible solution, when adding functionality in _maven-scm-providers_ to
org/apache/maven/scm/provider/perforce/command/checkout/*PerforceCheckOutCommand*
In method _createClientspec(String specname, String workDir, String repoPath)_:
add the _repoPath_ parameter to _getClientspecName()_ method and build the name like suggested above!
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Assigned: (SCM-114) Clientspec naming
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=all ]
mike perham reassigned SCM-114:
-------------------------------
Assign To: mike perham
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Assignee: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53413 ]
mike perham commented on SCM-114:
---------------------------------
That should be "- ${user} -". Cursed wiki formatting!
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_56016 ]
Mike Perham commented on SCM-114:
---------------------------------
Currently I am leaning towards:
{noformat}
${user}-${host}-MavenSCM-${check_out_path}
For example:
mike-buildmachine-MavenSCM-/tmp/continuum/work/16
{noformat}
The path is required to absolutely guarantee uniqueness. I will continue to support the system property for overriding the name if people have corporate standards that they must support.
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: Mike Perham
> Assignee: Mike Perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "Zabli (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53464 ]
Zabli commented on SCM-114:
---------------------------
The perforce plugin ignores the environment variables P4CLIENT, P4PASSWD.
The plugin should check these variable and then use them if they are present.
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "Neil Padgen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53418 ]
Neil Padgen commented on SCM-114:
---------------------------------
We wouldn't be able to use the last directory in the SCM URL, as we use that last directory for branches; e.g. //depot/project1/MAIN and //depot/project1/RELEASE. The RELEASE branch is derived from the MAIN branch, so each contains its own project.xml. Using the last directory, we'd need lots of clients called MAIN-${hostname}-mavenscm - obviously that wouldn't work for us.
If you can identify that the scm plugin is being called from Continuum, you could maybe adopt Wim's suggestion and call it something like
continuum-${basename_of_working_directory}-${hostname}-${user}-${project}
which would produce something like continuum-16-buildhost-user-foobar for Mike's example, or continuum-16-buildhost-user-MAIN for us - which would be fine, as the number "16" would be unique per project within Continuum.
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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
[jira] Commented: (SCM-114) Clientspec naming
Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53488 ]
mike perham commented on SCM-114:
---------------------------------
The Perforce plugin will NOT obey P4CLIENT because it needs to support multiple clientspecs with Continuum. It will NOT obey P4PASSWD because it does not do any security. It assumes the p4 user is already logged in. When I tried to handle users and passwords, I ran into nothing but problems so I punted on that whole aspect.
> Clientspec naming
> -----------------
>
> Key: SCM-114
> URL: http://jira.codehaus.org/browse/SCM-114
> Project: Maven SCM
> Type: Improvement
> Components: maven-scm-provider-perforce
> Versions: 1.0-beta-3
> Reporter: mike perham
> Fix For: 1.0-beta-3
>
>
> Several people have expressed more than a passing interest in how the Perforce clientspec is named by Maven SCM. The name needs to be autogenerated and unique for each Continuum project build. Currently I am thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project being built? If not, I can just use the name of the last directory in the SCM URL for the name of the project: //depot/projects/foobar would mean that ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this because Continuum may build several different projects and they each need a unique clientspec.
--
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