Examples of JARWriter


Examples of net.xeoh.plugins.plugindoctor.output.JARWriter

                final AbstractClasspathElement classPathElement = AbstractClasspathElement.newClassPathElement(l, c);
                System.out.println(classPathElement);
            }
        }
       
        new JARWriter(new File(target + "/test.jar"));
    }
View Full Code Here

Examples of org.springframework.boot.loader.tools.JarWriter

    }

    private void writeJar(File file, Class<?>[] compiledClasses,
        List<MatchedResource> classpathEntries, List<URL> dependencies)
        throws FileNotFoundException, IOException, URISyntaxException {
      JarWriter writer = new JarWriter(file);
      try {
        addManifest(writer, compiledClasses);
        addCliClasses(writer);
        for (Class<?> compiledClass : compiledClasses) {
          addClass(writer, compiledClass);
        }
        addClasspathEntries(writer, classpathEntries);
        addDependencies(writer, dependencies);
        writer.writeLoaderClasses();
      }
      finally {
        writer.close();
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.