org.knopflerfish.ant.taskdefs.bundle
public class MakeHTMLTask extends org.apache.tools.ant.Task
This task is used when building distributions of Knopflerfish. If you don't intend to create a new distribution type of Knopflerfish then you're in the wrong place.
Task that creates web sites given a template and a source file.
Currently used to create parts of the docs directory in the KF
distribution. It does this by simply replacing certain text strings with
others. For more information on which text strings this is please
check the source code.
Here is a outline of how to use the task and a description of different parameters and used system properties.
| Attribute | Description | Required |
| outdir | What dir to put the actual the generated file | Yes | tofile |
The relative path to where the generated file should be
copied. That is the actual location of the generated file
will be outdir/tofile
|
Yes |
| template | The file which describes what the page should look like | Yes |
| title | The page's title | No, default is "" |
| description | The page's description | No, default is "" |
| disable |
Allows you to disable certain links. This attribute is very ad hoc.
It will use the properties htdocs.link.disabled.class
and htdocs.link.enabled.class. The task will then use the
values of these properties to generate the file.
|
No |
| javadocRelPath | Relative path (from outdir) to javadocs. | ../../javadoc |
Note: instead of using the attributes fromfile and
tofile one can use filesets. It will simply run through
and perform the task on all given files.
| Constructor and Description |
|---|
MakeHTMLTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredHtmlFragment(HtmlFragment fragment) |
void |
addFileset(org.apache.tools.ant.types.FileSet fs) |
void |
execute() |
void |
setBundleList(java.lang.String bundleList) |
void |
setDescription(java.lang.String description) |
void |
setDisable(java.lang.String disabled) |
void |
setFromfile(java.lang.String s) |
void |
setJavadocRelPath(java.lang.String s) |
void |
setManstyle(java.lang.String manstyle) |
void |
setOutdir(java.lang.String s) |
void |
setTemplate(java.lang.String template) |
void |
setTitle(java.lang.String title) |
void |
setTofile(java.lang.String s) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFromfile(java.lang.String s)
public void setTofile(java.lang.String s)
public void setTitle(java.lang.String title)
public void setDescription(java.lang.String description)
setDescription in class org.apache.tools.ant.ProjectComponentpublic void setOutdir(java.lang.String s)
public void setTemplate(java.lang.String template)
public void setBundleList(java.lang.String bundleList)
public void setManstyle(java.lang.String manstyle)
public void setDisable(java.lang.String disabled)
public void setJavadocRelPath(java.lang.String s)
public void addFileset(org.apache.tools.ant.types.FileSet fs)
public void addConfiguredHtmlFragment(HtmlFragment fragment)
public void execute()
execute in class org.apache.tools.ant.Task