String msg = "label attribute must be set!"; throw new BuildException(msg, getLocation()); } // build the command line from what we got the format is // ss Label VSS items [-C] [-H] [-I-] [-Llabel] [-N] [-O] [-V] [-Y] [-?] // as specified in the SS.EXE help commandLine.setExecutable(getSSCommand()); commandLine.createArgument().setValue(COMMAND_LABEL); // VSS items commandLine.createArgument().setValue(getVsspath());
String msg = "vsspath attribute must be set!"; throw new BuildException(msg, getLocation()); } // build the command line from what we got // the format is: // ss Create VSS items [-C] [-H] [-I-] [-N] [-O] [-S] [-Y] [-?] // as specified in the SS.EXE help commandLine.setExecutable(getSSCommand()); commandLine.createArgument().setValue(COMMAND_CREATE); // VSS items commandLine.createArgument().setValue(getVsspath());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSLABEL.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCREATE.java
Method name: Commandline buildCmdLine() Method name: Commandline buildCmdLine()
Number of AST nodes: 5 Number of AST nodes: 5
1
String msg = "label attribute must be set!";
1
String msg = "vsspath attribute must be set!";
2
            throw new BuildException(msg, getLocation());
2
            throw new BuildException(msg, getLocation());
3
        }
3
        }
4
        // build the command line from what we got
4
        // build the command line from what we got
5
 the format is
5
        // the format is:
6
        // ss Label VSS items [-C] [-H] [-I-] [-Llabel] [-N] [-O] [-V] [-Y] [-?]
6
        // ss Create VSS items [-C] [-H] [-I-] [-N] [-O] [-S] [-Y] [-?]
7
        // as specified in the SS.EXE help
7
        // as specified in the SS.EXE help
8
        commandLine.setExecutable(getSSCommand());
8
        commandLine.setExecutable(getSSCommand());
9
        commandLine.createArgument().setValue(COMMAND_LABEL);
9
        commandLine.createArgument().setValue(COMMAND_CREATE);
10
        // VSS items
10
        // VSS items
11
        commandLine.createArgument().setValue(getVsspath());
11
        commandLine.createArgument().setValue(getVsspath());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons4
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    6
    String msg = "label attribute must be set!";
    6
    String msg = "label attribute must be set!";
    3
    String msg = "vsspath attribute must be set!";
    Differences
    Expression1Expression2Difference
    "label attribute must be set!""vsspath attribute must be set!"LITERAL_VALUE_MISMATCH
    3
    String msg = "vsspath attribute must be set!";
    7
    throw new BuildException(msg, getLocation());
    4
    throw new BuildException(msg, getLocation());
    Precondition Violations (0)
    Row Violation