antoine 2003/07/29 12:47:16
Modified: src/main/org/apache/tools/ant DirectoryScanner.java
Log:
the method isMorePowerfulThanExcludes was returning false on org/apache/tools/ant/taskdefs
in the run-tests target of our buildfile because of the exclude pattern :
:-(
Revision Changes Path
1.61 +3 -12 ant/src/main/org/apache/tools/ant/DirectoryScanner.java
Index: DirectoryScanner.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/DirectoryScanner.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- DirectoryScanner.java 29 Jul 2003 10:49:11 -0000 1.60
+++ DirectoryScanner.java 29 Jul 2003 19:47:16 -0000 1.61
@@ -1004,19 +1004,10 @@
* @since ant1.6
*/
private boolean isMorePowerfulThanExcludes(String name, String includepattern) {
- String shortpattern = SelectorUtils.rtrimWildcardTokens(includepattern);
+ String soughtexclude = name + File.separator + "**";
for (int counter=0; counter means exclude only the directory foo, but not its subdirs
- if (shortexclude.length() < excludes[counter].length()) {
- if (excludes[counter].charAt(shortexclude.length()) == File.separatorChar) {
- if (matchPath(shortexclude, name, isCaseSensitive)) {
- if (shortexclude.length() > shortpattern.length()) {
- return false;
- }
- }
- }
+ if (excludes[counter].equals(soughtexclude)) {
+ return false;
}
}
return true;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org