CloneSet5


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26720.990method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12695
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java
230102
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java
32699
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java
42677
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java
526107
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java
62665
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java
73081
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
95
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCCheckin.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got. the format is
  // cleartool checkin [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_CHECKIN);
  checkOptions(commandLine);
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Next
Previous
Clone Instance
2
Line Count
30
Source Line
102
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got the format is
  // cleartool lock [options...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_LOCK);
  // Check the command line options
  checkOptions(commandLine);
  // For debugging
  // System.out.println(commandLine.toString());
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Next
Previous
Clone Instance
3
Line Count
26
Source Line
99
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkbl.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got. the format is
  // cleartool checkin [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_MKBL);
  checkOptions(commandLine);
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getBaselineRootName(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Next
Previous
Clone Instance
4
Line Count
26
Source Line
77
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkdir.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got. the format is
  // cleartool mkelem [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_MKDIR);
  checkOptions(commandLine);
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Next
Previous
Clone Instance
5
Line Count
26
Source Line
107
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCMkelem.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got. the format is
  // cleartool mkelem [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_MKELEM);
  checkOptions(commandLine);
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Next
Previous
Clone Instance
6
Line Count
26
Source Line
65
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnCheckout.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got the format is
  // cleartool uncheckout [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_UNCHECKOUT);
  checkOptions(commandLine);
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getViewPathBasename(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


First
Previous
Clone Instance
7
Line Count
30
Source Line
81
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java

/**
 * Executes the task.
 * <p>
 * Builds a command line to execute cleartool and then calls Exec's run method
 * to execute the command line.
 * @throws BuildException if the command fails and failonerr is set to true
 */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got the format is
  // cleartool lock [options...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue(COMMAND_UNLOCK);
  // Check the command line options
  checkOptions(commandLine);
  // For debugging
  // System.out.println(commandLine.toString());
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " + getOpType(), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Executes the task.
     * <p>
     * Builds a command line to execute cleartool and then calls Exec's run method
     * to execute the command line.
     * @throws BuildException if the command fails and failonerr is set to true
     */
public void execute() throws BuildException {
  Commandline commandLine = new Commandline();
  Project aProj = getProject();
  int result = 0;
  // Default the viewpath to basedir if it is not specified
  if (getViewPath() == null) {
    setViewPath(aProj.getBaseDir().getPath());
  }
  // build the command line from what we got the format is
  // cleartool uncheckout [options...] [viewpath ...]
  // build the command line from what we got. the format is
  // cleartool mkelem [options...] [viewpath ...]
  // cleartool lock [options...]
  // cleartool checkin [options...] [viewpath ...]
  // as specified in the CLEARTOOL.EXE help
  commandLine.setExecutable(getClearToolCommand());
  commandLine.createArgument().setValue( [[#variablefd9a3e0]]);
  // Check the command line options
  checkOptions(commandLine);
  // For debugging
  // System.out.println(commandLine.toString());
  if ( !getFailOnErr()) {
    getProject().log("Ignoring any errors that occur for: " +  [[#variablefd9a380]](), Project.MSG_VERBOSE);
  }
  result = run(commandLine);
  if (Execute.isFailure(result) && getFailOnErr()) {
    String msg = "Failed executing: " + commandLine.toString();
    throw new BuildException(msg, getLocation());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fd9a3e0]]
COMMAND_CHECKIN 
12[[#fd9a3e0]]
COMMAND_LOCK 
13[[#fd9a3e0]]
COMMAND_MKBL 
14[[#fd9a3e0]]
COMMAND_MKDIR 
15[[#fd9a3e0]]
COMMAND_MKELEM 
16[[#fd9a3e0]]
COMMAND_UNCHECKOUT 
17[[#fd9a3e0]]
COMMAND_UNLOCK 
21[[#fd9a380]]
getViewPathBasename 
22[[#fd9a380]]
getOpType 
23[[#fd9a380]]
getBaselineRootName 
24[[#fd9a380]]
getViewPathBasename 
25[[#fd9a380]]
getViewPathBasename 
26[[#fd9a380]]
getViewPathBasename 
27[[#fd9a380]]
getOpType