[ http://jira.codehaus.org/browse/SCM-221?page=comments#action_70111 ] Mike Perham commented on SCM-221: ---------------------------------
There is a parameter where you can override the clientspec for SCM to use. I don't have the source in front of me but if you found the persist parameter, you can find this one too. :-p persistcheckout would be used with continuum/cruisecontrol so it does not try to force sync a new copy of the code everytime. By persisting the clientspec, it will use the same clientspec the next time also and Perforce will only update changed files. Otherwise, it creates a temp clientspec, checks it out and deletes it afterwards - which can lead to really long checkout times for large projects. Which sucks if you are building every hour! > scm:update has no effect > ------------------------ > > Key: SCM-221 > URL: http://jira.codehaus.org/browse/SCM-221 > Project: Maven SCM > Issue Type: Bug > Components: maven-scm-provider-perforce > Affects Versions: 1.0 > Environment: > http://svn.apache.org/maven-snapshot-repository/org/apache/maven/scm/maven-scm-provider-perforce/1.0-SNAPSHOT/maven-scm-provider-perforce-1.0-20060616.160825-6.jar > > Reporter: Yuri Schimke > Assigned To: Mike Perham > Priority: Critical > > We are trying to use scm:update in a cruisecontrol build to update the > project before building. However it doesn't seem to actually write any > changes to disk. > The command completes successfully, but the files are not synced to head. > The directory for the update is a working perforce directory. i.e. after the > command below fails to update the files, "p4 sync" works immediately. > [INFO] [scm:update] > > [INFO] Checkout working directory: C:\PerforceViews\dms_1.2_dev\dms > > [INFO] Executing: p4 client -i > > [INFO] Executing: p4 client -d > nbk7xsp-B001279A7BC2E-MavenSCM-C:\PerforceViews\dms_1.2_dev\dms > > > Is the generated clientspec just using for determining changesets? There is > a valid clientspec already associated with the current project directory. -- 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