public class Resource extends DataType implements JarSpec(Code)
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. Kohler author: Jesse Stockall version: $Revision: 1.4 $ $Date: 2003/03/06 01:22:01 $
Constructor Summary
Resource(Project proj) Constructs a new Resource element.
resolves the file attribute or fileset children into a collection of JarEntrySpec objects
Parameters: gj - Description of the Parameter throws: IOException - Description of the Exception
Sets the value of the file attribute. When the resource element ha a single file attribute,
Ant calls this to 'set' the value.
Parameters: f - The file to be included in the jar as a resource.
set the package (path) that'll be applied to ALL resources in this resource set - make sure
to handle the empty package properly
Parameters: pkg - sets the value of the package attribute