object Jvm
- Alphabetic
- By Inheritance
- Jvm
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class JarManifest(main: Map[String, String] = Map.empty, groups: Map[String, Map[String, String]] = Map.empty) extends Product with Serializable
Represents a JAR manifest.
Represents a JAR manifest.
- main
the main manifest attributes
- groups
additional attributes for named entries
- Annotations
- @Scaladoc()
- class TickerResolutionLogger extends CacheLogger
A Coursier Cache.Logger implementation that updates the ticker with the count and overall byte size of artifacts being downloaded.
A Coursier Cache.Logger implementation that updates the ticker with the count and overall byte size of artifacts being downloaded.
In practice, this ticker output gets prefixed with the current target for which dependencies are being resolved, using a mill.util.ProxyLogger subclass.
- Annotations
- @Scaladoc()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
Runs a JVM subprocess with the given configuration and returns a os.CommandResult with it's aggregated output and error streams
- Annotations
- @Scaladoc()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createAssembly(inputPaths: api.Loose.Agg[Path], manifest: JarManifest = JarManifest.Default, prependShellScript: String = "", base: Option[Path] = None, assemblyRules: Seq[Rule] = Assembly.defaultRules)(implicit ctx: Dest with Log): api.PathRef
- def createClasspathPassingJar(jar: Path, classpath: api.Loose.Agg[Path]): Unit
- def createJar(jar: Path, inputPaths: api.Loose.Agg[Path], manifest: JarManifest, fileFilter: (Path, RelPath) => Boolean): Unit
- def createJar(inputPaths: api.Loose.Agg[Path], manifest: JarManifest = JarManifest.Default, 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
ofos.Path
s 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 aos.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.
- Annotations
- @Scaladoc()
- def createLauncher(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String])(implicit ctx: Dest): api.PathRef
- def createManifest(mainClass: Option[String]): JarManifest
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inprocess[T](classPath: api.Loose.Agg[Path], classLoaderOverrideSbtTesting: Boolean, isolated: Boolean, closeContextClassLoaderWhenDone: Boolean, body: (ClassLoader) => T)(implicit ctx: Home): T
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaExe: String
- def jdkTool(toolName: String): String
Resolves a tool to a path under the currently used JDK (if known).
Resolves a tool to a path under the currently used JDK (if known).
- Annotations
- @Scaladoc()
- def launcherUniversalScript(mainClass: String, shellClassPath: api.Loose.Agg[String], cmdClassPath: api.Loose.Agg[String], jvmArgs: Seq[String], shebang: Boolean = false): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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[Task]) => FileCache[Task]] = None): 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.- Annotations
- @Scaladoc()
- 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[Task]) => FileCache[Task]] = None): (Seq[Dependency], Resolution)
- def runLocal(mainClass: String, classPath: api.Loose.Agg[Path], mainArgs: Seq[String] = Seq.empty)(implicit ctx: Ctx): Unit
- def runSubprocess(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path): Unit
Runs a generic subprocess and waits for it to terminate.
Runs a generic subprocess and waits for it to terminate.
- Annotations
- @Scaladoc()
- 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. Whentrue
, a temporary empty JAR is created which contains aClass-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
- Annotations
- @Scaladoc()
- def spawnSubprocess(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path): 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
- Annotations
- @Scaladoc()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def universalScript(shellCommands: String, cmdCommands: String, shebang: Boolean = false): String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object JarManifest extends Serializable
Deprecated Value Members
- def baseInteractiveSubprocess(commandArgs: Seq[String], envArgs: Map[String, String], workingDir: Path): Unit
- Annotations
- @deprecated
- Deprecated
Use runSubprocess instead
- def resolveDependencies(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], sources: Boolean, mapDependencies: Option[(Dependency) => Dependency], ctx: Option[Log]): Result[api.Loose.Agg[api.PathRef]]
- Annotations
- @deprecated
- Deprecated
(Since version mill after 0.9.6) Use alternative overload. This one is only for binary backwards compatibility.
- def resolveDependencies(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], sources: Boolean, mapDependencies: Option[(Dependency) => Dependency], customizer: Option[(Resolution) => Resolution], ctx: Option[Log]): Result[api.Loose.Agg[api.PathRef]]
- Annotations
- @deprecated
- Deprecated
(Since version mill after 0.10.0) Use alternative overload. This one is only for binary backwards compatibility.
- def resolveDependenciesMetadata(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], mapDependencies: Option[(Dependency) => Dependency], ctx: Option[Log]): (Seq[Dependency], Resolution)
- Annotations
- @deprecated
- Deprecated
(Since version mill after 0.9.6) Use alternative overload. This one is only for binary backwards compatibility.
- def resolveDependenciesMetadata(repositories: Seq[Repository], deps: IterableOnce[Dependency], force: IterableOnce[Dependency], mapDependencies: Option[(Dependency) => Dependency], customizer: Option[(Resolution) => Resolution], ctx: Option[Log]): (Seq[Dependency], Resolution)
- Annotations
- @deprecated
- Deprecated
(Since version mill after 0.10.0) Use alternative overload. This one is only for binary backwards compatibility.
- def runSubprocess(mainClass: String, classPath: api.Loose.Agg[Path], jvmArgs: Seq[String], envArgs: Map[String, String], mainArgs: Seq[String], workingDir: Path, background: Boolean)(implicit ctx: Ctx): Unit
- Annotations
- @deprecated
- Deprecated
(Since version mill after 0.9.6) Only provided for binary compatibility. Use one of the other overloads.