public class HtmlMacroTask
extends org.apache.tools.ant.Task
Modifier and Type | Field and Description |
---|---|
private org.apache.tools.ant.types.Path |
classpath
Used to load additional jelly tag libraries.
|
private java.io.File |
destdir |
private java.util.List<org.apache.tools.ant.types.FileSet> |
documents
Source files to process.
|
private java.lang.String |
encoding
Encoding of the file to be generated.
|
private boolean |
html
Reads the source file as HTML.
|
private java.util.Map<java.lang.String,java.lang.String> |
properties |
private java.util.List<java.io.File> |
tags
Tag files.
|
Constructor and Description |
---|
HtmlMacroTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredDocuments(org.apache.tools.ant.types.FileSet fs)
Docs to process.
|
void |
addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable v) |
void |
addConfiguredTags(org.apache.tools.ant.types.FileSet fs)
Nested tag files.
|
org.apache.tools.ant.types.Path |
createClasspath()
Nested <classpath> element.
|
void |
execute() |
private void |
populateFiles(org.apache.tools.ant.types.FileSet fs,
java.util.List<java.io.File> r) |
private void |
registerTagLibrariesFromClasspath(org.apache.commons.jelly.JellyContext context)
Look up META-INF/jelly/taglibs and register them all
|
void |
setClasspath(org.apache.tools.ant.types.Path cp)
Nested <classpath> element.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r) |
void |
setDestdir(java.io.File destdir) |
void |
setEncoding(java.lang.String encoding) |
void |
setXhtml(boolean value)
True to read the source files as HTML.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
private final org.apache.tools.ant.types.Path classpath
private final java.util.List<java.io.File> tags
private boolean html
private java.util.List<org.apache.tools.ant.types.FileSet> documents
private java.io.File destdir
private java.lang.String encoding
When HTML files are loaded locally, it's assumed to be in the system default encoding, so we can't reliably use any encoding. The best bet is to use us-ascii, since it's a subet of most of the encodings used today.
private java.util.Map<java.lang.String,java.lang.String> properties
public void setDestdir(java.io.File destdir)
public void setClasspath(org.apache.tools.ant.types.Path cp)
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void addConfiguredProperty(org.apache.tools.ant.types.Environment.Variable v)
public void addConfiguredTags(org.apache.tools.ant.types.FileSet fs)
public void addConfiguredDocuments(org.apache.tools.ant.types.FileSet fs)
public void setXhtml(boolean value)
public void setEncoding(java.lang.String encoding)
private void populateFiles(org.apache.tools.ant.types.FileSet fs, java.util.List<java.io.File> r)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
private void registerTagLibrariesFromClasspath(org.apache.commons.jelly.JellyContext context)