com.Ostermiller.Syntax
Class ToHTMLAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by com.Ostermiller.Syntax.ToHTMLAntTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class ToHTMLAntTask
extends org.apache.tools.ant.taskdefs.MatchingTask


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ToHTMLAntTask()
           
 
Method Summary
 void addConfiguredParameter(org.apache.tools.ant.types.Parameter param)
           
 void execute()
          Executes the task.
 void setCSS(String css)
          Cascading Style Sheet to which html should be linked.
 void setDestdir(File destDir)
          Set the destination where the fixed files should be placed.
 void setLexer(String lexer)
          Java class name of the lexer to use.
 void setMime(String mime)
          Set the mime-type for files to be highlighted.
 void setSrcdir(File srcDir)
          Set the source dir to find the source files.
 void setTemplate(String template)
          BTE template to use.
 void setTitle(String title)
          Use the given title in the html page.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToHTMLAntTask

public ToHTMLAntTask()
Method Detail

setSrcdir

public void setSrcdir(File srcDir)
Set the source dir to find the source files.


setDestdir

public void setDestdir(File destDir)
Set the destination where the fixed files should be placed. Default is to replace the original file.


setMime

public void setMime(String mime)
Set the mime-type for files to be highlighted. text/html, text/x-java...


setLexer

public void setLexer(String lexer)
Java class name of the lexer to use.


setTitle

public void setTitle(String title)
Use the given title in the html page.


setTemplate

public void setTemplate(String template)
                 throws MalformedURLException
BTE template to use. see: ostermiller.org/bte

Throws:
MalformedURLException

setCSS

public void setCSS(String css)
Cascading Style Sheet to which html should be linked.


addConfiguredParameter

public void addConfiguredParameter(org.apache.tools.ant.types.Parameter param)
                            throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException