CloneSet63


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25230.966statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1251031
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Execute.java
2251090
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Execute.java
Next
Last
Clone Instance
1
Line Count
25
Source Line
1031
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Execute.java

if (project == null) {
  if (workingDir == null) {
    return exec(project, cmd, env);
  }
  throw new IOException("Cannot locate antRun script: " + "No project provided");
}
// Locate the auxiliary script
String antHome = project.getProperty(MagicNames.ANT_HOME);
if (antHome == null) {
  throw new IOException("Cannot locate antRun script: " + "Property \'" + MagicNames.ANT_HOME + "\' not found");
}
String antRun = FILE_UTILS.resolveFile(project.getBaseDir(), antHome + File.separator + myScript).toString();
// Build the command
File commandDir = workingDir;
if (workingDir == null && project != null) {
  commandDir = project.getBaseDir();
}
String[] newcmd = new String[cmd.length + 2];
newcmd[0] = antRun;
newcmd[1] = commandDir.getAbsolutePath();


First
Previous
Clone Instance
2
Line Count
25
Source Line
1090
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Execute.java

if (project == null) {
  if (workingDir == null) {
    return exec(project, cmd, env);
  }
  throw new IOException("Cannot locate antRun script: " + "No project provided");
}
// Locate the auxiliary script
String antHome = project.getProperty(MagicNames.ANT_HOME);
if (antHome == null) {
  throw new IOException("Cannot locate antRun script: " + "Property \'" + MagicNames.ANT_HOME + "\' not found");
}
String antRun = FILE_UTILS.resolveFile(project.getBaseDir(), antHome + File.separator + myScript).toString();
// Build the command
File commandDir = workingDir;
if (workingDir == null && project != null) {
  commandDir = project.getBaseDir();
}
String[] newcmd = new String[cmd.length + 3];
newcmd[0] = "perl";
newcmd[1] = antRun;


Clone AbstractionParameter Count: 3Parameter Bindings

if (project == null) {
  if (workingDir == null) {
    return exec(project, cmd, env);
  }
  throw new IOException("Cannot locate antRun script: " + "No project provided");
}
// Locate the auxiliary script
String antHome = project.getProperty(MagicNames.ANT_HOME);
if (antHome == null) {
  throw new IOException("Cannot locate antRun script: " + "Property \'" + MagicNames.ANT_HOME + "\' not found");
}
String antRun = FILE_UTILS.resolveFile(project.getBaseDir(), antHome + File.separator + myScript).toString();
// Build the command
File commandDir = workingDir;
if (workingDir == null && project != null) {
  commandDir = project.getBaseDir();
}
String[] newcmd = new String[cmd.length +  [[#variablefdab240]]];
newcmd[0] = [[#variablefe33360]];
newcmd[1] = [[#variablefe804a0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdab240]]
2 
12[[#fdab240]]
3 
21[[#fe33360]]
antRun 
22[[#fe33360]]
"perl" 
31[[#fe804a0]]
commandDir.getAbsolutePath() 
32[[#fe804a0]]
antRun