Class ZipClassesFromClassResourceExporter


  • public class ZipClassesFromClassResourceExporter
    extends ZipResourceExporter
    Copy all classes and data that can be found relative to the given class resource to the generated JAR/ZIP.

    This allows us to create a self-contained executable JAR with a user defined startup class.

    © 2012-2034 akquinet tech@spree

    Author:
    M. Dahm
    • Constructor Detail

      • ZipClassesFromClassResourceExporter

        public ZipClassesFromClassResourceExporter​(ZipOutputStream zipOutputStream)
    • Method Detail

      • copyClassesToZip

        public void copyClassesToZip​(Class<?> startupClass)
                              throws IOException
        Copy all classes and data that can be found relative to the given class resource to the generated JAR/ZIP.

        We support classes read from file system or JAR.

        Throws:
        IOException