@DisableCachingByDefault(because="Not worth caching") public class BuildInfo extends org.gradle.api.internal.ConventionTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
BuildInfo() |
Modifier and Type | Method and Description |
---|---|
void |
generateBuildProperties()
Generates the
build-info.properties file in the configured
destination . |
File |
getDestinationDir()
Returns the directory to which the
build-info.properties file will be
written. |
BuildInfoProperties |
getProperties()
Returns the
properties that will be included in the
build-info.properties file. |
void |
properties(Action<BuildInfoProperties> action)
Executes the given
action on the getProperties() properties. |
void |
setDestinationDir(File destinationDir)
Sets the directory to which the
build-info.properties file will be written. |
conventionMapping, conventionMapping, getConventionMapping
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
public void generateBuildProperties()
build-info.properties
file in the configured
destination
.@OutputDirectory public File getDestinationDir()
build-info.properties
file will be
written. Defaults to the Project's build directory
.public void setDestinationDir(File destinationDir)
build-info.properties
file will be written.destinationDir
- the destination directorypublic BuildInfoProperties getProperties()
properties
that will be included in the
build-info.properties
file.public void properties(Action<BuildInfoProperties> action)
action
on the getProperties()
properties.action
- the action