- updated project base path resolution
- removed .keep_hapi-fhir-jpaserver-starter file as its not needed anymore
This commit is contained in:
@@ -15,6 +15,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@@ -56,13 +57,7 @@ public class ExampleServerDstu2IT {
|
|||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws Exception {
|
public static void beforeClass() throws Exception {
|
||||||
/*
|
String path = Paths.get("").toAbsolutePath().toString();
|
||||||
* This runs under maven, and I'm not sure how else to figure out the target directory from code..
|
|
||||||
*/
|
|
||||||
String path = ExampleServerDstu2IT.class.getClassLoader().getResource(".keep_hapi-fhir-jpaserver-starter").getPath();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
|
|
||||||
ourLog.info("Project base path is: {}", path);
|
ourLog.info("Project base path is: {}", path);
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
import ca.uhn.fhir.util.PortUtil;
|
import ca.uhn.fhir.util.PortUtil;
|
||||||
import org.eclipse.jetty.server.Server;
|
import org.eclipse.jetty.server.Server;
|
||||||
@@ -55,13 +56,7 @@ public class ExampleServerDstu3IT {
|
|||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws Exception {
|
public static void beforeClass() throws Exception {
|
||||||
/*
|
String path = Paths.get("").toAbsolutePath().toString();
|
||||||
* 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();
|
|
||||||
|
|
||||||
ourLog.info("Project base path is: {}", path);
|
ourLog.info("Project base path is: {}", path);
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@@ -56,13 +57,7 @@ public class ExampleServerR4IT {
|
|||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws Exception {
|
public static void beforeClass() throws Exception {
|
||||||
/*
|
String path = Paths.get("").toAbsolutePath().toString();
|
||||||
* This runs under maven, and I'm not sure how else to figure out the target directory from code..
|
|
||||||
*/
|
|
||||||
String path = ExampleServerR4IT.class.getClassLoader().getResource(".keep_hapi-fhir-jpaserver-starter").getPath();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
path = new File(path).getParent();
|
|
||||||
|
|
||||||
ourLog.info("Project base path is: {}", path);
|
ourLog.info("Project base path is: {}", path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user