public class LaunchCommand extends Object
LaunchTask
class when executing a JVM process.Constructor and Description |
---|
LaunchCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAppendoutput()
Get the appendOutput flag.
|
ArrayList |
getArgs()
Get the list of nested arg elements.
|
String |
getClassname()
Get the class name.
|
String |
getClasspath()
Get the classpath.
|
boolean |
getDebug()
Get the debug flag.
|
boolean |
getDisplayminimizedwindow()
Get the displayMinimizedWindow flag.
|
boolean |
getDisposeminimizedwindow()
Get the disposeMinimizedWindow flag.
|
boolean |
getFailonerror()
Get the failOnError flag.
|
ArrayList |
getJvmargs()
Get the list of nested jvmarg elements.
|
File |
getMinimizedwindowicon()
Get the icon file for the minimized window that will be displayed in the
Windows taskbar.
|
String |
getMinimizedwindowtitle()
Get the title for the minimized window that will be displayed in the
Windows taskbar.
|
File |
getOutput()
Get the file that the child JVM's System.out and System.err will be
redirected to.
|
boolean |
getPrint()
Get the print flag.
|
boolean |
getRedirectoutput()
Get the redirect flag.
|
boolean |
getRequiretools()
Get the requireTools flag.
|
HashMap |
getSysproperties()
Get the list of nested sysproperty elements.
|
boolean |
getUsesystemin()
Get the useSystemIn flag.
|
boolean |
getWaitforchild()
Get the waitForChild flag.
|
void |
setAppendoutput(boolean appendOutput)
Set the appendOutput flag.
|
void |
setArgs(ArrayList args)
Set the list of nested arg elements.
|
void |
setClassname(String mainClassName)
Set the class name.
|
void |
setClasspath(String classpath)
Set the classpath.
|
void |
setDebug(boolean debug)
Set the debug flag.
|
void |
setDisplayminimizedwindow(boolean displayMinimizedWindow)
Set the displayMinimizedWindow flag.
|
void |
setDisposeminimizedwindow(boolean disposeMinimizedWindow)
Set the disposeMinimizedWindow flag.
|
void |
setFailonerror(boolean failOnError)
Set the failOnError flag.
|
void |
setJvmargs(ArrayList jvmArgs)
Set the list of nested jvmarg elements.
|
void |
setMinimizedwindowicon(File minimizedWindowIcon)
Set the icon file for the minimized window that will be displayed in the
Windows taskbar.
|
void |
setMinimizedwindowtitle(String minimizedWindowTitle)
Set the title for the minimized window that will be displayed in the
Windows taskbar.
|
void |
setOutput(File outputFile)
Set the file that the child JVM's System.out and System.err will be
redirected to.
|
void |
setPrint(boolean print)
Set the print flag.
|
void |
setRedirectoutput(boolean redirect)
Set the redirect flag.
|
void |
setRequiretools(boolean requireTools)
Set the requireTools flag.
|
void |
setSysproperties(HashMap sysProperties)
Set the list of nested sysproperty elements.
|
void |
setUsesystemin(boolean useSystemIn)
Set the useSystemIn flag.
|
void |
setWaitforchild(boolean waitForChild)
Set the waitForChild flag.
|
public LaunchCommand()
public String getClassname()
main(String[])
public String getClasspath()
public boolean getDebug()
public boolean getDisplayminimizedwindow()
public boolean getDisposeminimizedwindow()
public boolean getFailonerror()
public String getMinimizedwindowtitle()
public File getMinimizedwindowicon()
public File getOutput()
public boolean getAppendoutput()
public boolean getRedirectoutput()
public ArrayList getArgs()
String
objectspublic ArrayList getJvmargs()
String
objectspublic boolean getPrint()
public boolean getRequiretools()
public HashMap getSysproperties()
String
objectspublic boolean getUsesystemin()
public boolean getWaitforchild()
public void setPrint(boolean print)
print
- the print flagpublic void setRequiretools(boolean requireTools)
requireTools
- the requireTools flagpublic void setUsesystemin(boolean useSystemIn)
useSystemIn
- the useSystemIn flagpublic void setWaitforchild(boolean waitForChild)
waitForChild
- the waitForChild flagpublic void setClassname(String mainClassName)
mainClassName
- the class to execute main(String[])
public void setClasspath(String classpath)
classpath
- the classpathpublic void setDebug(boolean debug)
debug
- the debug flagpublic void setDisplayminimizedwindow(boolean displayMinimizedWindow)
setWaitforchild(boolean)
method.displayMinimizedWindow
- true if a minimized window should be
displayed in the Windows task bar while the child process is executingpublic void setDisposeminimizedwindow(boolean disposeMinimizedWindow)
setDisplayminimizedwindow(boolean)
to be automatically
disposed of when the child JVM's main(String[])
returns.
This flag is normally used for applications that don't explicitly call
System.exit(int)
. If an application does not explicitly call
System.exit(int)
, an minimized windows need to be disposed of
for the child JVM to exit.disposeMinimizedWindow
- true if a minimized window in the Windows
taskbar should be automatically disposed of after the child JVM's
main(String[])
returnspublic void setFailonerror(boolean failOnError)
failOnError
- the failOnError flagpublic void setMinimizedwindowtitle(String minimizedWindowTitle)
minimizedWindowTitle
- the title to set for any minimized window
that is displayed in the Windows taskbarpublic void setMinimizedwindowicon(File minimizedWindowIcon)
minimizedWindowIcon
- the icon file to use for any minimized window
that is displayed in the Windows taskbarpublic void setOutput(File outputFile)
setRedirectoutput(boolean)
method.outputFile
- a File to redirect System.out and System.err topublic void setAppendoutput(boolean appendOutput)
setOutput(File)
method. Setting this flag to false will cause
the child to overwrite the file.appendOutput
- true if output should be appended to the output filepublic void setArgs(ArrayList args)
args
- a list of String
objectspublic void setJvmargs(ArrayList jvmArgs)
jvmArgs
- a list of String
objectspublic void setSysproperties(HashMap sysProperties)
sysProperties
- a map of String
objectspublic void setRedirectoutput(boolean redirect)
setOutput(File)
method. Setting this flag to false will
cause no redirection.redirect
- true if System.out and System.err should be redirectedCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.