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
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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
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