CPD Results

The following document contains the results of PMD's CPD 5.0.5.

Duplications

File Line
org/apache/maven/scm/provider/svn/svnexe/command/branch/SvnBranchCommand.java 86
org/apache/maven/scm/provider/svn/svnexe/command/tag/SvnTagCommand.java 112
        Commandline cl = createCommandLine( repository, fileSet.getBasedir(), branch, messageFile, scmBranchParameters );

        CommandLineUtils.StringStreamConsumer stdout = new CommandLineUtils.StringStreamConsumer();

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 73
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 ) );
            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 56
org/apache/maven/scm/provider/svn/svnexe/command/status/SvnStatusCommand.java 48
org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java 60
        SvnDiffConsumer consumer = new SvnDiffConsumer( getLogger(), fileSet.getBasedir() );

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 64
org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameCommand.java 54
org/apache/maven/scm/provider/svn/svnexe/command/remove/SvnRemoveCommand.java 58
        SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 64
org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameCommand.java 54
org/apache/maven/scm/provider/svn/svnexe/command/diff/SvnDiffCommand.java 56
org/apache/maven/scm/provider/svn/svnexe/command/remove/SvnRemoveCommand.java 58
org/apache/maven/scm/provider/svn/svnexe/command/status/SvnStatusCommand.java 48
org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java 60
        SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 73
org/apache/maven/scm/provider/svn/svnexe/command/diff/SvnDiffCommand.java 56
org/apache/maven/scm/provider/svn/svnexe/command/status/SvnStatusCommand.java 48
org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java 60
        SvnCheckInConsumer consumer = new SvnCheckInConsumer( getLogger(), fileSet.getBasedir() );

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 63
org/apache/maven/scm/provider/svn/svnexe/command/list/SvnListCommand.java 59
        SvnInfoConsumer consumer = new SvnInfoConsumer();

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 64
org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameCommand.java 54
org/apache/maven/scm/provider/svn/svnexe/command/diff/SvnDiffCommand.java 56
org/apache/maven/scm/provider/svn/svnexe/command/info/SvnInfoCommand.java 63
org/apache/maven/scm/provider/svn/svnexe/command/list/SvnListCommand.java 59
org/apache/maven/scm/provider/svn/svnexe/command/remove/SvnRemoveCommand.java 58
org/apache/maven/scm/provider/svn/svnexe/command/status/SvnStatusCommand.java 48
org/apache/maven/scm/provider/svn/svnexe/command/update/SvnUpdateCommand.java 60
        SvnAddConsumer consumer = new SvnAddConsumer( getLogger() );

        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + SvnCommandLineUtils.cryptPassword( cl ) );
            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 );