类 BuildInfo
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
cn.taketoday.gradle.tasks.buildinfo.BuildInfo
- 所有已实现的接口:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="Not worth caching")
public abstract class BuildInfo
extends org.gradle.api.DefaultTask
Task for generating a build-info.properties file from a
Project.- 从以下版本开始:
- 4.0
- 作者:
- Andy Wilkinson, Harry Yang
-
嵌套类概要
从接口继承的嵌套类/接口 org.gradle.api.Task
org.gradle.api.Task.Namer -
字段概要
字段从接口继承的字段 org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidGenerates thebuild-info.propertiesfile in the configureddestination.abstract org.gradle.api.file.DirectoryPropertyReturns the directory to which thebuild-info.propertiesfile will be written.abstract org.gradle.api.provider.SetProperty<String>Returns the names of the properties to exclude from the output.Returns thepropertiesthat will be included in thebuild-info.propertiesfile.voidproperties(org.gradle.api.Action<BuildInfoProperties> action) Executes the givenactionon thegetProperties()properties.从类继承的方法 org.gradle.api.DefaultTask
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从类继承的方法 org.gradle.api.internal.AbstractTask
acceptServiceReferences, 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从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
字段详细资料
-
properties
-
-
构造器详细资料
-
BuildInfo
public BuildInfo()
-
-
方法详细资料
-
getExcludes
Returns the names of the properties to exclude from the output.- 返回:
- names of the properties to exclude
-
generateBuildProperties
public void generateBuildProperties()Generates thebuild-info.propertiesfile in the configureddestination. -
getDestinationDir
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getDestinationDir()Returns the directory to which thebuild-info.propertiesfile will be written.- 返回:
- the destination directory
-
getProperties
Returns thepropertiesthat will be included in thebuild-info.propertiesfile.- 返回:
- the properties
-
properties
Executes the givenactionon thegetProperties()properties.- 参数:
action- the action
-