de.java2html.anttasks
Class Java2HtmlTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
de.java2html.anttasks.Java2HtmlTask
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
public class Java2HtmlTask
- extends org.apache.tools.ant.taskdefs.MatchingTask
Runs the java2html converter as a task inside the well known build tool
"ant" (see ant.apache.org).
Thanks to Markus Gebhard, the author
of java2html itself. I contribute this code to the project under the same
license as java2html.
For an example for a build.xml
containing this task have a
look at the docs/anttask/ folder.
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java2HtmlTask
public Java2HtmlTask()
setSrcDir
public void setSrcDir(java.io.File srcDir)
- Sets the directory where the Java sources are stored.
- Parameters:
srcDir
- directory name
setDestDir
public void setDestDir(java.io.File destDir)
- Sets the directory where the output is written.
- Parameters:
destDir
- directory name
setOutputFormat
public void setOutputFormat(java.lang.String outputFormat)
- Sets the output format.
- Parameters:
outputFormat
- the output format identifier ("html", "xhtml", "latex")
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- See Also:
Task.execute()
setTabs
public void setTabs(int tabs)
- Sets the number of spaces per tab.
- Parameters:
tabs
-
setStyle
public void setStyle(java.lang.String style)
- Sets the table name for the output style, e.g. "kawa" or "eclipse".
- See Also:
JavaSourceStyleTable
setShowFileName
public void setShowFileName(boolean showFileName)
setShowLineNumbers
public void setShowLineNumbers(boolean showLineNumbers)
setShowDefaultTitle
public void setShowDefaultTitle(boolean showDefaultTitle)
setShowTableBorder
public void setShowTableBorder(boolean showTableBorder)
setIncludeDocumentFooter
public void setIncludeDocumentFooter(boolean includeDocumentFooter)
setIncludeDocumentHeader
public void setIncludeDocumentHeader(boolean includeDocumentHeader)
setAddLineAnchors
public void setAddLineAnchors(boolean addLineAnchors)
setLineAnchorPrefix
public void setLineAnchorPrefix(java.lang.String string)
setHorizontalAlignment
public void setHorizontalAlignment(java.lang.String horizontalAlignment)
setUseShortFileName
public void setUseShortFileName(boolean useShortFileName)
setOverwrite
public void setOverwrite(boolean overwrite)