Class ZipHelper

java.lang.Object
org.glassfish.build.utils.ZipHelper

final class ZipHelper extends Object
Helper to create zip files using ant.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final class 
    BuilderListener implementation to log Ant events.
    private static class 
    Lazy singleton holder.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Create a new ZipHelper instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static ZipHelper
    Get the Singleton instance for ZipHelper.
    (package private) void
    zip(Properties properties, org.apache.maven.plugin.logging.Log mavenLog, String duplicate, List<org.apache.tools.ant.types.ZipFileSet> fsets, File target)
    Create a zip file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZipHelper

      private ZipHelper()
      Create a new ZipHelper instance.
  • Method Details

    • getInstance

      static ZipHelper getInstance()
      Get the Singleton instance for ZipHelper.
      Returns:
      the ZipHelper instance
    • zip

      void zip(Properties properties, org.apache.maven.plugin.logging.Log mavenLog, String duplicate, List<org.apache.tools.ant.types.ZipFileSet> fsets, File target)
      Create a zip file.
      Parameters:
      properties - Ant project properties
      mavenLog - Maven logger
      duplicate - behavior for duplicate file, one of "add", "preserve" or "fail"
      fsets - list of ZipFileSet that describe the resources to zip
      target - the File instance for the zip file to create