站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

CommandExecutor (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.cmdline.exec
Class CommandExecutor

java.lang.Object
  extended byorg.netbeans.modules.vcscore.cmdline.exec.CommandExecutor
Direct Known Subclasses:
CommandExecutor1_5

public class CommandExecutor
extends Object

The command executor.


Constructor Summary
protected CommandExecutor()
          Creates a new instance of CommandExecutor
 
Method Summary
 Process createProcess(String[] cmdArr, String[] envp, File work, boolean mergeStreams)
          Create the process that is executing the command.
static CommandExecutor getDefault()
          Get the default instance of command executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandExecutor

protected CommandExecutor()
Creates a new instance of CommandExecutor

Method Detail

getDefault

public static CommandExecutor getDefault()
Get the default instance of command executor.


createProcess

public Process createProcess(String[] cmdArr,
                             String[] envp,
                             File work,
                             boolean mergeStreams)
                      throws IOException
Create the process that is executing the command.

Parameters:
cmdArr - array containing the command to call and it's arguments
envp - environment - array of strings of the format name=value.
work - the working directory
mergeStreams - whether to merge error output with the standard output. This should not be set when running on JDK 1.4.x (a warning is provided).
Returns:
The process.
Throws:
IOException

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.