Class StartOptions
- java.lang.Object
-
- jadex.bridge.service.types.daemon.StartOptions
-
public class StartOptions extends java.lang.Objectjava [ options ] class [ argument ... ] java [ options ] -jar file.jar [ argument ... ]
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanchildprocFlag if process starter should be used for complete process decoupling.protected java.lang.StringclasspathThe classpath.protected java.lang.StringerrorfileThe error stream redirection file name (if any).protected java.lang.StringjavacmdThe path to the java command.protected java.lang.StringmainThe main class to start.protected java.lang.StringoutputfileThe output stream redirection file name (if any).protected java.lang.StringprgmargsThe program arguments.protected java.lang.StringstartdirThe start directory.protected java.lang.StringvmargsThe vm arguments.
-
Constructor Summary
Constructors Constructor Description StartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassPath()Get the classpath.java.lang.StringgetErrorFile()Get the error stream redirection file (if any).java.lang.StringgetJavaCommand()Get the java command.java.lang.StringgetMain()Get the main.java.lang.StringgetOutputFile()Get the output stream redirection file (if any).java.lang.StringgetProgramArguments()Get the prgmargs.java.lang.StringgetStartCommand()Get the complete start command.java.lang.StringgetStartDirectory()Get the startdir.java.lang.StringgetVMArguments()Get the vmargs.booleanisChildProcess()Get the childProcess.voidsetChildProcess(boolean childproc)Set the childProcess.voidsetClassPath(java.lang.String classpath)Set the classpath.voidsetErrorFile(java.lang.String errorfile)Set the error stream redirection file (if any).voidsetJavaCommand(java.lang.String javacmd)Set the java.voidsetMain(java.lang.String main)Set the main.voidsetOutputFile(java.lang.String outputfile)Set the output stream redirection file (if any).voidsetProgramArguments(java.lang.String prgmargs)Set the prgmargs.voidsetStartDirectory(java.lang.String startdir)Set the startdir.voidsetVMArguments(java.lang.String vmargs)Set the vmargs.java.lang.ProcessstartProcess()Start a platform using a configuration.java.lang.StringtoString()String representation.
-
-
-
Field Detail
-
javacmd
protected java.lang.String javacmd
The path to the java command.
-
classpath
protected java.lang.String classpath
The classpath.
-
main
protected java.lang.String main
The main class to start.
-
prgmargs
protected java.lang.String prgmargs
The program arguments.
-
vmargs
protected java.lang.String vmargs
The vm arguments.
-
startdir
protected java.lang.String startdir
The start directory.
-
outputfile
protected java.lang.String outputfile
The output stream redirection file name (if any).
-
errorfile
protected java.lang.String errorfile
The error stream redirection file name (if any).
-
childproc
protected boolean childproc
Flag if process starter should be used for complete process decoupling.
-
-
Method Detail
-
getJavaCommand
public java.lang.String getJavaCommand()
Get the java command.- Returns:
- The java command.
-
setJavaCommand
public void setJavaCommand(java.lang.String javacmd)
Set the java.- Parameters:
java- The java to set.
-
getClassPath
public java.lang.String getClassPath()
Get the classpath.- Returns:
- the classpath.
-
setClassPath
public void setClassPath(java.lang.String classpath)
Set the classpath.- Parameters:
classpath- The classpath to set.
-
getMain
public java.lang.String getMain()
Get the main.- Returns:
- the main.
-
setMain
public void setMain(java.lang.String main)
Set the main.- Parameters:
main- The main to set.
-
getProgramArguments
public java.lang.String getProgramArguments()
Get the prgmargs.- Returns:
- the prgmargs.
-
setProgramArguments
public void setProgramArguments(java.lang.String prgmargs)
Set the prgmargs.- Parameters:
prgmargs- The prgmargs to set.
-
getVMArguments
public java.lang.String getVMArguments()
Get the vmargs.- Returns:
- the vmargs.
-
setVMArguments
public void setVMArguments(java.lang.String vmargs)
Set the vmargs.- Parameters:
vmargs- The vmargs to set.
-
getStartDirectory
public java.lang.String getStartDirectory()
Get the startdir.- Returns:
- The startdir.
-
setStartDirectory
public void setStartDirectory(java.lang.String startdir)
Set the startdir.- Parameters:
startdir- The startdir to set.
-
getOutputFile
public java.lang.String getOutputFile()
Get the output stream redirection file (if any).- Returns:
- The output file name.
-
setOutputFile
public void setOutputFile(java.lang.String outputfile)
Set the output stream redirection file (if any).- Parameters:
outputfile- The output file name.
-
getErrorFile
public java.lang.String getErrorFile()
Get the error stream redirection file (if any).- Returns:
- The error file name.
-
setErrorFile
public void setErrorFile(java.lang.String errorfile)
Set the error stream redirection file (if any).- Parameters:
errorfile- The error file name.
-
isChildProcess
public boolean isChildProcess()
Get the childProcess.- Returns:
- The childProcess.
-
setChildProcess
public void setChildProcess(boolean childproc)
Set the childProcess.- Parameters:
childProcess- The childProcess to set.
-
getStartCommand
public java.lang.String getStartCommand()
Get the complete start command.
-
startProcess
public java.lang.Process startProcess() throws java.lang.ExceptionStart a platform using a configuration.- Parameters:
options- The arguments.- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
String representation.- Overrides:
toStringin classjava.lang.Object
-
-