object Jvm extends CoursierSupport

Source
Jvm.scala
Linear Supertypes
CoursierSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Jvm
  2. CoursierSupport
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Deprecated Type Members

  1. type JarManifest = api.JarManifest
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.11.0-M4) Use mill.api.JarManifest instead

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def callSubprocess(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String] = Seq.empty, envArgs: Map[String, String] = Map.empty, mainArgs: Seq[String] = Seq.empty, workingDir: Path = null, streamOut: Boolean = true)(implicit ctx: Ctx): CommandResult

    Runs a JVM subprocess with the given configuration and returns a os.CommandResult with it's aggregated output and error streams

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def createClasspathPassingJar(jar: Path, classpath: api.Loose.Agg[Path]): Unit
  8. def createJar(jar: Path, inputPaths: api.Loose.Agg[Path], manifest: api.JarManifest, fileFilter: (Path, RelPath) => Boolean): Unit
  9. def createJar(inputPaths: api.Loose.Agg[Path], manifest: api.JarManifest = mill.api.JarManifest.MillDefault, fileFilter: (Path, RelPath) => Boolean = (_, _) => true)(implicit ctx: Dest): api.PathRef

    Create a jar file containing all files from the specified input Paths, called out.jar in the implicit ctx.dest folder.

    Create a jar file containing all files from the specified input Paths, called out.jar in the implicit ctx.dest folder. An optional main class may be provided for the jar. An optional filter function may also be provided to selectively include/exclude specific files.

    inputPaths

    - Agg of os.Paths containing files to be included in the jar

    fileFilter

    - optional file filter to select files to be included. Given a os.Path (from inputPaths) and a os.RelPath for the individual file, return true if the file is to be included in the jar.

    ctx

    - implicit Ctx.Dest used to determine the output directory for the jar.

    returns

    - a PathRef for the created jar.

  10. def createLauncher(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String])(implicit ctx: Dest): api.PathRef
  11. def createManifest(mainClass: Option[String]): api.JarManifest
  12. def defaultBackgroundOutputs(outputDir: Path): Option[(ProcessOutput, ProcessOutput)]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def inprocess[T](classPath: api.Loose.Agg[Path], classLoaderOverrideSbtTesting: Boolean, isolated: Boolean, closeContextClassLoaderWhenDone: Boolean, body: (ClassLoader) => T)(implicit ctx: Home): T
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def javaExe: String
  21. def jdkTool(toolName: String): String

    Resolves a tool to a path under the currently used JDK (if known).

  22. def launcherUniversalScript(mainClass: String, shellClassPath: api.Loose.Agg[String], cmdClassPath: api.Loose.Agg[String], jvmArgs: Seq[String], shebang: Boolean = false): String
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def resolveDependencies(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], sources: Boolean = false, mapDependencies: Option[(Dependency) => Dependency] = None, customizer: Option[(Resolution) => Resolution] = None, ctx: Option[Log] = None, coursierCacheCustomizer: Option[(FileCache[coursier.util.Task]) => FileCache[coursier.util.Task]] = None, resolveFilter: (Path) => Boolean = _ => true): Result[api.Loose.Agg[api.PathRef]]

    Resolve dependencies using Coursier.

    Resolve dependencies using Coursier.

    We do not bother breaking this out into the separate ZincWorkerApi classpath, because Coursier is already bundled with mill/Ammonite to support the import $ivy syntax.

    Definition Classes
    CoursierSupport
  27. def resolveDependenciesMetadata(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], mapDependencies: Option[(Dependency) => Dependency] = None, customizer: Option[(Resolution) => Resolution] = None, ctx: Option[Log] = None, coursierCacheCustomizer: Option[(FileCache[coursier.util.Task]) => FileCache[coursier.util.Task]] = None): (Seq[Dependency], Resolution)
    Definition Classes
    CoursierSupport
  28. def runLocal(mainClass: String, classPath: api.Loose.Agg[Path], mainArgs: Seq[String] = Seq.empty)(implicit ctx: Ctx): Unit
  29. def runSubprocess(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path): Unit

    Runs a generic subprocess and waits for it to terminate.

  30. def runSubprocess(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String] = Seq.empty, envArgs: Map[String, String] = Map.empty, mainArgs: Seq[String] = Seq.empty, workingDir: Path = null, background: Boolean = false, useCpPassingJar: Boolean = false)(implicit ctx: Ctx): Unit

    Runs a JVM subprocess with the given configuration and streams it's stdout and stderr to the console.

    Runs a JVM subprocess with the given configuration and streams it's stdout and stderr to the console.

    mainClass

    The main class to run

    classPath

    The classpath

    envArgs

    Environment variables used when starting the forked JVM

    workingDir

    The working directory to be used by the forked JVM

    background

    true if the forked JVM should be spawned in background

    useCpPassingJar

    When false, the -cp parameter is used to pass the classpath to the forked JVM. When true, a temporary empty JAR is created which contains a Class-Path manifest entry containing the actual classpath. This might help with long classpaths on OS'es (like Windows) which only supports limited command-line length

  31. def runSubprocessWithBackgroundOutputs(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String] = Seq.empty, envArgs: Map[String, String] = Map.empty, mainArgs: Seq[String] = Seq.empty, workingDir: Path = null, backgroundOutputs: Option[(ProcessOutput, ProcessOutput)] = None, useCpPassingJar: Boolean = false)(implicit ctx: Ctx): Unit

    Runs a JVM subprocess with the given configuration and streams it's stdout and stderr to the console.

    Runs a JVM subprocess with the given configuration and streams it's stdout and stderr to the console.

    mainClass

    The main class to run

    classPath

    The classpath

    envArgs

    Environment variables used when starting the forked JVM

    workingDir

    The working directory to be used by the forked JVM

    backgroundOutputs

    If the subprocess should run in the background, a Tuple of ProcessOutputs containing out and err respectively. Specify None for nonbackground processes.

    useCpPassingJar

    When false, the -cp parameter is used to pass the classpath to the forked JVM. When true, a temporary empty JAR is created which contains a Class-Path manifest entry containing the actual classpath. This might help with long classpaths on OS'es (like Windows) which only supports limited command-line length

  32. def spawnSubprocess(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path, background: Boolean = false): SubProcess

    Spawns a generic subprocess, streaming the stdout and stderr to the console.

    Spawns a generic subprocess, streaming the stdout and stderr to the console. If the System.out/System.err have been substituted, makes sure that the subprocess's stdout and stderr streams go to the subtituted streams

  33. def spawnSubprocessWithBackgroundOutputs(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path, backgroundOutputs: Option[(ProcessOutput, ProcessOutput)] = None): SubProcess

    Spawns a generic subprocess, streaming the stdout and stderr to the console.

    Spawns a generic subprocess, streaming the stdout and stderr to the console. If the System.out/System.err have been substituted, makes sure that the subprocess's stdout and stderr streams go to the subtituted streams.

    If the process should be spawned in the background, destination streams for out and err respectively must be defined in the backgroundOutputs tuple. Nonbackground process should set backgroundOutputs to None

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def universalScript(shellCommands: String, cmdCommands: String, shebang: Boolean = false): String
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. val JarManifest: api.JarManifest.type
    Annotations
    @deprecated
    Deprecated

    (Since version Mill after 0.11.0-M4) Use mill.api.JarManifest instead

Inherited from CoursierSupport

Inherited from AnyRef

Inherited from Any

Ungrouped