org.apache.tools.ant.taskdefs.optional.genjar |
Specialized Ant task that constructs jar files containing
all classes referenced by a given set of classes.
The <genjar> Ant task takes a set of class names
that are used to generate the set of all referenced classes.
A Jar file is constructed from this set of classes after
filtration rules have been applied.
|
Java Source File Name | Type | Comment |
ClassFilter.java | Class | Determines whether a class is to be included in the jar.
Buildfile example:
<classfilter>
<include name="com.foo." >
<exclude name="org" >
</classfilter>
As a class' dependancy lists are generated, each class is checked against a
ClassFilter by calling the include method. |
ClassSpec.java | Class |
Represents a <class> element.
Buildfile example:
<class name="com.riggshill.ant.genjar.GenJar"/>
<class name="com.riggshill.xml.Editor" bean="yes"/>
When the <class> element is encountered, a new ClassSpec is instantiated to represent that
element. |
ClassUtil.java | Class | Examines a class file and returns a list of all referenced classes.
author: Original Code: John W. |
FileResolver.java | Class | Represents a directory in the classpath.
When a directory is located in the classpath, a FileResolver is instantiated that encapsulates
the path and performs searches in that directory. |
GenJar.java | Class | Driver class for the task.
This class is instantiated when Ant encounters the <genjar> element.
author: Original Code: John W. |
GenJarTest.java | Class | |
JarEntrySpec.java | Class | Represents one object (file) that is to be placed into the jar.
This includes all <class> names specified in the project file, all
<resource> files specified in the project file and all generated class
references.
author: Original Code: John W. |
JarResolver.java | Class | Represents a jar file in the classpath.
When a Jar file is located in the classpath, a JarResolver is instantiated that remembers the
path and performs searches in that jar. |
JarSpec.java | Interface | Interface for file-like elements specified in the project file.
author: Original Code: John W. |
LibrarySpec.java | Class | This class encapsulates the concept of a library - either a set of files in a directory or a
jar's content. |
Logger.java | Class |
A simple adapter class that wraps the logging capabilities of the Project
class. |
Mft.java | Class | Encapsulates the data destined for the jar's Manifest file.
An Mft instance represents the <manifest> element in the project file.
An Mft is always created by GenJar (whether or not there's a manifest
element) to handle the Manifest creation duties.
author: Original Code: John W. |
PathResolver.java | Class |
A PathResolver is used for each component of the classpath.
Each type of component is a specialization of this base class. |
Resource.java | Class | Represents a <resource> element within the project file.
In addition to holding the final jar name of the resource, it performs the actual
resolution of file names along with expansion of filesets .
author: Original Code: John W. |
ZipResolver.java | Class | Represents a zip file in the classpath.
When a Zip file is located in the classpath, a ZipResolver is instantiated that encapsulates the
path and performs searches in that zip. |