|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.Launcher
public final class Launcher
Launcher class for launching Schmant builds. This is the Java class that is run by the different Schmant start scripts (schmant.sh, schmant.bat).
When run, this class does the following:
launch(LauncherSettings, Bindings, ReportFactory, ReportLineFormatter)
method.
Field Summary | |
---|---|
static String |
PROP_SCRIPT_FILE
Property containing the path to the running script file as a String. |
Constructor Summary | |
---|---|
Launcher()
|
Method Summary | |
---|---|
Object |
launch(LauncherSettings ls,
Bindings bnd)
Calling this method is equivalent to calling launch(LauncherSettings, Bindings, ReportFactory, ReportLineFormatter)
without a custom ReportFactory and ReportLineFormatter . |
Object |
launch(LauncherSettings ls,
Bindings bnd,
ReportFactory rf,
ReportLineFormatter rlf)
Use the launcher settings to run the script. |
static void |
main(String[] args)
Run a Schmant script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_SCRIPT_FILE
props
variable in the script.
Constructor Detail |
---|
public Launcher()
Method Detail |
---|
public Object launch(LauncherSettings ls, Bindings bnd) throws IOException, InterruptedException, RuntimeException
launch(LauncherSettings, Bindings, ReportFactory, ReportLineFormatter)
without a custom ReportFactory
and ReportLineFormatter
.
ls
- The launcher settings.bnd
- Initial bindings. May be null
ScriptException
- On build script failures such as failed builds.
IOException
- On I/O errors when launching the script.
InterruptedException
- If we're interrupted while setting up the
script. Script executors generally swallow these kinds of exceptions, so
if the script is interrupted, this method will call a
ScriptException
.
RuntimeException
- On various other errors.public Object launch(LauncherSettings ls, Bindings bnd, ReportFactory rf, ReportLineFormatter rlf) throws IOException, InterruptedException, RuntimeException
ls
- The launcher settings.bnd
- Initial bindings. May be null
rf
- If this parameter is set, this ReportFactory
instance
is used instead of the report factory configuration from ls
(if
any).rlf
- If this parameter is set, this ReportLineFormatter
instance is used instead of the report line formatter configuration from
lf
(if any).
ScriptException
- On build script failures such as failed builds.
IOException
- On I/O errors when launching the script.
InterruptedException
- If we're interrupted while setting up the
script. Script executors generally swallow these kinds of exceptions, so
if the script is interrupted, this method will call a
ScriptException
.
RuntimeException
- On various other errors.public static void main(String[] args)
launch(LauncherSettings, Bindings, ReportFactory, ReportLineFormatter)
method.
The program exits with exit code 0
if it was successful, or with
exit code 1
if it was terminated due to an error.
See the Programmer's Guide for accepted command line arguments and environment variables.
args
- The program arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |