|
||||||||||
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
org.eclipse.mylyn.wikitext.core.util.anttask.MarkupTask
org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToHtmlTask
public class MarkupToHtmlTask
An Ant task for converting lightweight markup to HTML format.
Nested Class Summary | |
---|---|
static class |
MarkupToHtmlTask.Attribute
|
static class |
MarkupToHtmlTask.Stylesheet
|
Field Summary | |
---|---|
protected File |
file
|
protected boolean |
formatOutput
|
protected String |
htmlFilenameFormat
|
protected String |
linkRel
|
protected boolean |
multipleOutputFiles
|
protected boolean |
navigationImages
|
protected boolean |
overwrite
|
protected String |
prependImagePrefix
|
protected String |
title
|
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 |
Constructor Summary | |
---|---|
MarkupToHtmlTask()
|
Method Summary | |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files to process. |
void |
addStylesheet(MarkupToHtmlTask.Stylesheet stylesheet)
|
protected File |
computeHtmlFile(File source,
String name)
|
void |
execute()
|
String |
getDefaultAbsoluteLinkTarget()
A default target attribute for links that have absolute (not relative) urls. |
boolean |
getEmitDoctype()
Indicate if the builder should emit DOCTYPE declaration. |
File |
getFile()
the file to process |
String |
getHtmlDoctype()
The DTD to use in the output document. |
String |
getHtmlFilenameFormat()
|
String |
getLinkRel()
The 'rel' value for HTML links. |
String |
getPrependImagePrefix()
|
String |
getTitle()
The document title, as it appears in the head |
boolean |
isFormatOutput()
indicate if the output should be formatted |
boolean |
isMultipleOutputFiles()
indicate if output should be generated to multiple output files. |
boolean |
isNavigationImages()
indicate if navigation links should be images |
boolean |
isOverwrite()
indicate if target files should be overwritten even if their timestamps are newer than the source files. |
boolean |
isSuppressBuiltInCssStyles()
|
boolean |
isUseInlineCssStyles()
|
boolean |
isXhtmlStrict()
Indicate if the builder should attempt to conform to strict XHTML rules. |
protected String |
processFile(MarkupLanguage markupLanguage,
File baseDir,
File source)
process the file |
void |
setDefaultAbsoluteLinkTarget(String defaultAbsoluteLinkTarget)
A default target attribute for links that have absolute (not relative) urls. |
void |
setEmitDoctype(boolean emitDtd)
Indicate if the builder should emit DOCTYPE declaration. |
void |
setFile(File file)
the file to process |
void |
setFormatOutput(boolean formatOutput)
indicate if the output should be formatted |
void |
setHtmlDoctype(String htmlDoctype)
The DTD to use in the output document. |
void |
setHtmlFilenameFormat(String htmlFilenameFormat)
The format of the HTML output file. |
void |
setLinkRel(String linkRel)
The 'rel' value for HTML links. |
void |
setMultipleOutputFiles(boolean multipleOutputFiles)
indicate if output should be generated to multiple output files. |
void |
setNavigationImages(boolean navigationImages)
indicate if navigation links should be images |
void |
setOverwrite(boolean overwrite)
indicate if target files should be overwritten even if their timestamps are newer than the source files. |
void |
setPrependImagePrefix(String prependImagePrefix)
|
void |
setSuppressBuiltInCssStyles(boolean suppressBuiltInCssStyles)
|
void |
setTitle(String title)
The document title, as it appears in the head |
void |
setUseInlineCssStyles(boolean useInlineCssStyles)
|
void |
setXhtmlStrict(boolean xhtmlStrict)
Indicate if the builder should attempt to conform to strict XHTML rules. |
Methods inherited from class org.eclipse.mylyn.wikitext.core.util.anttask.MarkupTask |
---|
addConfiguredMarkupLanguageConfiguration, createMarkupLanguage, getInternalLinkPattern, getMarkupLanguage, getMarkupLanguageConfiguration, getSourceEncoding, isFailOnValidationError, isFailOnValidationWarning, isValidate, performValidation, readFully, setFailOnValidationError, setFailOnValidationWarning, setInternalLinkPattern, setMarkupLanguage, setMarkupLanguageConfiguration, setSourceEncoding, setValidate |
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, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String htmlFilenameFormat
protected boolean overwrite
protected File file
protected String title
protected String linkRel
protected boolean multipleOutputFiles
protected boolean formatOutput
protected boolean navigationImages
protected String prependImagePrefix
Constructor Detail |
---|
public MarkupToHtmlTask()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected String processFile(MarkupLanguage markupLanguage, File baseDir, File source) throws org.apache.tools.ant.BuildException
baseDir
- source
-
org.apache.tools.ant.BuildException
protected File computeHtmlFile(File source, String name)
public String getHtmlFilenameFormat()
setHtmlFilenameFormat(String)
public void setHtmlFilenameFormat(String htmlFilenameFormat)
$1.html
htmlFilenameFormat
- public String getTitle()
public void setTitle(String title)
public File getFile()
public void setFile(File file)
public void addFileset(org.apache.tools.ant.types.FileSet set)
public void addStylesheet(MarkupToHtmlTask.Stylesheet stylesheet)
public boolean isMultipleOutputFiles()
public void setMultipleOutputFiles(boolean multipleOutputFiles)
public boolean isFormatOutput()
public void setFormatOutput(boolean formatOutput)
public boolean isNavigationImages()
public void setNavigationImages(boolean navigationImages)
public boolean isUseInlineCssStyles()
HtmlDocumentBuilder.isUseInlineStyles()
public void setUseInlineCssStyles(boolean useInlineCssStyles)
HtmlDocumentBuilder.isUseInlineStyles()
public boolean isSuppressBuiltInCssStyles()
HtmlDocumentBuilder.isSuppressBuiltInStyles()
public void setSuppressBuiltInCssStyles(boolean suppressBuiltInCssStyles)
HtmlDocumentBuilder.isSuppressBuiltInStyles()
public String getLinkRel()
public void setLinkRel(String linkRel)
public String getPrependImagePrefix()
public void setPrependImagePrefix(String prependImagePrefix)
public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
public String getDefaultAbsoluteLinkTarget()
public void setDefaultAbsoluteLinkTarget(String defaultAbsoluteLinkTarget)
public boolean isXhtmlStrict()
HtmlDocumentBuilder.isXhtmlStrict()
public void setXhtmlStrict(boolean xhtmlStrict)
HtmlDocumentBuilder.isXhtmlStrict()
public boolean getEmitDoctype()
HtmlDocumentBuilder.isEmitDtd()
public void setEmitDoctype(boolean emitDtd)
HtmlDocumentBuilder.isEmitDtd()
public String getHtmlDoctype()
emitDoctype
is false.
HtmlDocumentBuilder.isEmitDtd()
public void setHtmlDoctype(String htmlDoctype)
emitDoctype
is false. The doctype
should take the form: <!DOCTYPE html ...>
htmlDoctype
- the DTD to use, or null if the default DTD should be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |