|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.dpml.tools.tasks.GenericTask
net.dpml.tools.tasks.PartTask
Creation of an part definition in XML.
| Field Summary | |
static String |
PLUGIN_DESCRIPTION_KEY
Property key used to identify the plugin description. |
static String |
PLUGIN_HANDLER_KEY
Property key used to identify a custom plugin handler classname. |
static String |
PLUGIN_TITLE_KEY
Property key used to identify the plugin title. |
static String |
TYPE
Constant artifact type for a plugin. |
| Fields inherited from class net.dpml.tools.tasks.GenericTask |
ASC_EXT, GPG_EXE_KEY, MD5_EXT |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
PartTask()
|
|
| Method Summary | |
protected Part |
build(Resource resource)
Build the part definition. |
void |
execute()
Task execution. |
protected Classpath |
getClasspath(Resource resource)
Construct the classpath for the supplied resource. |
protected Context |
getContext(Project project)
Get the project definition. |
protected Info |
getInfo(Resource resource)
Construct the info object based on properties declared by the supplied resource. |
void |
setDest(File file)
Override the default output destination. |
void |
setTest(boolean test)
Set the test build policy. |
void |
writePart(Part part)
Externalize the part as a deliverable. |
| Methods inherited from class net.dpml.tools.tasks.GenericTask |
asc, checksum, copy, deleteDir, getContext, getLibrary, getResource, init, isInitialized, mkDir |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String TYPE
public static final String PLUGIN_TITLE_KEY
public static final String PLUGIN_DESCRIPTION_KEY
public static final String PLUGIN_HANDLER_KEY
| Constructor Detail |
public PartTask()
| Method Detail |
public void setTest(boolean test)
test - true if this is a local test partpublic void setDest(File file)
file - the overriding destinationpublic void execute()
public void writePart(Part part)
part - the part to be externalized as XMLprotected Part build(Resource resource)
resource - the resource
protected Info getInfo(Resource resource)
resource - the resource
protected Classpath getClasspath(Resource resource)
throws IOException
resource - the resource
IOException - is an IO error occursprotected Context getContext(Project project)
project - the project
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||