diff options
author | George Fraser <george@fivetran.com> | 2017-05-06 10:31:20 -0400 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2017-05-06 10:31:20 -0400 |
commit | 630df6ba27dcb88e2997c0897766ea1b6c7913ed (patch) | |
tree | bd0b05d24f244dd876384f1c9904b8915dd462ee /src/test/java/org/javacs/FindResource.java | |
parent | 748fe64c7f4fd0bb7308a481699cb318d8de2b6c (diff) | |
download | java-language-server-630df6ba27dcb88e2997c0897766ea1b6c7913ed.zip |
Figure out sourcePath automatically
Diffstat (limited to 'src/test/java/org/javacs/FindResource.java')
-rw-r--r-- | src/test/java/org/javacs/FindResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/FindResource.java b/src/test/java/org/javacs/FindResource.java index 355223a..0f26115 100644 --- a/src/test/java/org/javacs/FindResource.java +++ b/src/test/java/org/javacs/FindResource.java @@ -6,14 +6,14 @@ import java.nio.file.Path; import java.nio.file.Paths; /** - * Represents a java source on the system resource path. + * Find java sources in test-project/workspace/src */ public class FindResource { public static URI uri(String resourcePath) { if (resourcePath.startsWith("/")) resourcePath = resourcePath.substring(1); - Path path = Paths.get("./src/test/resources").resolve(resourcePath).normalize(); + Path path = Paths.get("./src/test/test-project/workspace/src").resolve(resourcePath).normalize(); File file = path.toFile(); if (!file.exists()) |