ProcessCreation (original) (raw)
scala.sys.process.ProcessCreation
Members list
Attributes
Example
apply("java", new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")
Source
Attributes
Example
apply("java" :: javaArgs, new java.io.File("/opt/app"), "CLASSPATH" -> "library.jar")
Source
Attributes
Example
apply("java", params.get("cwd"), "CLASSPATH" -> "library.jar")
Source
Attributes
Example
apply("java" :: javaArgs, params.get("cwd"), "CLASSPATH" -> "library.jar")
Source
Attributes
Example
apply((new java.lang.ProcessBuilder("ls", "-l")) directory new java.io.File(System.getProperty("user.home")))
Source
Creates a scala.sys.process.ProcessBuilder from one or more scala.sys.process.ProcessBuilder.Source, which can then be piped to something else.
This will concatenate the output of all sources. For example:
import scala.sys.process._
import scala.sys.process.Process.cat
import java.net.URL
import java.io.File
val spde = new URL("http://technically.us/spde.html")
val dispatch = new URL("https://dispatchhttp.org/Dispatch.html")
val build = new File("project/build.properties")
cat(spde, dispatch, build) #| "grep -i scala" !
Attributes
Source
In this article