Class StartOptions
- java.lang.Object
-
- jadex.bridge.service.types.daemon.StartOptions
-
public class StartOptions extends java.lang.Object
java [ options ] class [ argument ... ] java [ options ] -jar file.jar [ argument ... ]
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
childproc
Flag if process starter should be used for complete process decoupling.protected java.lang.String
classpath
The classpath.protected java.lang.String
errorfile
The error stream redirection file name (if any).protected java.lang.String
javacmd
The path to the java command.protected java.lang.String
main
The main class to start.protected java.lang.String
outputfile
The output stream redirection file name (if any).protected java.lang.String
prgmargs
The program arguments.protected java.lang.String
startdir
The start directory.protected java.lang.String
vmargs
The vm arguments.
-
Constructor Summary
Constructors Constructor Description StartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassPath()
Get the classpath.java.lang.String
getErrorFile()
Get the error stream redirection file (if any).java.lang.String
getJavaCommand()
Get the java command.java.lang.String
getMain()
Get the main.java.lang.String
getOutputFile()
Get the output stream redirection file (if any).java.lang.String
getProgramArguments()
Get the prgmargs.java.lang.String
getStartCommand()
Get the complete start command.java.lang.String
getStartDirectory()
Get the startdir.java.lang.String
getVMArguments()
Get the vmargs.boolean
isChildProcess()
Get the childProcess.void
setChildProcess(boolean childproc)
Set the childProcess.void
setClassPath(java.lang.String classpath)
Set the classpath.void
setErrorFile(java.lang.String errorfile)
Set the error stream redirection file (if any).void
setJavaCommand(java.lang.String javacmd)
Set the java.void
setMain(java.lang.String main)
Set the main.void
setOutputFile(java.lang.String outputfile)
Set the output stream redirection file (if any).void
setProgramArguments(java.lang.String prgmargs)
Set the prgmargs.void
setStartDirectory(java.lang.String startdir)
Set the startdir.void
setVMArguments(java.lang.String vmargs)
Set the vmargs.java.lang.Process
startProcess()
Start a platform using a configuration.java.lang.String
toString()
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.Exception
Start a platform using a configuration.- Parameters:
options
- The arguments.- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
String representation.- Overrides:
toString
in classjava.lang.Object
-
-