Package org.glassfish.build.utils
Class ZipHelper
- java.lang.Object
-
- org.glassfish.build.utils.ZipHelper
-
final class ZipHelper extends java.lang.ObjectHelper to create zip files using ant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classZipHelper.AntBuildListenerBuilderListenerimplementation to log Ant events.private static classZipHelper.LazyHolderLazy singleton holder.
-
Constructor Summary
Constructors Modifier Constructor Description privateZipHelper()Create a newZipHelperinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ZipHelpergetInstance()Get the Singleton instance forZipHelper.(package private) voidzip(java.util.Properties properties, org.apache.maven.plugin.logging.Log mavenLog, java.lang.String duplicate, java.util.List<org.apache.tools.ant.types.ZipFileSet> fsets, java.io.File target)Create a zip file.
-
-
-
Method Detail
-
getInstance
static ZipHelper getInstance()
Get the Singleton instance forZipHelper.- Returns:
- the
ZipHelperinstance
-
zip
void zip(java.util.Properties properties, org.apache.maven.plugin.logging.Log mavenLog, java.lang.String duplicate, java.util.List<org.apache.tools.ant.types.ZipFileSet> fsets, java.io.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
-
-