aboutsummaryrefslogtreecommitdiffstats
path: root/util/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-06-27 14:25:51 -0700
committerAndy Clement <aclement@pivotal.io>2016-06-27 14:25:51 -0700
commit386fedf3f7902893df8c4a0ba47dab60c6720740 (patch)
treeb28c108e7e5819e3c45b06fdcf42a0cb5dbce062 /util/src
parentb784ef4eb56c4aa29d68833f964aa5148540b4f1 (diff)
downloadaspectj-386fedf3f7902893df8c4a0ba47dab60c6720740.tar.gz
aspectj-386fedf3f7902893df8c4a0ba47dab60c6720740.zip
Java9 jrt-fs.jar helpers
Diffstat (limited to 'util/src')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java10
1 files changed, 10 insertions, 0 deletions
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");
+ }
}