org.schmant.task.jdk.jar
Class WarTask
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.stub.AbstractProcessTask<T>
org.schmant.task.template.io.zip.AbstractZipTask<T>
org.schmant.task.io.zip.AbstractJavaZipTask<T>
org.schmant.task.jdk.jar.AbstractJarTask<WarTask>
org.schmant.task.jdk.jar.WarTask
- All Implemented Interfaces:
- Producer<EFile>, TaskDependency, ActionTaskConfigurable<WarTask>, ActionTaskSpec<WarTask>, LoggingConfigurable<WarTask>, OverwriteConfigurable<WarTask>, SourceConfigurable<WarTask>, SourceConfigured, TargetConfigurable<WarTask>, TargetConfigured, GeneratorTaskConfigurable<WarTask>, GeneratorTaskSpec<WarTask>, ProcessTaskConfigurable<WarTask>, ProcessTaskSpec<WarTask>, Task, TaskRunnable, TaskSpecification<WarTask>
public final class WarTask
- extends AbstractJarTask<WarTask>
See WarTF
- Since:
- 0.6
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
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 |
getDefaultLogHeader
protected String getDefaultLogHeader()
- Description copied from class:
AbstractTask
- 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. Subclasses may override this to
return better headers.
This is called after validating the task.
Return null
to disable logging.
- Overrides:
getDefaultLogHeader
in class AbstractTask<WarTask>
- Returns:
- "Running " + toString()
getSources
public List<Object> getSources()
- Override this method to add special file and directory sources.
- Specified by:
getSources
in interface SourceConfigured
- Overrides:
getSources
in class AbstractActionTask<WarTask>
- Returns:
- The sources.
copyProperties
public void copyProperties(WarTask spec)
- Description copied from class:
AbstractActionTask
- Override the implementation from
AbstractTask
to copy the
source properties. Subclasses must override this to copy their own
properties.
- Specified by:
copyProperties
in interface TaskSpecification<WarTask>
- Overrides:
copyProperties
in class AbstractJarTask<WarTask>
- Parameters:
spec
- The specification to copy properties to.
toString
public String toString()
- Description copied from class:
AbstractTask
- Default implementation for tasks. Task implementations may override this.
It is used in the default log header that is written (level INFO) before
a task is run.
This implementation just returns the class name.
- Overrides:
toString
in class AbstractProcessTask<WarTask>