You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/09/14 21:00:10 UTC
cvs commit: xml-xalan/test/java/src/org/apache/qetest/xsl BugzillaFileRules.java
curcuru 01/09/14 12:00:10
Modified: test/java/src/org/apache/qetest/xsl BugzillaFileRules.java
Log:
Hack to just look for 'bugzilla' prefix for the time being
Revision Changes Path
1.2 +12 -4 xml-xalan/test/java/src/org/apache/qetest/xsl/BugzillaFileRules.java
Index: BugzillaFileRules.java
===================================================================
RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/xsl/BugzillaFileRules.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BugzillaFileRules.java 2001/08/03 19:08:49 1.1
+++ BugzillaFileRules.java 2001/09/14 19:00:10 1.2
@@ -67,7 +67,7 @@
* Has crude support for an excludes list of filename bases.
* @see #accept(File, String)
* @author shane_curcuru@lotus.com
- * @version $Id: BugzillaFileRules.java,v 1.1 2001/08/03 19:08:49 curcuru Exp $
+ * @version $Id: BugzillaFileRules.java,v 1.2 2001/09/14 19:00:10 curcuru Exp $
*/
public class BugzillaFileRules implements FilenameFilter
{
@@ -216,9 +216,18 @@
return false;
File file = new File(dir, name);
- // Skip any dirs or non-matching names
- if (file.isDirectory() || !(name.toLowerCase().startsWith(dir.getName().toLowerCase())))
+ // Skip any dirs
+ if (file.isDirectory())
return false;
+
+ // Only accept files that start with 'bugzilla'
+ // HACK: we should really look at the last part of the
+ // directory name here, but in this one case it's much
+ // easier to just hard-code the name (this is in
+ // response to specifying inputDir=tests/bugzilla
+ // on a Windows platform)
+ if (!(name.toLowerCase().startsWith("bugzilla")))
+ return false;
// Accept any .java files
if (name.toLowerCase().endsWith("java"))
@@ -236,6 +245,5 @@
// Fall-through: doesn't match, return false
return false;
-
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org