- All Implemented Interfaces:
Cloneable
ZipTimestampMerge.mergeDirectory(java.time.Instant, boolean, boolean, java.io.File, java.io.File)
.
Note: This task should be performed before GenerateJavadocSitemapTask
in order to have correct timestamps
inside the generated sitemaps.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
setBuildDirectory
(String buildDirectory) The directory that contains the artifacts of the current build.void
setBuildReproducible
(boolean buildReproducible) When the build is reproducible (the default), all AAR/JAR/WAR/ZIP entries are verified to matchoutputTimestamp
.void
setLastBuildDirectory
(String lastBuildDirectory) The directory that contains the artifacts of the last successful build.void
setOutputTimestamp
(String outputTimestamp) The output timestamp used for entries that are found to be updated.void
setRequireLastBuild
(boolean requireLastBuild) When requiring the last successful build (the default), all AAR/JAR/WAR/ZIP files inbuildDirectory
must have a one-for-one corresponding file inlastBuildDirectory
.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
-
ZipTimestampMergeTask
public ZipTimestampMergeTask()
-
-
Method Details
-
setOutputTimestamp
The output timestamp used for entries that are found to be updated. WhenbuildReproducible
, then value must match all the entries of the AAR/JAR/WAR/ZIP files contained inbuildDirectory
.- Throws:
DateTimeException
-
setBuildReproducible
public void setBuildReproducible(boolean buildReproducible) When the build is reproducible (the default), all AAR/JAR/WAR/ZIP entries are verified to matchoutputTimestamp
. When not flagged as reproducible, all entries will be patched to be equal tooutputTimestamp
. -
setRequireLastBuild
public void setRequireLastBuild(boolean requireLastBuild) When requiring the last successful build (the default), all AAR/JAR/WAR/ZIP files inbuildDirectory
must have a one-for-one corresponding file inlastBuildDirectory
.Furthermore, the one-for-one mapping must be bi-directional: all AAR/JAR/WAR/ZIP files in
lastBuildDirectory
must have a corresponding file inbuildDirectory
.This is expected to be set to
false
for a first build only. Subsequent builds should always have this at the defaulttrue
. In there rare event the build removes or adds new artifacts, the build may need to be manually launched withrequireLastBuild = false
. -
setLastBuildDirectory
The directory that contains the artifacts of the last successful build. Must exist whenrequireLastBuild
and be a directory. -
setBuildDirectory
The directory that contains the artifacts of the current build. Must exist and be a directory. -
execute
CallsZipTimestampMerge.mergeDirectory(java.time.Instant, boolean, boolean, java.io.File, java.io.File)
while logging toTask.log(java.lang.String, int)
.- Overrides:
execute
in classTask
- Throws:
BuildException
-