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 classBuilderListenerimplementation to log Ant events.private static classLazy singleton holder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ZipHelperGet the Singleton instance forZipHelper.(package private) voidzip(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 newZipHelperinstance.
-
-
Method Details
-
getInstance
Get the Singleton instance forZipHelper.- Returns:
- the
ZipHelperinstance
-
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 ofZipFileSetthat describe the resources to ziptarget- theFileinstance for the zip file to create
-