java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.aoapps.ant.tasks.CreateZippedDirectoriesTask
- All Implemented Interfaces:
Cloneable
Creates a ZIP file with a set of directories up to and including the given path. The timestamps for the directories
will be taken from the provided ZIP file and path.
It is proving difficult to be able to introduce new directory into a ZIP file at build time in a reproducible way.
If we set set <zip modificationtime="…">
we replace all meaningful timestamps.
If we do not set it, newly added directories have current time.
Cannot find any way with mappings, since directory-only mappings seem to be always ignored.
Use this task to create a small ZIP file containing only the needed new directories, then includes this new ZIP
file as an additional <zipfileset />
.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
setGeneratePath
(String generatePath) The path to generate in the ZIP file, including all parents, each with timestamps matching the reference.void
setGenerateZip
(String generateZip) The ZIP file that will be generated containing the given path and all parents, each with timestamps matching the reference.void
setReferencePath
(String referencePath) The path within the ZIP file that will be referenced to get the timestamp.void
setReferenceZip
(String referenceZip) The ZIP file that will be referenced to get the timestamp.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
CreateZippedDirectoriesTask
public CreateZippedDirectoriesTask()
-
-
Method Details
-
setReferenceZip
The ZIP file that will be referenced to get the timestamp. -
setReferencePath
The path within the ZIP file that will be referenced to get the timestamp. -
setGenerateZip
The ZIP file that will be generated containing the given path and all parents, each with timestamps matching the reference. -
setGeneratePath
The path to generate in the ZIP file, including all parents, each with timestamps matching the reference. -
execute
- Overrides:
execute
in classTask
- Throws:
BuildException
-