File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java | |||
Method name: void execute()
|
Method name: void execute()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | commandLine.setExecutable(getClearToolCommand());↵ | 1 | commandLine.setExecutable(getClearToolCommand());↵ | |
2 | commandLine.createArgument().setValue(COMMAND_LOCK);↵ | 2 | commandLine.createArgument().setValue(COMMAND_CHECKIN);↵ | |
3 | // Check the command line options↵ | 3 | ↵ | |
4 | checkOptions(commandLine);↵ | |||
5 | // For debugging↵ | |||
6 | // System.out.println(commandLine.toString());↵ | 4 | checkOptions(commandLine);↵ | |
7 | if (!getFailOnErr()) {↵ | 5 | if (!getFailOnErr()) {↵ | |
8 | getProject().log("Ignoring any errors that occur for: "↵ | 6 | getProject().log("Ignoring any errors that occur for: "↵ | |
9 | + getOpType(), Project.MSG_VERBOSE);↵ | 7 | + getViewPathBasename(), Project.MSG_VERBOSE);↵ | |
10 | }↵ | 8 | }↵ | |
11 | result = run(commandLine);↵ | 9 | result = run(commandLine);↵ | |
12 | if (Execute.isFailure(result) && getFailOnErr()) {↵ | 10 | if (Execute.isFailure(result) && getFailOnErr()) {↵ | |
13 | String msg = "Failed executing: " + commandLine.toString();↵ | 11 | String msg = "Failed executing: " + commandLine.toString();↵ | |
14 | throw new BuildException(msg, getLocation());↵ | 12 | throw new BuildException(msg, getLocation());↵ | |
15 | } | 13 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 31 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 29.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | commandLine.setExecutable(getClearToolCommand()); | 6 | commandLine.setExecutable(getClearToolCommand()); | |||||||||||
7 | commandLine.createArgument().setValue(COMMAND_LOCK); |
| 7 | commandLine.createArgument().setValue(COMMAND_CHECKIN); | ||||||||||
8 | checkOptions(commandLine); | 8 | checkOptions(commandLine); | |||||||||||
9 | if (!getFailOnErr()) | 9 | if (!getFailOnErr()) | |||||||||||
10 | getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE); |
| 10 | getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE); | ||||||||||
11 | result = run(commandLine); | 11 | result = run(commandLine); | |||||||||||
12 | if (Execute.isFailure(result) && getFailOnErr()) | 12 | if (Execute.isFailure(result) && getFailOnErr()) | |||||||||||
13 | String msg = "Failed executing: " + commandLine.toString(); | 13 | String msg = "Failed executing: " + commandLine.toString(); | |||||||||||
14 | throw new BuildException(msg, getLocation()); | 14 | throw new BuildException(msg, getLocation()); |
Row | Violation |
---|