String getResourceFileParameter() { if (resourceFile != null) { return "/resource=" + resourceFile.toString(); } else { return null; } } /** * If true, fails if ilasm tool fails. * *@param b The new failOnError value */ public void setFailOnError(boolean b) { failOnError = b; } /** * query fail on error flag * *@return The failFailOnError value */ public boolean getFailOnError() { return failOnError; } /** * set the debug flag on or off. * *@param f on/off flag */ public void setDebug(boolean f) { debug = f; } /** * query the debug flag * *@return true if debug is turned on */ public boolean getDebug() { return debug; } /** * get the argument or null for no argument needed * *@return The debugParameter value */ protected String getDebugParameter() { return debug ? "/debug" : null;
String getWin32ResParameter() { if (win32res != null) { return "/win32res:" + win32res.toString(); } else { return null; } } /** * If true, require all compiler output to be in UTF8 format. * *@param enabled The new utf8Output value */ public void setUtf8Output(boolean enabled) { utf8output = enabled; } /** * Gets the utf8OutpuParameter attribute of the CSharp object * *@return The utf8OutpuParameter value */ protected String getUtf8OutputParameter() { return utf8output ? "/utf8output" : null;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getResourceFileParameter() {
1
String getWin32ResParameter() {
2
        if (resourceFile != null) {
2
        if (win32res != null) {
3
            return "/resource=" + resourceFile.toString();
3
            return "/win32res:" + win32res.toString();
4
        } else {
4
        } else {
5
            return null;
5
            return null;
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * If true, fails if ilasm tool fails.
9
     * If true, require all compiler output to be in UTF8 format.
10
     *
10
     *
11
     *@param  b  The new failOnError value
11
     *@param  enabled  The new utf8Output value
12
     */
12
     */
13
    public void setFailOnError(boolean b) {
13
    public void set
14
        failOnError = b;
15
    }
16
    /**
17
     *  query fail on error flag
14
Utf8Output(boolean enabled) {
18
     *
15
     
19
     *@return    The failFailOnError value
16
   
20
     */
21
    public boolean getFailOnError() {
22
        return failOnError;
17
utf8output = enabled;
23
    }
18
    }
24
    /**
19
    /**
25
     *  set the debug flag on or off.
20
     *  Gets the 
26
     *
27
     *@param  f  on/off flag
28
     */
29
    public void setDebug(boolean f) {
30
        debug = f;
31
    }
32
    /**
33
     *  query the debug flag
34
     *
35
     *@return    true if debug is turned on
36
     */
37
    public boolean getDebug() {
38
        return debug;
39
    }
40
    /**
41
     *  get the argument or null for no argument needed
21
utf8OutpuParameter attribute of the CSharp object
42
     *
22
     *
43
     *@return    The debugParameter value
23
     *@return    The utf8OutpuParameter value
44
     */
24
     */
45
    protected String getDebugParameter() {
25
    protected String getUtf8OutputParameter() {
46
        return debug ? "/debug" : null;
26
        return utf8output ? "/utf8output" : null;
47
    
27
    
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