1 | ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));↵ | | 1 | ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));↵
|
2 | ds.setIncludes(new String[] {↵ | | 2 | ds.setIncludes(new String[] {↵
|
| | | 3 | "alpha/beta/gamma/gamma.xml",↵
|
3 | "alpha/beta/gamma/GAMMA.XML"↵ | | 4 | "alpha/beta/gamma/GAMMA.XML"↵
|
4 | });↵ | | 5 | });↵
|
5 | ds.scan();↵ | | 6 | ds.scan();↵
|
6 | compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},↵ | | 7 | compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},↵
|
7 | new String[] {});↵ | | 8 | new String[] {});↵
|
8 | }↵ | | 9 | }↵
|
|
9 | public void test2ButCaseInsensitive() {↵ | | 10 | public void testFullpathDiffersInCaseScanningInsensitive() {↵
|
10 | DirectoryScanner ds = new DirectoryScanner();↵ | | 11 | DirectoryScanner ds = new DirectoryScanner();↵
|
11 | ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));↵ | | 12 | ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));↵
|
12 | ds.setIncludes(new String[] {"ALPHA/"↵ | | 13 | ds.setIncludes(new String[] {↵
|
| | | 14 | "alpha/beta/gamma/gamma.xml",↵
|
| | | 15 | "alpha/beta/gamma/GAMMA.XML"↵
|
13 | });↵ | | 16 | });↵
|
14 | ds.setCaseSensitive(false);↵ | | 17 | ds.setCaseSensitive(false);↵
|
15 | ds.scan();↵ | | 18 | ds.scan();↵
|
16 | compareFiles(ds, new String[] {"alpha/beta/beta.xml",↵ | | 19 | compareFiles(ds, new String[] {↵
|
17 | "alpha/beta/gamma/gamma.xml"},↵ | | 20 | "alpha/beta/gamma/gamma.xml"},↵
|
18 | new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});↵ | | 21 | new String[] {});↵
|
19 | | | 22 |
|