Class Packager

java.lang.Object
org.ek9lang.core.Packager

public final class Packager extends Object
Focus on the responsibility of packaging. i.e. zipping and unzipping.
  • Constructor Details

  • Method Details

    • createJar

      public boolean createJar(String fileName, List<ZipSet> sets)
      Create a compressed archive to file with zip sets.
    • createJar

      public boolean createJar(String fileName, List<ZipSet> sets, String mainClass)
      Create a compressed archive to file with zip sets and optional Main-Class manifest.
      Parameters:
      fileName - The name of the JAR file to create
      sets - The list of ZipSets to include
      mainClass - The fully-qualified main class name for manifest (null for no Main-Class)
      Returns:
      true if JAR creation successful
    • unZipFileTo

      public boolean unZipFileTo(File zipFile, File unpackedDir)
      Unpacks a zip/jar file to a specific directory.
    • createZip

      public boolean createZip(String fileName, ZipSet set, File sourcePropertiesFile)
      Create a zip with the zip set and copy over the properties file.