void addLib(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/lib/"); super.addFileset(fs); } /** * add files under WEB-INF/classes * @param fs the zip file set to add */ public void addClasses(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/classes/"); super.addFileset(fs);
void addClasses(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/classes/"); super.addFileset(fs); } /** * files to add under WEB-INF; * @param fs the zip file set to add */ public void addWebinf(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/"); super.addFileset(fs);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/War.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/War.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void addLib(ZipFileSet fs) {
1
void addClasses(ZipFileSet fs) {
2
        // We just set the prefix for this fileset, and pass it up.
2
        // We just set the prefix for this fileset, and pass it up.
3
        fs.setPrefix("WEB-INF/lib/");
3
        fs.setPrefix("WEB-INF/classes/");
4
        super.addFileset(fs);
4
        super.addFileset(fs);
5
    }
5
    }
6
    /**
6
    /**
7
     * add files under WEB-INF/classes
7
     * files to add under WEB-INF;
8
     * @param fs the zip file set to add
8
     * @param fs the zip file set to add
9
     */
9
     */
10
    public void addClasses(ZipFileSet fs) {
10
    public void addWebinf(ZipFileSet fs) {
11
        // We just set the prefix for this fileset, and pass it up.
11
        // We just set the prefix for this fileset, and pass it up.
12
        fs.setPrefix("WEB-INF/classes/");
12
        fs.setPrefix("WEB-INF/");
13
        super.addFileset(fs);
13
        super.addFileset(fs);
14
    
14
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0