The builder allows setting up a build task invocation that generates a ZIP archive with the configured contents.
The builder can be instantiated using newBuilder().
The interface may be implemented in some cases, but in general, it is not recommended doing so.
public void | addIncludeArchive( Adds an archive of which the contents of should be added to the created ZIP. |
public void | addResource( Adds a file to be added to the created archive. |
public default void | addResource( Adds a file to be added to the created archive. |
public void | addResourceTransformer( Adds a resource transformer to the ZIP creation task. |
public TaskFactory< | Builds the task based on the current state of the builder. |
public TaskIdentifier | Builds a task identifier that can be used to start the task. |
public static ZipCreationTaskBuilder | Creates a new builder instance. |
public void | setModificationTime( Sets the default modification time that should be set for the archive entries. |
public void | setOutputPath( Sets the output location where the archive should be created to. |
The archiving task will enumerate the entries in the specified ZIP archive and include them with the paths specified with the given mapping.
null
, the
identity mapping is used.null
.null
.null
.Resource transformers can be used to modify the contents of the created ZIP in a dynamic manner.
null
.The builder can be reused after this call.
The builder can be reused after this call.
The archive entries will have this modification time set for them.
This modification time will not be set for included archive entries. The modification time for them is based on their modification time in the source archive.
null
to use the default.The specified path must be absolute.
Setting the output path is required before calling the build methods.
null
.