|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task xjavadoc.ant.XJavadocTask xdoclet.DocletTask
A base class for all Tasks. It can also be used directly, useful for the case where you want to execute a template file but you don't want to bother writing a new task.
Field Summary | |
static String |
XDOCLET_VERSION
|
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 | |
DocletTask()
|
Method Summary | |
void |
addConfigParam(ConfigParameter configParam)
Allows to set configuration parameters that will be included in the element as attribute value pair. |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Ant's <fileset> definition. |
void |
addPackageSubstitution(PackageTagsHandler.PackageSubstitution ps)
Substitutes the package of the generated files. |
void |
addSubTask(SubTask subtask)
Generic subtask. |
void |
addTemplate(TemplateSubTask subtask)
Generic subtask for processing a user-supplied template. |
void |
addXmlTemplate(XmlSubTask subtask)
Generic subtask for processing a user-supplied template, to generate an XML document. |
protected void |
checkClass(String className)
Throws BuildException if a specific class is not on the CP. |
Object |
createDynamicElement(String name)
|
String |
getAddedTags()
|
List |
getConfigParams()
Gets the ConfigParams attribute of the DocletTask object |
protected HashMap |
getConfigParams(List subtasks)
Gets the ConfigParams attribute of the DocletTask object |
Map |
getConfigParamsAsMap()
|
File |
getDestDir()
Gets the DestDir attribute of the DocletTask object |
String |
getExcludedTags()
Gets the ExcludedTags attribute of the DocletTask object |
File |
getMergeDir()
Gets the MergeDir attribute of the DocletTask object |
List |
getPackageSubstitutions()
Gets the PackageSubstitutions attribute of the EjbDocletTask object |
static String |
getSubTaskName(Class subTaskClass)
|
protected List |
getSubTasks()
Gets the SubTasks attribute of the DocletTask object |
boolean |
isForce()
Gets the Force attribute of the DocletTask object. |
boolean |
isVerbose()
Gets the Verbose attribute of the DocletTask object. |
void |
setAddedTags(String addedTags)
Add some JavaDoc tags (or comments) to the generated classes. |
void |
setDestDir(File dir)
Destination directory for output files |
void |
setDynamicAttribute(String name,
String value)
|
void |
setExcludedTags(String tags)
Deprecated. |
void |
setExcludePackageNames(String src)
Deprecated. |
void |
setForce(boolean force)
Specify if the generation of files should be forced. |
void |
setMergeDir(File dir)
Directory where subtasks will look for files to be merged with generated files. |
void |
setPackageNames(String src)
Deprecated. |
void |
setPackageSubstitutions(List packageSubstitutions)
Sets the PackageSubstitutions attribute of the EjbDocletTask object |
void |
setVerbose(boolean verbose)
Sets the Verbose attribute of the DocletTask object. |
protected void |
start()
|
protected void |
validateOptions()
Called by superclass before start() is called |
protected void |
validateSubTasks()
Describe what the method does |
Methods inherited from class xjavadoc.ant.XJavadocTask |
createIgnoredtag, execute, getClasspath, getXJavaDoc, setDocencoding, setEncoding, setIgnoredtags, setValidating |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
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 XDOCLET_VERSION
Constructor Detail |
public DocletTask()
Method Detail |
public static String getSubTaskName(Class subTaskClass)
public List getPackageSubstitutions()
public List getConfigParams()
public Map getConfigParamsAsMap()
public File getMergeDir()
public String getExcludedTags()
public File getDestDir()
public boolean isForce()
public boolean isVerbose()
public String getAddedTags()
public void setPackageSubstitutions(List packageSubstitutions)
packageSubstitutions
- The new PackageSubstitutions valuepublic void setDynamicAttribute(String name, String value)
setDynamicAttribute
in interface org.apache.tools.ant.DynamicConfigurator
name
- value
- public void setPackageNames(String src)
src
- The new PackageNames valuepublic void setExcludePackageNames(String src)
src
- The new ExcludePackageNames valuepublic void setExcludedTags(String tags)
tags
- The new ExcludedTags valuepublic void setDestDir(File dir)
dir
- The new DestDir valuepublic void setMergeDir(File dir)
dir
- The new MergeDir valuepublic void setForce(boolean force)
force
- The new Force valuepublic void setVerbose(boolean verbose)
verbose
- The new Verbose valuepublic void setAddedTags(String addedTags)
addedTags
- public void addPackageSubstitution(PackageTagsHandler.PackageSubstitution ps)
ps
- The feature to be added to the Fileset attributepublic void addFileset(org.apache.tools.ant.types.FileSet set)
set
- a fileset to addpublic Object createDynamicElement(String name) throws org.apache.tools.ant.BuildException
createDynamicElement
in interface org.apache.tools.ant.DynamicConfigurator
name
-
org.apache.tools.ant.BuildException
public void addSubTask(SubTask subtask)
subtask
- The subtask to be addedpublic void addTemplate(TemplateSubTask subtask) throws org.apache.tools.ant.BuildException
subtask
- Describe the method parameter
org.apache.tools.ant.BuildException
public void addXmlTemplate(XmlSubTask subtask)
subtask
- Describe the method parameterpublic void addConfigParam(ConfigParameter configParam)
configParam
- Describe the method parameterprotected final List getSubTasks()
protected HashMap getConfigParams(List subtasks)
subtasks
- Describe what the parameter does
protected void start() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void validateOptions() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- Describe the exceptionprotected void checkClass(String className)
className
- protected void validateSubTasks() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- Describe the exception
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |