Class JarDirectoryStep

  • All Implemented Interfaces:

    public class JarDirectoryStep
    extends Object
    implements Step
    Creates a JAR file from a collection of directories/ZIP/JAR files.
    • Constructor Detail

      • JarDirectoryStep

        public JarDirectoryStep​(ProjectFilesystem filesystem,
                                JarParameters parameters)
        Creates a JAR from the specified entries (most often, classpath entries).

        If an entry is a directory, then its files are traversed and added to the generated JAR.

        If an entry is a file, then it is assumed to be a ZIP/JAR file, and its entries will be read and copied to the generated JAR. @Param parameters the parameters that describe how to create the jar.