|
||||||||||
| 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.sf.fikin.ant.DocletTask
net.sf.fikin.ant.VelocityDocletTask
public class VelocityDocletTask
VelocityDoclet docletExample: Execute a template against some java sources
<velocityDoclet template="my-template.vm" file="my-output.txt" >
<packageset dir="src" defaultexcludes="yes">
<include name="net/sf/fikin/ant/**" />
</packageset>
</velocityDoclet>
Example: Pass current timestamp as extra Java System parameters read by the template
<velocityDoclet template="my-template.vm" file="my-output.txt" >
<packageset dir="src" defaultexcludes="yes">
<include name="net/sf/fikin/ant/**" />
</packageset>
<param name="-J-DDSTAMP=${DSTAMP}" />
</velocityDoclet>
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 | |
|---|---|
VelocityDocletTask()
|
|
| Method Summary | |
|---|---|
protected void |
check()
check parameters |
void |
init()
set the doclet class name |
void |
setFile(java.io.File outFile)
set output file to be generated |
void |
setName(java.lang.String fqClassName)
Deprecated. One can't replace the built-in Velocity Doclet |
void |
setTemplate(java.lang.String templateName)
set template name, it resolves either to a file or a classloader resource |
void |
setVelocityLog(boolean flg)
if true indicate that a velocity.log is to be generated |
| Methods inherited from class net.sf.fikin.ant.DocletTask |
|---|
addFileset, addPackage, addPackageset, addParam, createBootclasspath, createClasspath, createParam, createSourcepath, execute, init_javadoc, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setExcludePackageNames, setExecutable, setFailonerror, setLinksource, setPackageList, setPackagenames, setSource, setSourcepath, setSourcepathRef, setVerbose |
| 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 |
| Constructor Detail |
|---|
public VelocityDocletTask()
| Method Detail |
|---|
public void setName(java.lang.String fqClassName)
DocletTask
setName in class DocletTaskfqClassName - doclet's class namepublic void setTemplate(java.lang.String templateName)
templateName - public void setFile(java.io.File outFile)
outFile - public void setVelocityLog(boolean flg)
flg -
protected void check()
throws org.apache.tools.ant.BuildException
check in class DocletTaskorg.apache.tools.ant.BuildException
public void init()
throws org.apache.tools.ant.BuildException
init in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||