if ( getLogger().isDebugEnabled() )
{
getLogger().debug( "executing checkout command..." );
}
SynergyScmProviderRepository repo = (SynergyScmProviderRepository) repository;
if ( getLogger().isDebugEnabled() )
{
getLogger().debug( fileSet.toString() );
}
String ccmAddr = SynergyUtil.start( getLogger(), repo.getUser(), repo.getPassword(), null );
File waPath;
try
{
String projectSpec =
SynergyUtil.getWorkingProject( getLogger(), repo.getProjectSpec(), repo.getUser(), ccmAddr );
if ( projectSpec != null )
{
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "A working project already exists [" + projectSpec + "]." );
}
SynergyUtil.synchronize( getLogger(), projectSpec, ccmAddr );
}
else
{
SynergyUtil.checkoutProject( getLogger(), null, repo.getProjectSpec(), version,
repo.getProjectPurpose(), repo.getProjectRelease(), ccmAddr );
projectSpec =
SynergyUtil.getWorkingProject( getLogger(), repo.getProjectSpec(), repo.getUser(), ccmAddr );
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "A new working project [" + projectSpec + "] was created." );
}
}
SynergyUtil.reconfigure( getLogger(), projectSpec, ccmAddr );
waPath = SynergyUtil.getWorkArea( getLogger(), projectSpec, ccmAddr );
}
finally
{
SynergyUtil.stop( getLogger(), ccmAddr );
}
File source = new File( waPath, repo.getProjectName() );
if ( getLogger().isInfoEnabled() )
{
getLogger().info(
"We will now copy files from Synergy Work Area [" + source