public class BuildInfo extends org.gradle.api.internal.ConventionTask
Task.Namer
TASK_ACTION, 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 . |
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(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
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
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 directory@Input public 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