CPD Results

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

Duplications

File Line
org/apache/maven/scm/provider/git/gitexe/command/add/GitAddCommand.java 74
org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusCommand.java 48
        Commandline clRevparse = GitStatusCommand.createRevparseShowToplevelCommand( fileSet );
        
        CommandLineUtils.StringStreamConsumer stdout = new CommandLineUtils.StringStreamConsumer();
        CommandLineUtils.StringStreamConsumer stderr = new CommandLineUtils.StringStreamConsumer();

        URI relativeRepositoryPath = null;
        
        int exitCode;

        exitCode = GitCommandLineUtils.execute( clRevparse, stdout, stderr, getLogger() );
        if ( exitCode != 0 )
        {
            // git-status returns non-zero if nothing to do
            if ( getLogger().isInfoEnabled() )
            {
                getLogger().info( "Could not resolve toplevel" );
            }
        }
        else
        {
            relativeRepositoryPath = GitStatusConsumer.resolveURI( stdout.getOutput().trim() , fileSet.getBasedir().toURI() ); 
        }

        // git-add doesn't show single files, but only summary :/
        // so we must run git-status and consume the output
        // borrow a few things from the git-status command
        Commandline clStatus = GitStatusCommand.createCommandLine( repository, fileSet );
File Line
org/apache/maven/scm/provider/git/gitexe/command/add/GitAddCommand.java 83
org/apache/maven/scm/provider/git/gitexe/command/checkin/GitCheckInCommand.java 109
        exitCode = GitCommandLineUtils.execute( clRevparse, stdout, stderr, getLogger() );
        if ( exitCode != 0 )
        {
            // git-status returns non-zero if nothing to do
            if ( getLogger().isInfoEnabled() )
            {
                getLogger().info( "Could not resolve toplevel" );
            }
        }
        else
        {
            relativeRepositoryPath = GitStatusConsumer.resolveURI( stdout.getOutput().trim() , fileSet.getBasedir().toURI() ); 
        }

        // git-add doesn't show single files, but only summary :/
        // so we must run git-status and consume the output
        // borrow a few things from the git-status command
        Commandline clStatus = GitStatusCommand.createCommandLine( repository, fileSet );

        GitStatusConsumer statusConsumer = new GitStatusConsumer( getLogger(), fileSet.getBasedir(), relativeRepositoryPath );