modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/PackagerLib.java

Print this page




  64 import java.security.cert.X509Certificate;
  65 import java.text.MessageFormat;
  66 import java.util.ArrayList;
  67 import java.util.Base64;
  68 import java.util.Enumeration;
  69 import java.util.HashMap;
  70 import java.util.HashSet;
  71 import java.util.List;
  72 import java.util.Map;
  73 import java.util.Map.Entry;
  74 import java.util.ResourceBundle;
  75 import java.util.Set;
  76 import java.util.jar.Attributes;
  77 import java.util.jar.JarEntry;
  78 import java.util.jar.JarFile;
  79 import java.util.jar.JarOutputStream;
  80 import java.util.jar.Manifest;
  81 import java.util.zip.ZipEntry;
  82 import java.util.zip.ZipOutputStream;
  83 




  84 public class PackagerLib {
  85     public static final String JAVAFX_VERSION = System.getProperty("java.version");
  86 
  87     private static final ResourceBundle bundle =
  88             ResourceBundle.getBundle("com/sun/javafx/tools/packager/Bundle");
  89 
  90     private CreateJarParams createJarParams;
  91     private CreateBSSParams createBssParams;
  92     private File bssTmpDir;
  93 
  94 
  95     private enum Filter {ALL, CLASSES_ONLY, RESOURCES}
  96 
  97     private ClassLoader classLoader;
  98 
  99     private ClassLoader getClassLoader() throws PackagerException {
 100         if (classLoader == null) {
 101             try {
 102                 URL[] urls = {new URL(getJfxrtPath())};
 103                 classLoader = URLClassLoader.newInstance(urls);




  64 import java.security.cert.X509Certificate;
  65 import java.text.MessageFormat;
  66 import java.util.ArrayList;
  67 import java.util.Base64;
  68 import java.util.Enumeration;
  69 import java.util.HashMap;
  70 import java.util.HashSet;
  71 import java.util.List;
  72 import java.util.Map;
  73 import java.util.Map.Entry;
  74 import java.util.ResourceBundle;
  75 import java.util.Set;
  76 import java.util.jar.Attributes;
  77 import java.util.jar.JarEntry;
  78 import java.util.jar.JarFile;
  79 import java.util.jar.JarOutputStream;
  80 import java.util.jar.Manifest;
  81 import java.util.zip.ZipEntry;
  82 import java.util.zip.ZipOutputStream;
  83 
  84 /**
  85  * @deprecated use {@link ToolProvider} to locate the {@code "javapackager"} tool instead.
  86  */
  87 @Deprecated(since="10", forRemoval=true)
  88 public class PackagerLib {
  89     public static final String JAVAFX_VERSION = System.getProperty("java.version");
  90 
  91     private static final ResourceBundle bundle =
  92             ResourceBundle.getBundle("com/sun/javafx/tools/packager/Bundle");
  93 
  94     private CreateJarParams createJarParams;
  95     private CreateBSSParams createBssParams;
  96     private File bssTmpDir;
  97 
  98 
  99     private enum Filter {ALL, CLASSES_ONLY, RESOURCES}
 100 
 101     private ClassLoader classLoader;
 102 
 103     private ClassLoader getClassLoader() throws PackagerException {
 104         if (classLoader == null) {
 105             try {
 106                 URL[] urls = {new URL(getJfxrtPath())};
 107                 classLoader = URLClassLoader.newInstance(urls);