< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java

Print this page




 246         byte[] content = builder.toString().getBytes(StandardCharsets.UTF_8);
 247 
 248         return orig.copyWithContent(content);
 249     }
 250 
 251     private static String jvmlib(String osName) {
 252         String lib = "libjvm.so";
 253         if (isWindows(osName)) {
 254             lib = "jvm.dll";
 255         } else if (isMac(osName)) {
 256             lib = "libjvm.dylib";
 257         }
 258         return lib;
 259     }
 260 
 261     private static boolean isWindows(String osName) {
 262         return osName.startsWith("Windows");
 263     }
 264 
 265     private static boolean isMac(String osName) {
 266         return osName.startsWith("Mac OS");
 267     }
 268 }


 246         byte[] content = builder.toString().getBytes(StandardCharsets.UTF_8);
 247 
 248         return orig.copyWithContent(content);
 249     }
 250 
 251     private static String jvmlib(String osName) {
 252         String lib = "libjvm.so";
 253         if (isWindows(osName)) {
 254             lib = "jvm.dll";
 255         } else if (isMac(osName)) {
 256             lib = "libjvm.dylib";
 257         }
 258         return lib;
 259     }
 260 
 261     private static boolean isWindows(String osName) {
 262         return osName.startsWith("Windows");
 263     }
 264 
 265     private static boolean isMac(String osName) {
 266         return osName.startsWith("Mac OS") || osName.startsWith("Darwin");
 267     }
 268 }
< prev index next >