summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/FindResource.java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-08 19:22:45 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-08 19:22:45 -0800
commit727bd8341afc689c842385a234647b8f7b22de21 (patch)
tree73230e098d2a6e72fc72901f4363b46530433f15 /src/test/java/org/javacs/FindResource.java
parent46e72551e73f1de2417102fd3d7fbc358a42cfa6 (diff)
downloadjava-language-server-727bd8341afc689c842385a234647b8f7b22de21.zip
Eliminate SourcePath, docpath isn't quite working
Diffstat (limited to 'src/test/java/org/javacs/FindResource.java')
-rw-r--r--src/test/java/org/javacs/FindResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/FindResource.java b/src/test/java/org/javacs/FindResource.java
index 6e6860e..55c00fa 100644
--- a/src/test/java/org/javacs/FindResource.java
+++ b/src/test/java/org/javacs/FindResource.java
@@ -29,6 +29,6 @@ public class FindResource {
public static Path path(String resourcePath) {
if (resourcePath.startsWith("/")) resourcePath = resourcePath.substring(1);
- return Paths.get("./src/test/test-project/workspace/src").resolve(resourcePath).normalize();
+ return Paths.get("./src/test/test-project/workspace/src").resolve(resourcePath).toAbsolutePath().normalize();
}
}