| org.netbeans.installer.infra.build.ant.Package
Package | public class Package extends Task (Code) | | This class is an ant task which is capable of properly packaging a directory into
an archive. In addition to simply jarring the directory, it pack200-packages the
jar files present in the source directory and composes a files list which
contains some useful metadata about the files in the archive, such as the
checksums, sizes, etc.
author: Kirill Sorokin |
Constructor Summary | |
public | Package() Constructs a new instance of the
Package task. |
Method Summary | |
public void | execute() Executes the task. | public void | setDirectory(String path) Setter for the 'directory' property. | public void | setFile(String path) Setter for the 'file' property. |
Package | public Package()(Code) | | Constructs a new instance of the
Package task. It simply sets the
default values for the attributes.
|
execute | public void execute() throws BuildException(Code) | | Executes the task. The source directory is recursively browsed, its files are
examined, packaged and added to the archive; some additional metadata is
calculated and then added to the files list.
throws: org.apache.tools.ant.BuildException - if an I/O error occurs. |
setDirectory | public void setDirectory(String path)(Code) | | Setter for the 'directory' property.
Parameters: path - New value for the 'directory' property. |
setFile | public void setFile(String path)(Code) | | Setter for the 'file' property.
Parameters: path - New value for the 'file' property. |
|
|