diff options
author | Andy Clement <aclement@pivotal.io> | 2016-06-27 14:25:51 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-06-27 14:25:51 -0700 |
commit | 386fedf3f7902893df8c4a0ba47dab60c6720740 (patch) | |
tree | b28c108e7e5819e3c45b06fdcf42a0cb5dbce062 /util | |
parent | b784ef4eb56c4aa29d68833f964aa5148540b4f1 (diff) | |
download | aspectj-386fedf3f7902893df8c4a0ba47dab60c6720740.tar.gz aspectj-386fedf3f7902893df8c4a0ba47dab60c6720740.zip |
Java9 jrt-fs.jar helpers
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/LangUtil.java | 10 |
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"); + } } |