public class ProcessExecutionUtility extends Object
ProcessExecutions.| Modifier and Type | Method and Description |
|---|---|
static ProcessExecution |
createProcessExecution(File file)
Creates a ProcessExecution for the specified file for the current platform.
|
static ProcessExecution |
createProcessExecution(String prefix,
File file)
Creates a ProcessExecution for the specified file for the current platform.
|
public static ProcessExecution createProcessExecution(File file)
file - an executable or a batch filepublic static ProcessExecution createProcessExecution(String prefix, File file)
prefix - a prefix command line that should be prepended to the executable's command line
(e.g. "/usr/bin/nohup /usr/bin/sudo -u jboss -g jboss"). any files on the
command line should be absolute paths. if null, no prefix command line will be
prependedfile - an executable or a batch fileCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.