protoj.lang.internal.ant
Class AssembleTask

java.lang.Object
  extended by protoj.lang.internal.ant.AssembleTask

public final class AssembleTask
extends java.lang.Object

A convenience class for creating a jar file. Use the constructors to specify the minimal and most widely anticipated configuration and the initXXX methods for the less common configuration options.

Author:
Ashley Williams

Constructor Summary
AssembleTask(java.io.File destFile, java.io.File basedir, java.io.File manifest, java.lang.String includes, java.lang.String excludes)
          Accepts information widely used for configuring jar files.
 
Method Summary
 void execute()
           
 org.apache.tools.ant.taskdefs.Jar getJar()
           
 void initLogging(java.io.File logFile)
          Enables logging to the specified log file at Project.MSG_INFO level.
 org.apache.tools.ant.taskdefs.Manifest.Attribute initManifest(java.lang.String name, java.lang.String value)
          Call repeatedly in order to add a top level attribute to the manifest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssembleTask

public AssembleTask(java.io.File destFile,
                    java.io.File basedir,
                    java.io.File manifest,
                    java.lang.String includes,
                    java.lang.String excludes)
Accepts information widely used for configuring jar files.

Parameters:
destFile - the JAR file to create.
basedir - the directory from which to jar the files.
manifest - the manifest file to use. When omitted The ant API will create one.
includes - comma- or space-separated list of patterns of files that must be included. All files are included when omitted.
excludes - comma- or space-separated list of patterns of files that must be excluded. All files are excluded when omitted.
Method Detail

initLogging

public void initLogging(java.io.File logFile)
Enables logging to the specified log file at Project.MSG_INFO level.

Parameters:
logFile -

initManifest

public org.apache.tools.ant.taskdefs.Manifest.Attribute initManifest(java.lang.String name,
                                                                     java.lang.String value)
Call repeatedly in order to add a top level attribute to the manifest.

Parameters:
name -
value -
Returns:

getJar

public org.apache.tools.ant.taskdefs.Jar getJar()

execute

public void execute()