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
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, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, 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 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 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