|
||||||||||
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 net.sf.fikin.ant.DocletTask
public class DocletTask
Example: Execute MyDoclet
against some java sources
<doclet name="net.sf.fikin.ant.MyDoclet" >
<packageset dir="src" defaultexcludes="yes">
<include name="net/sf/fikin/ant/**" />
</packageset>
</doclet>
Example: Pass current timestamp as extra Java System parameters used by
MyDoclet
<doclet name="net.sf.fikin.ant.MyDoclet" >
<packageset dir="src" defaultexcludes="yes">
<include name="net/sf/fikin/ant/**" />
</packageset>
<param name="-J-DDSTAMP=${DSTAMP}" />
</doclet>
created on Sep 24, 2006
Field Summary |
---|
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()
instantiate a javadoc and embedded doclet objects |
Method Summary | |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fs)
Adds a fileset. |
void |
addPackage(org.apache.tools.ant.taskdefs.Javadoc.PackageName pn)
Add a single package to be processed. |
void |
addPackageset(org.apache.tools.ant.types.DirSet packageSet)
Adds a packageset. |
protected void |
addParam(java.lang.String name,
java.lang.String value)
an easy way to add a new Doclet parameter |
protected void |
check()
consistency check on params |
org.apache.tools.ant.types.Path |
createBootclasspath()
Create a Path to be configured with the boot classpath |
org.apache.tools.ant.types.Path |
createClasspath()
Create a Path to be configured with the classpath to use |
org.apache.tools.ant.taskdefs.Javadoc.DocletParam |
createParam()
Create a doclet parameter to be configured by Ant. |
org.apache.tools.ant.types.Path |
createSourcepath()
Create a path to be configured with the locations of the source files. |
void |
execute()
validate already set properties before continuing with javadoc generation |
protected void |
init_javadoc()
init javadoc object prior to execution |
void |
setBootclasspath(org.apache.tools.ant.types.Path path)
Set the boot classpath to use. |
void |
setBootClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setClasspath(org.apache.tools.ant.types.Path path)
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setExcludePackageNames(java.lang.String packages)
Set the list of packages to be excluded. |
void |
setExecutable(java.lang.String executable)
Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. |
void |
setFailonerror(boolean b)
Should the build process fail if javadoc fails (as indicated by a non zero return code)? |
void |
setLinksource(boolean b)
Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. |
void |
setName(java.lang.String fqClassName)
set doclet's fully-qualified class name |
void |
setPackageList(java.lang.String src)
The name of a file containing the packages to process. |
void |
setPackagenames(java.lang.String packages)
Set the package names to be processed. |
void |
setSource(java.lang.String source)
Enables the -source switch, will be ignored if javadoc is not the 1.4 version. |
void |
setSourcepath(org.apache.tools.ant.types.Path src)
Specify where to find source file |
void |
setSourcepathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setVerbose(boolean b)
Run javadoc in verbose mode |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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 |
Constructor Detail |
---|
public DocletTask()
Method Detail |
---|
public void setName(java.lang.String fqClassName)
fqClassName
- doclet's class namepublic void setClasspath(org.apache.tools.ant.types.Path path)
path
- doclet's classpathpublic void setClasspathRef(org.apache.tools.ant.types.Reference r)
r
- the reference to an instance defining the classpath.public org.apache.tools.ant.types.Path createClasspath()
public void setBootclasspath(org.apache.tools.ant.types.Path path)
path
- the boot classpath.public org.apache.tools.ant.types.Path createBootclasspath()
public void setBootClasspathRef(org.apache.tools.ant.types.Reference r)
r
- the reference to an instance defining the bootclasspath.public void setSourcepath(org.apache.tools.ant.types.Path src)
src
- a Path instance containing the various source directories.public org.apache.tools.ant.types.Path createSourcepath()
public void setSourcepathRef(org.apache.tools.ant.types.Reference r)
r
- the reference containing the source path definition.public org.apache.tools.ant.taskdefs.Javadoc.DocletParam createParam()
public void setFailonerror(boolean b)
Default is false.
public void setSource(java.lang.String source)
public void setVerbose(boolean b)
b
- true if operation is to be verbose.public void setExecutable(java.lang.String executable)
javadoc
found in Ant's JDK.
public void addPackageset(org.apache.tools.ant.types.DirSet packageSet)
All included directories will be translated into package names be converting the directory separator into dots.
public void addFileset(org.apache.tools.ant.types.FileSet fs)
All included files will be added as sourcefiles. The task
will automatically add
includes="**/*.java"
to the
fileset.
public void setLinksource(boolean b)
public void setPackageList(java.lang.String src)
src
- the file containing the package list.public void setPackagenames(java.lang.String packages)
packages
- a comma separated list of packages specs
(may be wildcarded).for wildcard information.
public void addPackage(org.apache.tools.ant.taskdefs.Javadoc.PackageName pn)
pn
- the package name, possibly wildcarded.public void setExcludePackageNames(java.lang.String packages)
packages
- a comma separated list of packages to be excluded.
This may not include wildcards.public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void init_javadoc() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void check() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void addParam(java.lang.String name, java.lang.String value)
name
- parmaeter's namevalue
- parameter's value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |