String getAdditionalModulesParameter() { if (notEmpty(additionalModules)) { return "/addmodule:" + additionalModules; } else { return null; } } /** * get the argument or null for no argument needed * *@return The OutputFile Parameter to CSC */ protected String getDestFileParameter() { if (outputFile != null) { return "/out:" + outputFile.toString(); } else { return null; }
String getTargetTypeParameter() { if (notEmpty(targetType)) { return "/target:" + targetType; } else { return null; } } /** * Set the filename of icon to include. * *@param fileName path to the file. Can be relative, absolute, whatever. */ public void setWin32Icon(File fileName) { win32icon = fileName; } /** * get the argument or null for no argument needed * *@return The Win32Icon Parameter to CSC */ protected String getWin32IconParameter() { if (win32icon != null) { return "/win32icon:" + win32icon.toString(); } else { return null; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.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 getAdditionalModulesParameter() {
1
String getTargetTypeParameter() {
2
        if (notEmpty(additionalModules)) {
2
        if (notEmpty(targetType)) {
3
            return "/addmodule:" + additionalModules;
3
            return "/target:" + targetType;
4
        } else {
4
        } else {
5
            return null;
5
            return null;
6
        }
6
        }
7
    }
7
    }
8
    /**
9
     *  Set the filename of icon to include.
10
     *
11
     *@param  fileName  path to the file. Can be relative, absolute, whatever.
12
     */
13
    public void setWin32Icon(File fileName) {
14
        win32icon = fileName;
15
    }
8
    /**
16
    /**
9
     *  get the argument or null for no argument needed
17
     *  get the argument or null for no argument needed
10
     *
18
     *
11
     *@return    The OutputFile Parameter to CSC
19
     *@return    The Win32Icon Parameter to CSC
12
     */
20
     */
13
    protected String getDestFileParameter() {
21
    protected String getWin32IconParameter() {
14
        if (outputFile != null) {
22
        if (win32icon != null) {
15
            return "/out:" + outputFile.toString();
23
            return "/win32icon:" + win32icon.toString();
16
        } else {
24
        } else {
17
            return null;
25
            return null;
18
        }
26
        }
19
    
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