public class BuildInfo
extends org.gradle.api.internal.ConventionTask
Task
for generating a build-info.properties
file from a
Project
.Constructor and Description |
---|
BuildInfo() |
Modifier and Type | Method and Description |
---|---|
void |
generateBuildProperties()
Generates the
build-info.properties file in the configured
destination . |
java.io.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(org.gradle.api.Action<BuildInfoProperties> action)
Executes the given
action on the getProperties() properties. |
void |
setDestinationDir(java.io.File destinationDir)
Sets the directory to which the
build-info.properties file will be written. |
conventionMapping, conventionMapping, getConventionMapping
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService
public void generateBuildProperties()
build-info.properties
file in the configured
destination
.@OutputDirectory public java.io.File getDestinationDir()
build-info.properties
file will be
written. Defaults to the Project's build directory
.public void setDestinationDir(java.io.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(org.gradle.api.Action<BuildInfoProperties> action)
action
on the getProperties()
properties.action
- the action