Issue #899
This commit is contained in:
parent
0d6667dc9f
commit
55a81fd7c6
|
@ -37,7 +37,10 @@ public class PathFinderTest
|
||||||
{
|
{
|
||||||
File homeDir = MavenTestingUtils.getTestResourceDir("hb.1/home");
|
File homeDir = MavenTestingUtils.getTestResourceDir("hb.1/home");
|
||||||
Path homePath = homeDir.toPath().toAbsolutePath();
|
Path homePath = homeDir.toPath().toAbsolutePath();
|
||||||
|
File baseDir = MavenTestingUtils.getTestResourceDir("hb.1/base");
|
||||||
|
Path basePath = baseDir.toPath().toAbsolutePath();
|
||||||
|
|
||||||
|
|
||||||
PathFinder finder = new PathFinder();
|
PathFinder finder = new PathFinder();
|
||||||
finder.setFileMatcher("glob:**/*.ini");
|
finder.setFileMatcher("glob:**/*.ini");
|
||||||
finder.setBase(homePath);
|
finder.setBase(homePath);
|
||||||
|
@ -53,7 +56,7 @@ public class PathFinderTest
|
||||||
expected.add("${jetty.home}/start.ini");
|
expected.add("${jetty.home}/start.ini");
|
||||||
FSTest.toOsSeparators(expected);
|
FSTest.toOsSeparators(expected);
|
||||||
|
|
||||||
BaseHome hb = new BaseHome(new String[] { "jetty.home=" + homePath.toString() });
|
BaseHome hb = new BaseHome(new String[] { "jetty.home=" + homePath.toString(), "jetty.base=" + basePath.toString()});
|
||||||
BaseHomeTest.assertPathList(hb,"Files found",expected,finder);
|
BaseHomeTest.assertPathList(hb,"Files found",expected,finder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue