|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.lang.SourceArchive
public final class SourceArchive
Responsible for creating one or more archives from the parent source
directory. Call
addArchive(String, String, String, String, ArgRunnable) to configure
each additional archive with the specified name and
createArchive(String) to create one of the added archive. During
creation, the config argument specified in the constructor will
be called back to give the caller a chance to provide further archive
configuration. Also call initIncludeArchives(String, String...) to
cause any additional archives from the ProjectLayout.getLibDir() to
be merged with the added archive.
| Constructor Summary | |
|---|---|
SourceArchive(ArchiveFeature parent)
Creates with the parent feature. |
|
| Method Summary | |
|---|---|
void |
addArchive(java.lang.String name,
java.lang.String manifest,
java.lang.String includes,
java.lang.String excludes,
ArgRunnable<SourceArchive> config)
Use to enable creation of an additional archive. |
void |
createArchive(java.lang.String name)
Creates the jar for the given name under ProjectLayout.getArchiveDir(). |
void |
createArchives()
Delegates to createArchive(String) for each archive that was
added through a call to
addArchive(String, String, String, String, ArgRunnable). |
AssembleTask |
getCurrentAssembleTask()
The ant task responsible for creating the jar during the call to createArchive(String). |
ArchiveEntry<SourceArchive> |
getCurrentEntry()
The instance used to hold information about the the archive being created during the call to createArchive(String). |
ArchiveEntry<SourceArchive> |
getEntry(java.lang.String name)
Accessor for the entry corresponding to the given name. |
void |
initExcludeArchives(java.lang.String name,
java.lang.String... archives)
Specifies that all the sources archives except for the excluded list in the ProjectLayout.getLibDir() should get merged during creation
of the named archive. |
void |
initIncludeArchives(java.lang.String name,
java.lang.String... archives)
Any additional classes archives in the ProjectLayout.getLibDir()
directory that should get merged during creation of the named archive. |
void |
visit(ArgRunnable<ArchiveEntry<SourceArchive>> visitor)
Convenient method that visits each entry in this archive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceArchive(ArchiveFeature parent)
parent - | Method Detail |
|---|
public void addArchive(java.lang.String name,
java.lang.String manifest,
java.lang.String includes,
java.lang.String excludes,
ArgRunnable<SourceArchive> config)
name - the name of the jar file to be created, without the extension.manifest - the name of the manifest to be used from the manifest
directory, without the extension. Can be null if a default
manifest is required.includes - the resources that should be included in the archive, can be
null to include all resourcesexcludes - the resources that should be excluded in the archive, can be
null to exclude no resourcesconfig - this will be called back during the invocatin of
createArchive(String) if the caller wishes to provide
further configuration. Can be null if the defaults are ok.
public void initIncludeArchives(java.lang.String name,
java.lang.String... archives)
ProjectLayout.getLibDir()
directory that should get merged during creation of the named archive.
name - archives -
public void initExcludeArchives(java.lang.String name,
java.lang.String... archives)
ProjectLayout.getLibDir() should get merged during creation
of the named archive.
name - public void createArchives()
createArchive(String) for each archive that was
added through a call to
addArchive(String, String, String, String, ArgRunnable).
public void createArchive(java.lang.String name)
ProjectLayout.getArchiveDir(). The jar file will have a name of
[name]-sources.jar.
name - the name as specified in the call to
addArchive(String, String, String, String, ArgRunnable)
. .public void visit(ArgRunnable<ArchiveEntry<SourceArchive>> visitor)
visitor - public ArchiveEntry<SourceArchive> getEntry(java.lang.String name)
name -
public AssembleTask getCurrentAssembleTask()
createArchive(String).
public ArchiveEntry<SourceArchive> getCurrentEntry()
createArchive(String).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||