Interface StepLogic.SetupContext

Enclosing class:
StepLogic<O extends Service.Options>

public static interface StepLogic.SetupContext
  • Method Details

    • project

      org.gradle.api.Project project()
    • downloadCachePath

      Path downloadCachePath(String url) throws IOException
      Returns 该 URL 在下载缓存中的落位路径..

      纯路径计算,不做任何文件系统访问:本方法在配置期被调用,一旦在这里判断文件是否存在 (或顺手把文件下下来),配置缓存就会把该路径记成文件系统输入;而下载缓存位于任务自有工作目录内、 每次执行结束即删,存在性逐次翻转,配置缓存将永久失效。真正的下载见 StepLogic.ExecutionContext.ensureToolJar(java.nio.file.Path, java.lang.String)。

      Returns:
      该 URL 在下载缓存中的落位路径
      Throws:
      IOException
    • downloadDependency

      Path downloadDependency(String notation)
    • getMinecraftLibraries

      org.gradle.api.provider.Provider<org.gradle.api.file.FileCollection> getMinecraftLibraries()