Package org.glassfish.build
Class ZipMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.glassfish.build.ZipMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="zip", requiresDependencyResolution=RUNTIME, defaultPhase=PACKAGE, requiresProject=true) public final class ZipMojo extends org.apache.maven.plugin.AbstractMojoCreates a zip file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classZipMojo.DistributionArtifactHandlerArtifactHandlerimplementation.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.BooleanattachAttach the produced artifact.private java.io.FiledirThe root directory of the default FileSet.private java.lang.Stringduplicatebehavior when a duplicate file is found.private java.lang.StringexcludesComma or space separated list of exclude patterns.private java.lang.StringextensionThe extension of the generated file.private org.apache.tools.ant.types.ZipFileSet[]filesetsContent to include in the zip.private java.lang.StringfinalNameThe file name of the created zip.private java.lang.StringincludesComma or space separated list of include patterns.private java.io.FileoutputDirectoryThe directory where the zip will be created.private org.apache.maven.project.MavenProjectprojectThe maven project.private static java.lang.StringPROPERTY_PREFIXParameters property prefix.
-
Constructor Summary
Constructors Constructor Description ZipMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
PROPERTY_PREFIX
private static final java.lang.String PROPERTY_PREFIX
Parameters property prefix.- See Also:
- Constant Field Values
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project.
-
outputDirectory
@Parameter(property="gfzip.outputDirectoryoutputDirectory", defaultValue="${project.build.directory}") private java.io.File outputDirectoryThe directory where the zip will be created.
-
finalName
@Parameter(property="gfzip.outputDirectoryfinalName", defaultValue="${project.build.finalName}") private java.lang.String finalNameThe file name of the created zip.
-
duplicate
@Parameter(property="gfzip.outputDirectoryduplicate", defaultValue="add") private java.lang.String duplicatebehavior when a duplicate file is found. Valid values are "add", "preserve", and "fail" ; default value is "add"
-
filesets
@Parameter(property="gfzip.outputDirectoryfilesets") private org.apache.tools.ant.types.ZipFileSet[] filesets
Content to include in the zip.
-
dir
@Parameter(property="gfzip.outputDirectorydir", defaultValue="${project.build.directory}") private java.io.File dirThe root directory of the default FileSet. Only when no fileset(s) provided.
-
includes
@Parameter(property="gfzip.outputDirectoryincludes") private java.lang.String includes
Comma or space separated list of include patterns. all files are included when omitted ; Only when no fileset provided.
-
excludes
@Parameter(property="gfzip.outputDirectoryexcludes") private java.lang.String excludes
Comma or space separated list of exclude patterns. all files are included when omitted ; Only when no fileset provided.
-
extension
@Parameter(property="gfzip.outputDirectoryextension", defaultValue="zip") private java.lang.String extensionThe extension of the generated file.
-
attach
@Parameter(property="gfzip.outputDirectoryattach", defaultValue="true") private java.lang.Boolean attachAttach the produced artifact.
-
-