[ http://jira.codehaus.org/browse/SCM-110?page=comments#action_53302 ]
mike perham commented on SCM-110: --------------------------------- Jeff, better? // Use a simple heuristic to determine if we should use the Force flag // on sync. Forcing sync is a HUGE performance hit but is required in // rare instances where a source directory is deleted. If the target // directory is completely empty, assume a force is required. If // not empty, we assume a previous checkout was already done and a normal // sync will suffice. // SCM-110 if ( workingDirectory.list().length == 0 ) { // We need to force so checkout to an empty directory will work. command.createArgument().setValue( "-f" ); } > Perforce should force sync > -------------------------- > > Key: SCM-110 > URL: http://jira.codehaus.org/browse/SCM-110 > Project: Maven SCM > Type: Bug > Components: maven-scm-provider-perforce > Reporter: mike perham > Attachments: force.txt > > > It's not pretty but it's the only way to get sync to work when files could be > deleted from the filesystem (e.g. mvn clean). -- 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