CloneSet862


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116979
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java
216201
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
979
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java

// Begin filter getters and setters
/**
 * Sets the include filter. When filtering files, AntStarTeamCheckOut uses
 * an unmodified version of <CODE>DirectoryScanner</CODE>'s <CODE>match</CODE>
 * method, so here are the patterns straight from the Ant source code:
 * <BR>
 * <BR>
 * Matches a string against a pattern. The pattern contains two special
 * characters: <BR>
 * '*' which means zero or more characters, <BR>
 * '?' which means one and only one character. <BR>
 * <BR>
 * Separate multiple inlcude filters by <I>spaces</I> , not commas as Ant
 * uses. For example, if you want to check out all .java and .class\
 * files, you would put the following line in your program:
 * <CODE>setIncludes("*.java *.class");</CODE>
 * Finally, note that filters have no effect on the <B>directories</B>
 * that are scanned; you could not check out files from directories with
 * names beginning only with "build," for instance. Of course, you could
 * limit AntStarTeamCheckOut to a particular folder and its subfolders
 * with the <CODE>setFolderName(String folderName)</CODE> command. <BR>
 * <BR>
 * Treatment of overlapping inlcudes and excludes: To give a simplistic
 * example suppose that you set your include filter to "*.htm *.html" and
 * your exclude filter to "index.*". What happens to index.html?
 * AntStarTeamCheckOut will not check out index.html, as it matches an
 * exclude filter ("index.*"), even though it matches the include filter,
 * as well. <BR>
 * <BR>
 * Please also read the following sections before using filters:
 *
 * @param includes A string of filter patterns to include. Separate the
 *      patterns by spaces.
 * @see #getIncludes()
 * @see #setExcludes(String excludes)
 * @see #getExcludes()
 */
public void setIncludes(String includes) {
  this.includes = includes;
}

/**
 * Gets the patterns from the include filter. Rather that duplicate the
 * details of AntStarTeanCheckOut's filtering here, refer to these links:
 *
 * @return A string of filter patterns separated by spaces.
 * @see #setIncludes(String includes)
 * @see #setExcludes(String excludes)
 * @see #getExcludes()
 */
public String getIncludes() {
  return includes;
}


First
Previous
Clone Instance
2
Line Count
16
Source Line
201
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java

/**
 * Declare files to include using standard <tt>includes</tt> patterns; optional.
 * @param includes A string of filter patterns to include. Separate the
 *                 patterns by spaces.
 * @see #getIncludes()
 * @see #setExcludes(String excludes)
 * @see #getExcludes()
 */
public void setIncludes(String includes) {
  this.includes = includes;
}

/**
 * Gets the patterns from the include filter. Rather that duplicate the
 * details of AntStarTeamCheckOut's filtering here, refer to these
 * links:
 *
 * @return A string of filter patterns separated by spaces.
 * @see #setIncludes(String includes)
 * @see #setExcludes(String excludes)
 * @see #getExcludes()
 */
public String getIncludes() {
  return includes;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Declare files to include using standard <tt>includes</tt> patterns; optional.
     * @param includes A string of filter patterns to include. Separate the
     *                 patterns by spaces.
     * @see #getIncludes()
     * @see #setExcludes(String excludes)
     * @see #getExcludes()
     */
// Begin filter getters and setters
/**
     * Sets the include filter. When filtering files, AntStarTeamCheckOut uses
     * an unmodified version of <CODE>DirectoryScanner</CODE>'s <CODE>match</CODE>
     * method, so here are the patterns straight from the Ant source code:
     * <BR>
     * <BR>
     * Matches a string against a pattern. The pattern contains two special
     * characters: <BR>
     * '*' which means zero or more characters, <BR>
     * '?' which means one and only one character. <BR>
     * <BR>
     * Separate multiple inlcude filters by <I>spaces</I> , not commas as Ant
     * uses. For example, if you want to check out all .java and .class\
     * files, you would put the following line in your program:
     * <CODE>setIncludes("*.java *.class");</CODE>
     * Finally, note that filters have no effect on the <B>directories</B>
     * that are scanned; you could not check out files from directories with
     * names beginning only with "build," for instance. Of course, you could
     * limit AntStarTeamCheckOut to a particular folder and its subfolders
     * with the <CODE>setFolderName(String folderName)</CODE> command. <BR>
     * <BR>
     * Treatment of overlapping inlcudes and excludes: To give a simplistic
     * example suppose that you set your include filter to "*.htm *.html" and
     * your exclude filter to "index.*". What happens to index.html?
     * AntStarTeamCheckOut will not check out index.html, as it matches an
     * exclude filter ("index.*"), even though it matches the include filter,
     * as well. <BR>
     * <BR>
     * Please also read the following sections before using filters:
     *
     * @param includes A string of filter patterns to include. Separate the
     *      patterns by spaces.
     * @see #getIncludes()
     * @see #setExcludes(String excludes)
     * @see #getExcludes()
     */
public void setIncludes(String includes) {
  this.includes = includes;
}

/**
     * Gets the patterns from the include filter. Rather that duplicate the
     * details of AntStarTeamCheckOut's filtering here, refer to these
     * links:
     *
     * @return A string of filter patterns separated by spaces.
     * @see #setIncludes(String includes)
     * @see #setExcludes(String excludes)
     * @see #getExcludes()
     */
/**
     * Gets the patterns from the include filter. Rather that duplicate the
     * details of AntStarTeanCheckOut's filtering here, refer to these links:
     *
     * @return A string of filter patterns separated by spaces.
     * @see #setIncludes(String includes)
     * @see #setExcludes(String excludes)
     * @see #getExcludes()
     */
public String getIncludes() {
  return includes;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None