|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.stub.AbstractProcessTask<SchmantTaskrefTask>
org.schmant.task.tp.taskref.SchmantTaskrefTask
public final class SchmantTaskrefTask
Task for building Schmant task package reference documentation.
| Field Summary | |
|---|---|
static String |
DEFAULT_TRANSFORMER_FACTORY_CLASS_NAME
|
static String |
DEFAULT_URL_FOR_API_DOCS
|
static String |
DEFAULT_URL_FOR_STYLESHEET
|
| Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable |
|---|
DEFAULT_OVERWRITE_STRATEGY |
| Method Summary | |
|---|---|
void |
copyProperties(SchmantTaskrefTask spec)
Override the implementation from AbstractTask to copy the
source properties. |
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. |
TaskDependency |
getDependencyForTasksScheduledByThisTask()
This implementation returns this. |
protected List<DirectoryView> |
interpretSources(List<Object> l)
Interpret the source objects. |
protected boolean |
isMoreThanOneSourceAllowed()
Is more than one source object allowed? This method returns false
. |
protected void |
runInternal(Report r)
Subclasses implement this. |
| Methods inherited from class org.schmant.task.stub.AbstractProcessTask |
|---|
getOverwriteStrategy, getTarget, isTargetMandatory, setOverwrite, setOverwriteStrategy, setTarget, toString, validate |
| Methods inherited from class org.schmant.task.stub.AbstractActionTask |
|---|
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isSourcesMandatory, setRelativeToBase, setSource, setSources |
| Methods inherited from class org.schmant.task.stub.AbstractTask |
|---|
cancel, createTask, getDefaultLogFooter, 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.confable.SourceConfigurable |
|---|
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources |
| Methods inherited from interface org.schmant.task.confable.SourceConfigured |
|---|
getSource, getSources |
| Methods inherited from interface org.schmant.task.TaskSpecification |
|---|
createTask |
| Methods inherited from interface org.schmant.task.confable.LoggingConfigurable |
|---|
setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
| Field Detail |
|---|
public static final String DEFAULT_TRANSFORMER_FACTORY_CLASS_NAME
public static final String DEFAULT_URL_FOR_API_DOCS
public static final String DEFAULT_URL_FOR_STYLESHEET
| Method Detail |
|---|
protected String getDefaultLogHeader()
AbstractTaskThis is called after validating the task.
Return null to disable logging.
getDefaultLogHeader in class AbstractTask<SchmantTaskrefTask>protected boolean isMoreThanOneSourceAllowed()
AbstractActionTaskfalse
. Subclasses override this method to return true if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory() returns
true.
isMoreThanOneSourceAllowed in class AbstractActionTask<SchmantTaskrefTask>true.protected List<DirectoryView> interpretSources(List<Object> l)
Each object is interpreted using the
InterpretAsReadOnlyEntityStrategy. If the object is a directory,
we're happy. If the object is a file, it is assumed to be a Zip file, and
the Zip file's single directory in its root directory.
l - The list of objects to interpret.
protected void runInternal(Report r)
AbstractTaskAbstractTask.validate(Report):d before
this method is called, see AbstractTask.run().
runInternal in class AbstractTask<SchmantTaskrefTask>r - The current thread's Report.public TaskDependency getDependencyForTasksScheduledByThisTask()
AbstractTaskthis. Subclasses that use
TaskExecutor:s must override this method to
return a dependency object for all of its scheduled tasks.
getDependencyForTasksScheduledByThisTask in interface TaskgetDependencyForTasksScheduledByThisTask in class AbstractTask<SchmantTaskrefTask>thispublic void copyProperties(SchmantTaskrefTask spec)
AbstractActionTaskAbstractTask to copy the
source properties. Subclasses must override this to copy their own
properties.
copyProperties in interface TaskSpecification<SchmantTaskrefTask>copyProperties in class AbstractProcessTask<SchmantTaskrefTask>spec - The specification to copy properties to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||