org.schmant.task.jdk.jar
Class JarTask

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.stub.AbstractActionTask<T>
              extended by org.schmant.task.stub.AbstractProcessTask<T>
                  extended by org.schmant.task.template.io.zip.AbstractZipTask<T>
                      extended by org.schmant.task.io.zip.AbstractJavaZipTask<T>
                          extended by org.schmant.task.jdk.jar.AbstractJarTask<JarTask>
                              extended by org.schmant.task.jdk.jar.JarTask
All Implemented Interfaces:
Producer<EFile>, TaskDependency, ActionTaskConfigurable<JarTask>, ActionTaskSpec<JarTask>, LoggingConfigurable<JarTask>, OverwriteConfigurable<JarTask>, SourceConfigurable<JarTask>, SourceConfigured, TargetConfigurable<JarTask>, TargetConfigured, GeneratorTaskConfigurable<JarTask>, GeneratorTaskSpec<JarTask>, ProcessTaskConfigurable<JarTask>, ProcessTaskSpec<JarTask>, Task, TaskRunnable, TaskSpecification<JarTask>

public final class JarTask
extends AbstractJarTask<JarTask>

See JarTF

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Method Summary
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.
 String toString()
          Default implementation for tasks.
 
Methods inherited from class org.schmant.task.jdk.jar.AbstractJarTask
copyProperties, createIterator, get, getManifest, getManifestFile, runInternal, setManifest, setManifest
 
Methods inherited from class org.schmant.task.io.zip.AbstractJavaZipTask
createIterator, getEntryInfoProvider, getLevel, getMethod, setEntryInfoProvider, setLevel, setMethod, setMethod
 
Methods inherited from class org.schmant.task.template.io.zip.AbstractZipTask
getComment, isMoreThanOneSourceAllowed
 
Methods inherited from class org.schmant.task.stub.AbstractProcessTask
getOverwriteStrategy, getTarget, isTargetMandatory, setOverwrite, setOverwriteStrategy, setTarget, 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, 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.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
 

Method Detail

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<JarTask>
Returns:
"Running " + toString()

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<JarTask>