|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.basher.booter.BasherBooter
public class BasherBooter
Helper class to help boot Basher in a clean JVM. The original functionality of this plugin was copied from the Maven SureFire plugin.
| Field Summary | |
|---|---|
static int |
BASHER_FAILED_EXIT_CODE
|
static int |
BASHER_SUCCEEDED_EXIT_CODE
|
static int |
NO_TASKS_EXIT_CODE
|
| Constructor Summary | |
|---|---|
BasherBooter()
|
|
| Method Summary | |
|---|---|
void |
addBasherBootClassPathUrl(java.lang.String path)
|
void |
addBasherClassPathUrl(java.lang.String path)
|
void |
addClassPathUrl(java.lang.String path)
|
void |
addReport(java.lang.String report)
|
void |
addReport(java.lang.String report,
java.lang.Object[] constructorParams)
|
java.io.File |
getReportsDirectory()
Get the directory where reports will be saved |
boolean |
isForking()
|
static void |
main(java.lang.String[] args)
This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and then calls the Surefire class' run method. |
int |
run()
Executes the Basher run. |
void |
serializeBasherContexts(java.util.Properties properties)
|
void |
setActiveBasherContext(java.lang.String activeBasherContext)
|
void |
setBasherContexts(java.util.List<net.sourceforge.basher.BasherContext> basherContexts)
|
void |
setEnableAssertions(boolean enableAssertions)
|
void |
setFailIfNoTasks(boolean failIfNoTasks)
Setting this to true will cause a failure if there are no tasks to run |
void |
setForkConfiguration(BasherForkConfiguration forkConfiguration)
Sets the forking configuration to use. |
void |
setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
|
void |
setRedirectTasksOutputToFile(boolean redirectTasksOutputToFile)
When forking, setting this to true will make the task output to be saved in a file instead of showing it on the standard output |
void |
setReportsDirectory(java.io.File reportsDirectory)
Set the directory where reports will be saved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BASHER_SUCCEEDED_EXIT_CODE
public static final int BASHER_FAILED_EXIT_CODE
public static final int NO_TASKS_EXIT_CODE
| Constructor Detail |
|---|
public BasherBooter()
| Method Detail |
|---|
public int run()
throws org.apache.maven.surefire.booter.SurefireBooterForkException,
org.apache.maven.surefire.booter.SurefireExecutionException
org.apache.maven.surefire.booter.SurefireBooterForkException
org.apache.maven.surefire.booter.SurefireExecutionExceptionpublic void serializeBasherContexts(java.util.Properties properties)
public static void main(java.lang.String[] args)
throws java.lang.Throwable
args -
java.lang.Throwablepublic void addReport(java.lang.String report)
public void addReport(java.lang.String report,
java.lang.Object[] constructorParams)
public void addClassPathUrl(java.lang.String path)
public void addBasherClassPathUrl(java.lang.String path)
public void addBasherBootClassPathUrl(java.lang.String path)
public void setFailIfNoTasks(boolean failIfNoTasks)
failIfNoTasks - If true and no tasks are found, Basher will failpublic void setRedirectTasksOutputToFile(boolean redirectTasksOutputToFile)
redirectTasksOutputToFile - If true, any output will be redirected to a filepublic void setReportsDirectory(java.io.File reportsDirectory)
reportsDirectory - The directory where reports will be savedpublic java.io.File getReportsDirectory()
public void setForkConfiguration(BasherForkConfiguration forkConfiguration)
forkConfiguration - The fork configurationpublic void setEnableAssertions(boolean enableAssertions)
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
public void setBasherContexts(java.util.List<net.sourceforge.basher.BasherContext> basherContexts)
public void setActiveBasherContext(java.lang.String activeBasherContext)
public boolean isForking()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||