protoj.lang
Class ArchiveEntry<T>

java.lang.Object
  extended by protoj.lang.ArchiveEntry<T>

public final class ArchiveEntry<T>
extends java.lang.Object

Holds the information to be used when configuring an archive.

Author:
Ashley Williams

Constructor Summary
ArchiveEntry(java.lang.String name, ArchiveFeature parent, java.lang.String fileName, java.lang.String manifest, java.lang.String includes, java.lang.String excludes, ArgRunnable<T> config)
          See the corresponding property accessors.
 
Method Summary
 AssembleTask createAssembleTask(java.io.File assembleDir)
          Returns a task that will create the archive in the ProjectLayout.getArchiveDir() directory.
 java.io.File getArtifact()
          The archive file.
 ArgRunnable<T> getConfig()
          Used to specify any additional configuration.
 java.lang.String getExcludes()
          The ant pattern used to specify the resources to be excluded from the archive.
 java.lang.String getIncludes()
          The ant pattern used to specify the resources to be included in the archive.
 java.lang.String getManifest()
          The name of the manifest file without the extension.
 java.util.List<java.lang.String> getMergeArchives()
          Those artifacts that are to be merged during artifact creation.
 java.lang.String getName()
          The name of this archive entry without any file extention.
 ArchiveFeature getParent()
          The parent parent.
 void initMergeArchives(java.io.FilenameFilter filter)
          Specifies that source archives in the ProjectLayout.getLibDir() that get past the specified filter should get merged during creation of the current archive.
 void initMergeArchives(java.lang.String... archives)
          Any additional archives in the ProjectLayout.getLibDir() directory that should get merged during creation of the archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveEntry

public ArchiveEntry(java.lang.String name,
                    ArchiveFeature parent,
                    java.lang.String fileName,
                    java.lang.String manifest,
                    java.lang.String includes,
                    java.lang.String excludes,
                    ArgRunnable<T> config)
See the corresponding property accessors.

Parameters:
name -
parent -
fileName -
manifest -
includes -
excludes -
config -
Method Detail

initMergeArchives

public void initMergeArchives(java.lang.String... archives)
Any additional archives in the ProjectLayout.getLibDir() directory that should get merged during creation of the archive.

Parameters:
archives -

initMergeArchives

public void initMergeArchives(java.io.FilenameFilter filter)
Specifies that source archives in the ProjectLayout.getLibDir() that get past the specified filter should get merged during creation of the current archive.

Parameters:
filter -

createAssembleTask

public AssembleTask createAssembleTask(java.io.File assembleDir)
Returns a task that will create the archive in the ProjectLayout.getArchiveDir() directory. Any additional archives specified by getMergeArchives() will also be merged into the final created jar file.

Parameters:
assembleDir -
Returns:

getArtifact

public java.io.File getArtifact()
The archive file.

Returns:

getName

public java.lang.String getName()
The name of this archive entry without any file extention.

Returns:

getConfig

public ArgRunnable<T> getConfig()
Used to specify any additional configuration.

Returns:

getExcludes

public java.lang.String getExcludes()
The ant pattern used to specify the resources to be excluded from the archive.

Returns:

getIncludes

public java.lang.String getIncludes()
The ant pattern used to specify the resources to be included in the archive.

Returns:

getManifest

public java.lang.String getManifest()
The name of the manifest file without the extension.

Returns:

getParent

public ArchiveFeature getParent()
The parent parent.

Returns:

getMergeArchives

public java.util.List<java.lang.String> getMergeArchives()
Those artifacts that are to be merged during artifact creation.

Returns: