CPD Results
The following document contains the results of PMD's CPD 5.6.1.
Duplications
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\branch\SvnBranchCommand.java |
89 |
org\apache\maven\scm\provider\svn\svnexe\command\tag\SvnTagCommand.java |
114 |
scmBranchParameters );
CommandLineUtils.StringStreamConsumer stdout = new CommandLineUtils.StringStreamConsumer();
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, stdout, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
finally
{
try
{
FileUtils.forceDelete( messageFile );
}
catch ( IOException ex )
{
// ignore
}
}
if ( exitCode != 0 )
{
return new BranchScmResult( cl.toString(), "The svn branch command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\checkin\SvnCheckInCommand.java |
74 |
org\apache\maven\scm\provider\svn\svnexe\command\mkdir\SvnMkdirCommand.java |
72 |
SvnCheckInConsumer consumer = new SvnCheckInConsumer( getLogger(), fileSet.getBasedir() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
finally
{
try
{
FileUtils.forceDelete( messageFile );
}
catch ( IOException ex )
{
// ignore
}
}
if ( exitCode != 0 )
{
return new CheckInScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnDiffConsumer consumer = new SvnDiffConsumer( getLogger(), fileSet.getBasedir() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
if ( exitCode != 0 )
{
return new DiffScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
if ( exitCode != 0 )
{
return new AddScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
if ( exitCode != 0 )
{
return new AddScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\checkin\SvnCheckInCommand.java |
74 |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnCheckInConsumer consumer = new SvnCheckInConsumer( getLogger(), fileSet.getBasedir() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
} |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\info\SvnInfoCommand.java |
64 |
org\apache\maven\scm\provider\svn\svnexe\command\list\SvnListCommand.java |
60 |
SvnInfoConsumer consumer = new SvnInfoConsumer();
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
if ( exitCode != 0 )
{
return new InfoScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\info\SvnInfoCommand.java |
64 |
org\apache\maven\scm\provider\svn\svnexe\command\list\SvnListCommand.java |
60 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
}
if ( exitCode != 0 )
{
return new AddScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\branch\SvnBranchCommand.java |
89 |
org\apache\maven\scm\provider\svn\svnexe\command\tag\SvnTagCommand.java |
114 |
org\apache\maven\scm\provider\svn\svnexe\command\untag\SvnUntagCommand.java |
77 |
scmBranchParameters );
CommandLineUtils.StringStreamConsumer stdout = new CommandLineUtils.StringStreamConsumer();
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, stdout, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex ); |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\mkdir\SvnMkdirCommand.java |
72 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
} |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\checkin\SvnCheckInCommand.java |
74 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
} |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\mkdir\SvnMkdirCommand.java |
72 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnDiffConsumer consumer = new SvnDiffConsumer( getLogger(), fileSet.getBasedir() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
} |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\checkin\SvnCheckInCommand.java |
74 |
org\apache\maven\scm\provider\svn\svnexe\command\info\SvnInfoCommand.java |
64 |
org\apache\maven\scm\provider\svn\svnexe\command\list\SvnListCommand.java |
60 |
org\apache\maven\scm\provider\svn\svnexe\command\mkdir\SvnMkdirCommand.java |
72 |
SvnCheckInConsumer consumer = new SvnCheckInConsumer( getLogger(), fileSet.getBasedir() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex );
} |
File |
Line |
org\apache\maven\scm\provider\svn\svnexe\command\add\SvnAddCommand.java |
65 |
org\apache\maven\scm\provider\svn\svnexe\command\blame\SvnBlameCommand.java |
55 |
org\apache\maven\scm\provider\svn\svnexe\command\changelog\SvnChangeLogCommand.java |
121 |
org\apache\maven\scm\provider\svn\svnexe\command\checkin\SvnCheckInCommand.java |
74 |
org\apache\maven\scm\provider\svn\svnexe\command\diff\SvnDiffCommand.java |
57 |
org\apache\maven\scm\provider\svn\svnexe\command\info\SvnInfoCommand.java |
64 |
org\apache\maven\scm\provider\svn\svnexe\command\list\SvnListCommand.java |
60 |
org\apache\maven\scm\provider\svn\svnexe\command\mkdir\SvnMkdirCommand.java |
72 |
org\apache\maven\scm\provider\svn\svnexe\command\remove\SvnRemoveCommand.java |
59 |
org\apache\maven\scm\provider\svn\svnexe\command\status\SvnStatusCommand.java |
49 |
org\apache\maven\scm\provider\svn\svnexe\command\update\SvnUpdateCommand.java |
61 |
SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();
if ( getLogger().isInfoEnabled() )
{
getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
if ( Os.isFamily( Os.FAMILY_WINDOWS ) )
{
getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
}
}
int exitCode;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing command.", ex ); |