org.schmant.task.jdk.jar
Class AbstractJarTask<T extends AbstractJarTask<T>>
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<T>
- All Implemented Interfaces:
- Producer<EFile>, TaskDependency, ActionTaskConfigurable<T>, ActionTaskSpec<T>, LoggingConfigurable<T>, OverwriteConfigurable<T>, SourceConfigurable<T>, SourceConfigured, TargetConfigurable<T>, TargetConfigured, GeneratorTaskConfigurable<T>, GeneratorTaskSpec<T>, ProcessTaskConfigurable<T>, ProcessTaskSpec<T>, Task, TaskRunnable, TaskSpecification<T>
- Direct Known Subclasses:
- EarTask, JarTask, WarTask
public abstract class AbstractJarTask<T extends AbstractJarTask<T>>
- extends AbstractJavaZipTask<T>
- implements Producer<EFile>
This is an abstract base class for Jar tasks.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
Methods inherited from class org.schmant.task.stub.AbstractTask |
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
AbstractJarTask
public AbstractJarTask()
get
public final EFile get()
- Description copied from interface:
Producer
- Returns the produced object, or
null
if nothing is produced
yet.
This method should be implemented thread-safe.
- Specified by:
get
in interface Producer<EFile>
- Returns:
- The produced object.
setManifest
public final void setManifest(Object o)
setManifest
public final void setManifest(Manifest m)
getManifestFile
protected final Object getManifestFile()
getManifest
protected final Manifest getManifest()
createIterator
protected Iterator<ZipEntryInfo> createIterator(SortedMap<AbsoluteLocation,EntityOrReadableFile> m)
- Description copied from class:
AbstractJavaZipTask
- Subclasses implement this to create an iterator that will return
ZipEntryInfo
objects for each entry in the supplied map.
- Specified by:
createIterator
in class AbstractJavaZipTask<T extends AbstractJarTask<T>>
- Parameters:
m
- A map with the contents of the Zip file.
- Returns:
- A Zip entry info iterator.
runInternal
protected void runInternal(Report r)
- Description copied from class:
AbstractTask
- Subclasses implement this. The task is
AbstractTask.validate(Report)
:d before
this method is called, see AbstractTask.run()
.
- Specified by:
runInternal
in class AbstractTask<T extends AbstractJarTask<T>>
- Parameters:
r
- The current thread's Report
.
copyProperties
public void copyProperties(T 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<T extends AbstractJarTask<T>>
- Overrides:
copyProperties
in class AbstractJavaZipTask<T extends AbstractJarTask<T>>
- Parameters:
spec
- The specification to copy properties to.