类 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
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final BuildInfoProperties
     

    从接口继承的字段 org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Generates the build-info.properties file in the configured destination.
    abstract org.gradle.api.file.DirectoryProperty
    Returns the directory to which the build-info.properties file will be written.
    abstract org.gradle.api.provider.SetProperty<String>
    Returns the names of the properties to exclude from the output.
    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.

    从类继承的方法 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

      @Internal public abstract org.gradle.api.provider.SetProperty<String> getExcludes()
      Returns the names of the properties to exclude from the output.
      返回:
      names of the properties to exclude
    • generateBuildProperties

      public void generateBuildProperties()
      Generates the build-info.properties file in the configured destination.
    • getDestinationDir

      @OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getDestinationDir()
      Returns the directory to which the build-info.properties file will be written.
      返回:
      the destination directory
    • getProperties

      public BuildInfoProperties getProperties()
      Returns the properties that will be included in the build-info.properties file.
      返回:
      the properties
    • properties

      public void properties(org.gradle.api.Action<BuildInfoProperties> action)
      Executes the given action on the getProperties() properties.
      参数:
      action - the action