|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MatchingTask de.java2html.anttasks.Java2HtmlTask
public class Java2HtmlTask
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.
Constructor Summary | |
---|---|
Java2HtmlTask()
|
Method Summary | |
---|---|
void |
execute()
|
void |
setAddLineAnchors(boolean addLineAnchors)
|
void |
setCharset(java.lang.String charset)
Sets the charset of output file. |
void |
setDestDir(java.io.File destDir)
Sets the directory where the output is written. |
void |
setHorizontalAlignment(java.lang.String horizontalAlignment)
|
void |
setIncludeDocumentFooter(boolean includeDocumentFooter)
|
void |
setIncludeDocumentHeader(boolean includeDocumentHeader)
|
void |
setLineAnchorPrefix(java.lang.String string)
|
void |
setOutputFormat(java.lang.String outputFormat)
Sets the output format. |
void |
setOverwrite(boolean overwrite)
|
void |
setShowDefaultTitle(boolean showDefaultTitle)
|
void |
setShowFileName(boolean showFileName)
|
void |
setShowLineNumbers(boolean showLineNumbers)
|
void |
setShowTableBorder(boolean showTableBorder)
|
void |
setSrcDir(java.io.File srcDir)
Sets the directory where the Java sources are stored. |
void |
setStyle(java.lang.String style)
Sets the table name for the output style, e.g. |
void |
setTabs(int tabs)
Sets the number of spaces per tab. |
void |
setUseShortFileName(boolean useShortFileName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Java2HtmlTask()
Method Detail |
---|
public void setCharset(java.lang.String charset)
charset
- public void setSrcDir(java.io.File srcDir)
srcDir
- directory namepublic void setDestDir(java.io.File destDir)
destDir
- directory namepublic void setOutputFormat(java.lang.String outputFormat)
outputFormat
- the output format identifier ("html", "xhtml", "latex")public void execute() throws BuildException
BuildException
org.apache.tools.ant.Task#execute()
public void setTabs(int tabs)
tabs
- public void setStyle(java.lang.String style)
JavaSourceStyleTable
public void setShowFileName(boolean showFileName)
public void setShowLineNumbers(boolean showLineNumbers)
public void setShowDefaultTitle(boolean showDefaultTitle)
public void setShowTableBorder(boolean showTableBorder)
public void setIncludeDocumentFooter(boolean includeDocumentFooter)
public void setIncludeDocumentHeader(boolean includeDocumentHeader)
public void setAddLineAnchors(boolean addLineAnchors)
public void setLineAnchorPrefix(java.lang.String string)
public void setHorizontalAlignment(java.lang.String horizontalAlignment)
public void setUseShortFileName(boolean useShortFileName)
public void setOverwrite(boolean overwrite)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |