Name |
Ceylon Process Platform Module |
---|---|
Category |
SDK
The Ceylon SDK |
Backends | JVM |
Maven coordinates | |
Compatible Ceylon release |
JVM: 1.0.0 (outdated) |
Published | Nov 11, 2013 |
Stats |
Downloads (JVM): 5028 Source downloads: 743 |
Authors |
Gavin King |
Description |
API for running native commands in a child process.
Clients simply create Process process = createProcess { command = "ls -l"; path = home; }; By default, the standard input, output, and error
streams of the new child process are piped to and
from the current process by exposing a if (is Reader reader = process.output) { while (exists line = reader.readLine()) { print(line); } } The standard input, output, and error streams may be
redirected by specifying an Process process = createProcess { command = "ls -l"; path = home; OverwriteFileOutput output { path=home.childPath("out.txt"); } AppendFileOutput error { path=home.childPath("err.txt"); } }; The objects Process process = createProcess { command = "ls -l"; path = home; output = currentOutput; error = currentError; }; To wait for the child process to terminate, call
the |
Dependencies |
ceylon.file/1.0.0
shared
java.base/7 JDK
|
Usage |
import ceylon.process "1.0.0"; |
Module links |
Members Imported By Home Code repository Issue tracker Browse Download .car No .js archive Download source archive Download module documentation View API documentation |