Package org.springframework.boot.loader.tools

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

Related Classes of org.springframework.boot.loader.tools.JarWriter

Copyright © 2018 www.massapicom. 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.