Class jls.lang.ProcessBuilder

This class is used to create OS processes.
Defined in: ProcessBuilder.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.lang.ProcessBuilder(cmdArray, envp)
Creates a process builder with the specified command and arguments with the specified environment and working directory.
Field Summary
Field Attributes Field Name and Description
<static>  
jls.lang.ProcessBuilder.StandardError
Represents the standard error.
<static>  
jls.lang.ProcessBuilder.StandardInput
Represents the standard input.
<static>  
jls.lang.ProcessBuilder.StandardOutput
Represents the standard output.
Method Summary
Method Attributes Method Name and Description
 
Sets this process builder's working directory.
 
setStdioRedirect(fd, stdio)
Sets this process builder's working directory.
 
Starts a new process using the attributes of this process builder.
Class Detail
jls.lang.ProcessBuilder(cmdArray, envp)
Creates a process builder with the specified command and arguments with the specified environment and working directory.
Parameters:
{Array} cmdArray
Array of strings specifying the command-line arguments. The first argument is the name of the executable file.
{Array} envp Optional
Array of key-values specifying the environment strings. If undefined, the new process inherits the environment of the parent process.
Field Detail
<static> {Number} jls.lang.ProcessBuilder.StandardError
Represents the standard error.

<static> {Number} jls.lang.ProcessBuilder.StandardInput
Represents the standard input.

<static> {Number} jls.lang.ProcessBuilder.StandardOutput
Represents the standard output.
Method Detail
setCurrentDirectory(dir)
Sets this process builder's working directory.
Parameters:
{jls.io.File} dir
The working directory of the subprocess, or undefined if the subprocess should inherit the working directory of the current process.

setStdioRedirect(fd, stdio)
Sets this process builder's working directory.
Parameters:
{jls.io.FileDescriptor} fd
The file descriptor to use for redirection.
{Number} stdio
The standard IO to redirect.

{jls.lang.Process} start()
Starts a new process using the attributes of this process builder.
Returns:
{jls.lang.Process} A new Process for managing the subprocess.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)