From 386fedf3f7902893df8c4a0ba47dab60c6720740 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Mon, 27 Jun 2016 14:25:51 -0700 Subject: Java9 jrt-fs.jar helpers --- util/src/org/aspectj/util/LangUtil.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'util') diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 49caba6b7..81688156e 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -38,6 +38,8 @@ public class LangUtil { public static final String EOL; + public static final String JRT_FS = "jrt-fs.jar"; + private static double vmVersion; static { @@ -1456,5 +1458,13 @@ public class LangUtil { } } // class Thrown } + + public static String getJrtFsFilePath() { + return getJavaHome()+File.separator+JRT_FS; + } + + public static String getJavaHome() { + return System.getProperty("java.home"); + } } -- cgit v1.2.3