接口 InfraArchive

所有超级接口:
Comparable<org.gradle.api.Task>, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task
所有已知实现类:
InfraJar, InfraWar

public interface InfraArchive extends org.gradle.api.Task
A Infra "fat" archive task.
从以下版本开始:
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
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    classpath(Object... classpath)
    Adds files to the classpath to include in the archive.
    org.gradle.api.file.FileCollection
    Returns the classpath that will be included in the archive.
    Returns the LaunchScriptConfiguration that will control the script that is prepended to the archive.
    org.gradle.api.provider.Property<String>
    Returns the fully-qualified name of the application's main class.
    org.gradle.api.provider.Property<org.gradle.api.JavaVersion>
    Returns the target Java version of the project (e.g. as provided by the targetCompatibility build property).
    void
    Configures the archive to have a prepended launch script.
    void
    launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
    Configures the archive to have a prepended launch script, customizing its configuration using the given action.
    void
    requiresUnpack(String... patterns)
    Adds Ant-style patterns that identify files that must be unpacked from the archive when it is launched.
    void
    requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
    Adds a spec that identifies files that must be unpacked from the archive when it is launched.
    void
    resolvedArtifacts(org.gradle.api.provider.Provider<Set<org.gradle.api.artifacts.result.ResolvedArtifactResult>> resolvedArtifacts)
    Registers the given lazily provided resolvedArtifacts.
    void
    setClasspath(Object classpath)
    Sets the classpath to include in the archive.
    void
    setClasspath(org.gradle.api.file.FileCollection classpath)
    Sets the classpath to include in the archive.

    从接口继承的方法 java.lang.Comparable

    compareTo

    从接口继承的方法 org.gradle.api.plugins.ExtensionAware

    getExtensions

    从接口继承的方法 org.gradle.api.Task

    configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
  • 方法详细资料

    • getMainClass

      @Input org.gradle.api.provider.Property<String> getMainClass()
      Returns the fully-qualified name of the application's main class.
      返回:
      the fully-qualified name of the application's main class
    • requiresUnpack

      void requiresUnpack(String... patterns)
      Adds Ant-style patterns that identify files that must be unpacked from the archive when it is launched.
      参数:
      patterns - the patterns
    • requiresUnpack

      void requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
      Adds a spec that identifies files that must be unpacked from the archive when it is launched.
      参数:
      spec - the spec
    • getLaunchScript

      @Optional LaunchScriptConfiguration getLaunchScript()
      Returns the LaunchScriptConfiguration that will control the script that is prepended to the archive.
      返回:
      the launch script configuration, or null if the launch script has not been configured.
    • launchScript

      void launchScript()
      Configures the archive to have a prepended launch script.
    • launchScript

      void launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
      Configures the archive to have a prepended launch script, customizing its configuration using the given action.
      参数:
      action - the action to apply
    • getClasspath

      @Optional @Classpath org.gradle.api.file.FileCollection getClasspath()
      Returns the classpath that will be included in the archive.
      返回:
      the classpath
    • classpath

      void classpath(Object... classpath)
      Adds files to the classpath to include in the archive. The given classpath is evaluated as per Project.files(Object...).
      参数:
      classpath - the additions to the classpath
    • setClasspath

      void setClasspath(Object classpath)
      Sets the classpath to include in the archive. The given classpath is evaluated as per Project.files(Object...).
      参数:
      classpath - the classpath
    • setClasspath

      void setClasspath(org.gradle.api.file.FileCollection classpath)
      Sets the classpath to include in the archive.
      参数:
      classpath - the classpath
    • getTargetJavaVersion

      @Input @Optional org.gradle.api.provider.Property<org.gradle.api.JavaVersion> getTargetJavaVersion()
      Returns the target Java version of the project (e.g. as provided by the targetCompatibility build property).
      返回:
      the target Java version
    • resolvedArtifacts

      void resolvedArtifacts(org.gradle.api.provider.Provider<Set<org.gradle.api.artifacts.result.ResolvedArtifactResult>> resolvedArtifacts)
      Registers the given lazily provided resolvedArtifacts. They are used to map from the files in the classpath to their dependency coordinates.
      参数:
      resolvedArtifacts - the lazily provided resolved artifacts