dsto.dfc.tools
Class JarXTask
java.lang.Object
Task
dsto.dfc.tools.JarXTask
public class JarXTask
- extends Task
An Ant build task wrapper for JarX.
Attributes:
archiveFile: The archive file (required).
manifest: The manifest file (optional, default = none).
mainClass: The main application class (optional, default = none).
useJarFormat: True to generate a JAR (optional, default = true).
classpath: The classpath to search for resources (optional,
default = system classpath). May also be specified
as a nested <classpath> element.
includes: Comma separated list of included resources (required,
may include '*' as wildcard). May also use nested
include <include name="..."/> form.
includeRegexps: Comma separated list of regular expression resource
include patterns (optional). May also use nested
include <include regexp="..." /> form.
excludes: Comma separated list of excluded resources (optional,
may include '*' as wildcard). May also use nested
exclude <exlude name="..." /> form.
excludeRegexps: Comma separated list of regular expression resource
exclude patterns (optional). May also use nested
exclude <exclude regexp="..." /> form.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarXTask
public JarXTask()
setArchive
public void setArchive(File newFile)
setManifest
public void setManifest(File newFile)
setMainClass
public void setMainClass(String mainClass)
setUseJarFormat
public void setUseJarFormat(boolean useJarFormat)
setIncludes
public void setIncludes(String newIncludes)
createInclude
public JarXTask.PatternArgument createInclude()
setIncludeRegexps
public void setIncludeRegexps(String newRegexps)
setExcludes
public void setExcludes(String newExcludes)
createExclude
public JarXTask.PatternArgument createExclude()
setExcludeRegexps
public void setExcludeRegexps(String newRegexps)
setClasspath
public void setClasspath(Path newPath)
getClasspath
public Path getClasspath()
setClasspathRef
public void setClasspathRef(Reference r)
createClasspath
public Path createClasspath()
execute
public void execute()
throws BuildException
- Throws:
BuildException
split
public static String[] split(String str,
String delimeter)
Copyright © 2008 Commonwealth of Australia