@@ -102,7 +102,7 @@ public abstract class MatchingTask extends Task {
/**
/**
* add a name entry on the include list
* add a name entry on the include list
*/
*/
public NameEntry add Include() {
public NameEntry create Include() {
NameEntry result = new NameEntry();
NameEntry result = new NameEntry();
includeList.addElement(result);
includeList.addElement(result);
return result;
return result;
@@ -111,7 +111,7 @@ public abstract class MatchingTask extends Task {
/**
/**
* add a name entry on the exclude list
* add a name entry on the exclude list
*/
*/
public NameEntry add Exclude() {
public NameEntry create Exclude() {
NameEntry result = new NameEntry();
NameEntry result = new NameEntry();
excludeList.addElement(result);
excludeList.addElement(result);
return result;
return result;
@@ -125,7 +125,7 @@ public abstract class MatchingTask extends Task {
*/
*/
public void setIncludes(String includes) {
public void setIncludes(String includes) {
if (includes != null && includes.length() > 0) {
if (includes != null && includes.length() > 0) {
add Include().setName(includes);
create Include().setName(includes);
}
}
}
}
@@ -141,13 +141,13 @@ public abstract class MatchingTask extends Task {
"Please use the includes attribute.",
"Please use the includes attribute.",
Project.MSG_WARN);
Project.MSG_WARN);
if (itemString == null || itemString.equals("*")) {
if (itemString == null || itemString.equals("*")) {
add Include().setName("**");
create Include().setName("**");
} else {
} else {
StringTokenizer tok = new StringTokenizer(itemString, ", ");
StringTokenizer tok = new StringTokenizer(itemString, ", ");
while (tok.hasMoreTokens()) {
while (tok.hasMoreTokens()) {
String pattern = tok.nextToken().trim();
String pattern = tok.nextToken().trim();
if (pattern.length() > 0) {
if (pattern.length() > 0) {
add Include().setName(pattern+"/**");
create Include().setName(pattern+"/**");
}
}
}
}
}
}
@@ -161,7 +161,7 @@ public abstract class MatchingTask extends Task {
*/
*/
public void setExcludes(String excludes) {
public void setExcludes(String excludes) {
if (excludes != null && excludes.length() > 0) {
if (excludes != null && excludes.length() > 0) {
add Exclude().setName(excludes);
create Exclude().setName(excludes);
}
}
}
}
@@ -179,7 +179,7 @@ public abstract class MatchingTask extends Task {
Vector tmpExcludes = new Vector();
Vector tmpExcludes = new Vector();
StringTokenizer tok = new StringTokenizer(ignoreString, ", ", false);
StringTokenizer tok = new StringTokenizer(ignoreString, ", ", false);
while (tok.hasMoreTokens()) {
while (tok.hasMoreTokens()) {
add Exclude().setName("**/"+tok.nextToken().trim()+"/**");
create Exclude().setName("**/"+tok.nextToken().trim()+"/**");
}
}
}
}
}
}