CloneSet218


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112914
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
212877
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
914
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

/**
 * Helper method invoked by isRebuildRequired to get a ClassLoader for a
 * Jar File passed to it.
 *
 * @param classjar java.io.File representing jar file to get classes from.
 * @return the classloader for the jarfile.
 * @throws IOException if there is a problem.
 */
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException {
  Path lookupPath = new Path(getTask().getProject());
  lookupPath.setLocation(classjar);
  Path classpath = getCombinedClasspath();
  if (classpath != null) {
    lookupPath.append(classpath);
  }
  return getTask().getProject().createClassLoader(lookupPath);
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
877
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java

/**
 * Helper method invoked by isRebuildRequired to get a ClassLoader for a
 * Jar File passed to it.
 *
 * @param classjar java.io.File representing jar file to get classes from.
 * @return a classloader for the jar file.
 * @throws IOException if there is an error.
 */
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException {
  Path lookupPath = new Path(getTask().getProject());
  lookupPath.setLocation(classjar);
  Path classpath = getCombinedClasspath();
  if (classpath != null) {
    lookupPath.append(classpath);
  }
  return getTask().getProject().createClassLoader(lookupPath);
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Helper method invoked by isRebuildRequired to get a ClassLoader for a
     * Jar File passed to it.
     *
     * @param classjar java.io.File representing jar file to get classes from.
     * @return a classloader for the jar file.
     * @throws IOException if there is an error.
     */
/**
     * Helper method invoked by isRebuildRequired to get a ClassLoader for a
     * Jar File passed to it.
     *
     * @param classjar java.io.File representing jar file to get classes from.
     * @return the classloader for the jarfile.
     * @throws IOException if there is a problem.
     */
protected ClassLoader getClassLoaderFromJar(File classjar) throws IOException {
  Path lookupPath = new Path(getTask().getProject());
  lookupPath.setLocation(classjar);
  Path classpath = getCombinedClasspath();
  if (classpath != null) {
    lookupPath.append(classpath);
  }
  return getTask().getProject().createClassLoader(lookupPath);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None