The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
org\apache\maven\scm\provider\synergy\command\remove\SynergyRemoveCommand.java | 52 |
org\apache\maven\scm\provider\synergy\command\unedit\SynergyUnEditCommand.java | 54 |
getLogger().debug( "executing remove command..." ); } SynergyScmProviderRepository repo = (SynergyScmProviderRepository) repository; if ( getLogger().isDebugEnabled() ) { getLogger().debug( "basedir: " + fileSet.getBasedir() ); } String ccmAddr = SynergyUtil.start( getLogger(), repo.getUser(), repo.getPassword(), null ); try { String projectSpec = SynergyUtil.getWorkingProject( getLogger(), repo.getProjectSpec(), repo.getUser(), ccmAddr ); if ( projectSpec == null ) { throw new ScmException( "You should checkout a working project first" ); } File waPath = SynergyUtil.getWorkArea( getLogger(), projectSpec, ccmAddr ); File destPath = new File( waPath, repo.getProjectName() ); for ( File f : fileSet.getFileList() ) { File source = new File( fileSet.getBasedir(), f.getPath() ); File dest = new File( destPath, f.getPath() ); SynergyUtil.delete( getLogger(), dest, ccmAddr, false ); |