类 BuildInfo
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.springframework.boot.gradle.tasks.buildinfo.BuildInfo
- 所有已实现的接口:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,Named
,ExtensionAware
,Task
,Configurable<Task>
@DisableCachingByDefault(because="Not worth caching")
public abstract class BuildInfo
extends DefaultTask
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson
-
嵌套类概要
从接口继承的嵌套类/接口 org.gradle.api.Task
Task.Namer
-
字段概要
从接口继承的字段 org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
Generates thebuild-info.properties
file in the configureddestination
.abstract DirectoryProperty
Returns the directory to which thebuild-info.properties
file will be written.abstract SetProperty
<String> Returns the names of the properties to exclude from the output.Returns theproperties
that will be included in thebuild-info.properties
file.void
properties
(Action<BuildInfoProperties> action) Executes the givenaction
on 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
-
构造器详细资料
-
BuildInfo
public BuildInfo()
-
-
方法详细资料
-
getExcludes
Returns the names of the properties to exclude from the output.- 返回:
- names of the properties to exclude
- 从以下版本开始:
- 3.0.0
-
generateBuildProperties
public void generateBuildProperties()Generates thebuild-info.properties
file in the configureddestination
. -
getDestinationDir
Returns the directory to which thebuild-info.properties
file will be written.- 返回:
- the destination directory
-
getProperties
Returns theproperties
that will be included in thebuild-info.properties
file.- 返回:
- the properties
-
properties
Executes the givenaction
on thegetProperties()
properties.- 参数:
action
- the action
-