- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidsetBuildDirectory(String buildDirectory) The directory that contains the artifacts of the current build.voidsetBuildReproducible(boolean buildReproducible) When the build is reproducible (the default), all AAR/JAR/WAR/ZIP entries are verified to matchoutputTimestamp.voidsetLastBuildDirectory(String lastBuildDirectory) The directory that contains the artifacts of the last successful build.voidsetOutputTimestamp(String outputTimestamp) The output timestamp used for entries that are found to be updated.voidsetRequireLastBuild(boolean requireLastBuild) When requiring the last successful build (the default), all AAR/JAR/WAR/ZIP files inbuildDirectorymust 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, setTaskTypeMethods 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 inbuildDirectorymust 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
lastBuildDirectorymust have a corresponding file inbuildDirectory.This is expected to be set to
falsefor 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 whenrequireLastBuildand 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:
executein classTask- Throws:
BuildException
-
