- updated project base path resolution

- removed .keep_hapi-fhir-jpaserver-starter file as its not needed anymore
This commit is contained in:
Jessie James Cosare
2019-02-20 17:02:53 +08:00
parent 64d29c675c
commit 6907ae34ba
4 changed files with 6 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import ca.uhn.fhir.util.PortUtil;
import org.eclipse.jetty.server.Server;
@@ -55,13 +56,7 @@ public class ExampleServerDstu3IT {
@BeforeClass
public static void beforeClass() throws Exception {
/*
* This runs under maven, and I'm not sure how else to figure out the target directory from code..
*/
String path = ExampleServerDstu3IT.class.getClassLoader().getResource(".keep_hapi-fhir-jpaserver-starter").getPath();
path = new File(path).getParent();
path = new File(path).getParent();
path = new File(path).getParent();
String path = Paths.get("").toAbsolutePath().toString();
ourLog.info("Project base path is: {}", path);