org.howardism.ant
Class DefaultPlugin
java.lang.Object
org.howardism.ant.DefaultPlugin
- All Implemented Interfaces:
- Text2HTMLPlugin
- public class DefaultPlugin
- extends java.lang.Object
- implements Text2HTMLPlugin
|
Method Summary |
void |
convert(java.io.File srcFile,
java.io.File destFile)
Converts a single text-formatted file to an HTML-formatted file. |
static void |
main(java.lang.String[] args)
|
void |
setParent(org.apache.tools.ant.Task parent)
Allows the Text2HTML task to pass the plugin a reference to
the Parent (the caller) so that it can send it log messages. |
void |
setScript(java.lang.String script)
Specifies a script filter (optional) for futher processing
of the text. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPlugin
public DefaultPlugin()
convert
public void convert(java.io.File srcFile,
java.io.File destFile)
throws org.apache.tools.ant.BuildException
- Converts a single text-formatted file to an HTML-formatted file.
The parameters include the source data file and the destination
file where the resulting converted file will be written by
this method.
- Specified by:
convert in interface Text2HTMLPlugin
- Parameters:
srcFile - name of the input file.destFile - name of the destination file.
- Throws:
org.apache.tools.ant.BuildException
setParent
public void setParent(org.apache.tools.ant.Task parent)
- Allows the Text2HTML task to pass the plugin a reference to
the Parent (the caller) so that it can send it log messages.
- Specified by:
setParent in interface Text2HTMLPlugin
- Parameters:
parent -
setScript
public void setScript(java.lang.String script)
- Specifies a script filter (optional) for futher processing
of the text.
- Specified by:
setScript in interface Text2HTMLPlugin
- Parameters:
script -
main
public static void main(java.lang.String[] args)