|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.AbstractArgumentChecker org.schmant.task.stub.AbstractTask<T> org.schmant.task.template.process.AbstractExtProcessTask<T> org.schmant.task.template.jdk.java.AbstractExtJvmTask<T> org.schmant.task.template.jdk.java.AbstractExtJavaTask<ExtJavaTask> org.schmant.task.jdk.java.ExtJavaTask
public final class ExtJavaTask
See JavaTF
Method Summary | |
---|---|
void |
copyProperties(ExtJavaTask spec)
Copy the properties to the target object. |
protected String |
getDefaultLogHeader()
Get the default log header to log (to level INFO) before the task is run if the task user has not set a custom header. |
protected void |
runInternal(Report r)
Subclasses implement this. |
String |
toString()
Default implementation for tasks. |
protected Collection<String> |
validate(Report r)
This method may be overridden by subclasses to validate their configuration (including their TaskFactory :s) before the task is
run. |
Methods inherited from class org.schmant.task.template.jdk.java.AbstractExtJavaTask |
---|
addArgumentsToCommandList, addTaskSpecificJvmArguments, getClasspathEntriesFromPathDecorators, getDecorators, getFallbackJavaExecutable, getJavaVMType, getTaskSpecificClasspathEntries, isAssertions, prepareArgumentList |
Methods inherited from class org.schmant.task.template.jdk.java.AbstractExtJvmTask |
---|
getClasspathDecorators, getClasspathEntries, getJavaExecutable, getJavaHome, getJvmOptions |
Methods inherited from class org.schmant.task.template.process.AbstractExtProcessTask |
---|
execAndWait, getArguments, getEnvironmentVariables, getProcessResult, getStderrStrategy, getStdoutStrategy, getWorkingDirectory, isFailOnErrors, isInheritEnvironmentVariables |
Methods inherited from class org.schmant.task.stub.AbstractTask |
---|
cancel, createTask, getDefaultLogFooter, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.schmant.task.Task |
---|
cancel, getDependencyForTasksScheduledByThisTask, getFailureCause, isCancelled, isDone, isInterrupted, isRunning, isSuccessful |
Methods inherited from interface org.schmant.run.TaskDependency |
---|
getDependencyObservable, getSatisfiedStateLock, isSatisfied |
Methods inherited from interface org.schmant.task.TaskRunnable |
---|
run |
Method Detail |
---|
protected String getDefaultLogHeader()
AbstractTask
This is called after validating the task.
Return null
to disable logging.
getDefaultLogHeader
in class AbstractTask<ExtJavaTask>
protected Collection<String> validate(Report r)
AbstractTask
TaskFactory
:s) before the task is
run.
Validation errors are collected as strings. If this method is overridden,
always call super.validate
.
validate
in class AbstractExtJavaTask<ExtJavaTask>
r
- A report to log warning and debug messages to. Validation errors
should not be logged, though. They are logged later.
protected void runInternal(Report r) throws InterruptedException
AbstractTask
AbstractTask.validate(Report)
:d before
this method is called, see AbstractTask.run()
.
runInternal
in class AbstractTask<ExtJavaTask>
r
- The current thread's Report
.
InterruptedException
public void copyProperties(ExtJavaTask spec)
AbstractTask
Subclasses must override this to copy their properties. The
overriding method must call super.copyProperties
.
copyProperties
in interface TaskSpecification<ExtJavaTask>
copyProperties
in class AbstractExtJavaTask<ExtJavaTask>
spec
- The specification to copy properties to.public String toString()
AbstractTask
This implementation just returns the class name.
toString
in class AbstractTask<ExtJavaTask>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |