Package org.glassfish.build.utils
Class ZipHelper
java.lang.Object
org.glassfish.build.utils.ZipHelper
Helper to create zip files using ant.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
BuilderListener
implementation to log Ant events.private static class
Lazy singleton holder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ZipHelper
Get the Singleton instance forZipHelper
.(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.
-
Constructor Details
-
ZipHelper
private ZipHelper()Create a newZipHelper
instance.
-
-
Method Details
-
getInstance
Get the Singleton instance forZipHelper
.- 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 propertiesmavenLog
- Maven loggerduplicate
- behavior for duplicate file, one of "add", "preserve" or "fail"fsets
- list ofZipFileSet
that describe the resources to ziptarget
- theFile
instance for the zip file to create
-