diff --git a/Makefile b/Makefile index 0f98b450..7420dadc 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ help: html dirhtml singlehtml epub latex: @$(MAKE) docs_$@ $(MFLAGS) -clean: cs_clean cp_clean c_clean js_clean py_clean rs_clean docs_clean +clean: cs_clean cp_clean c_clean ja_clean js_clean py_clean rs_clean docs_clean cs_%: @cd csharp && $(MAKE) $* $(MFLAGS) @@ -67,4 +67,4 @@ rs_%: @cd rust && $(MAKE) $* $(MFLAGS) %: - @$(MAKE) c_$* cp_$* cs_$* js_$* py_$* rs_$* $(MFLAGS) + @$(MAKE) c_$* cp_$* cs_$* ja_$* js_$* py_$* rs_$* $(MFLAGS) diff --git a/java/Makefile b/java/Makefile index f3d2ec6d..bb5eb75e 100644 --- a/java/Makefile +++ b/java/Makefile @@ -16,13 +16,13 @@ dependencies: $(MVN) install -B test: dependencies - $(MVN) test -e -Dtest.single + $(MVN) -e test -Dtest.single test_auto: dependencies - $(MVN) test -e -T 1C + $(MVN) -e test -T 1C test_%: dependencies - $(MVN) test -e -T $* + $(MVN) -e test -T $* lint: $(MVN) formatter:format diff --git a/java/src/main/java/euler/lib/Utilities.java b/java/src/main/java/euler/lib/Utilities.java index 221b05d2..ee12d827 100644 --- a/java/src/main/java/euler/lib/Utilities.java +++ b/java/src/main/java/euler/lib/Utilities.java @@ -13,7 +13,7 @@ private static Path getDataPath(String name) throws IOException { Path classPath = Paths.get(Utilities.class.getProtectionDomain().getCodeSource().getLocation().getPath()); Path classDir = classPath.getParent(); Path filePath = classDir.getParent().getParent().resolve("_data").resolve(name); - return filePath.toAbsolutePath(); + return filePath; } public static byte[] getDataFileBytes(String name) throws IOException { @@ -80,4 +80,4 @@ public static Object getAnswer(long n) throws IOException { } throw new IOException("Answer not found."); } -} \ No newline at end of file +}