fix bad test target dir usage

This commit is contained in:
Jesse McConnell 2016-06-07 11:55:48 -05:00
parent 6b92b698a9
commit 39ef0ec7d6
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.webapp.FragmentDescriptor;
import org.eclipse.jetty.webapp.WebAppContext;
@ -40,7 +41,7 @@ public class TestAnnotationConfiguration
@Test
public void testGetFragmentFromJar() throws Exception
{
String dir = System.getProperty("basedir", ".");
String dir = MavenTestingUtils.getTargetTestingDir("getFragmentFromJar").getAbsolutePath();
File file = new File(dir);
file=new File(file.getCanonicalPath());
URL url=file.toURL();