org.howardism.ant
Class MarkdownPlugin

java.lang.Object
  extended byorg.howardism.ant.MarkdownPlugin
All Implemented Interfaces:
Text2HTMLPlugin

public class MarkdownPlugin
extends java.lang.Object
implements Text2HTMLPlugin


Constructor Summary
MarkdownPlugin()
           
 
Method Summary
 void convert(java.io.File srcFile, java.io.File destFile)
          Converts a Textile-formatted text 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)
          Optionally called if there is a "script" parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkdownPlugin

public MarkdownPlugin()
Method Detail

convert

public void convert(java.io.File srcFile,
                    java.io.File destFile)
             throws org.apache.tools.ant.BuildException
Converts a Textile-formatted text file to an HTML-formatted file.

Textile is Textism's "Humane Web Text Generator" and has a goal that a formatting using Textile is much easier to type than HTML, see http://www.textism.com/tools/textile

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)
Description copied from interface: Text2HTMLPlugin
Optionally called if there is a "script" parameter.

Specified by:
setScript in interface Text2HTMLPlugin
Parameters:
script -

main

public static void main(java.lang.String[] args)