]> source.dussan.org Git - aspectj.git/commitdiff
Java9 jrt-fs.jar helpers
authorAndy Clement <aclement@pivotal.io>
Mon, 27 Jun 2016 21:25:51 +0000 (14:25 -0700)
committerAndy Clement <aclement@pivotal.io>
Mon, 27 Jun 2016 21:25:51 +0000 (14:25 -0700)
util/src/org/aspectj/util/LangUtil.java

index 49caba6b71d34e09f2f856d4d09bf19b66045520..81688156ed5856016a541872c4c39264af0b28e9 100644 (file)
@@ -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");
+       }
 
 }