make files relative to top level directory

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@450964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Wolfgang Hoschek 2006-09-28 18:41:03 +00:00
parent af08199090
commit 652d91f982
1 changed files with 8 additions and 3 deletions

View File

@ -67,10 +67,15 @@ public class PatternAnalyzerTest extends TestCase {
}
public void testMany() throws Throwable {
// String[] files = MemoryIndexTest.listFiles(new String[] {
// "*.txt", "*.html", "*.xml", "xdocs/*.xml",
// "src/test/org/apache/lucene/queryParser/*.java",
// "src/org/apache/lucene/index/memory/*.java",
// });
String[] files = MemoryIndexTest.listFiles(new String[] {
"*.txt", "*.html", "*.xml", "xdocs/*.xml",
"src/test/org/apache/lucene/queryParser/*.java",
"src/org/apache/lucene/index/memory/*.java",
"../../*.txt", "../../*.html", "../../*.xml", "../../xdocs/*.xml",
"../../src/test/org/apache/lucene/queryParser/*.java",
"src/java/org/apache/lucene/index/memory/*.java",
});
System.out.println("files = " + java.util.Arrays.asList(files));
String[] xargs = new String[] {