Package org.apache.tomcat.buildutil
Class Txt2Html
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tomcat.buildutil.Txt2Html
- All Implemented Interfaces:
- Cloneable
public class Txt2Html
extends org.apache.tools.ant.Task
Ant task to convert a given set of files from Text to HTML.
 Inserts an HTML header including pre tags and replaces special characters
 with their HTML escaped equivalents.
 
This task is currently used by the ant script to build our examples
- Author:
- Mark Roth
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFileset(org.apache.tools.ant.types.FileSet fs) Sets the files to be converted into HTMLvoidexecute()Perform the conversionvoidSets the directory to contain the resulting filesMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
Txt2Htmlpublic Txt2Html()
 
- 
- 
Method Details- 
setTodirSets the directory to contain the resulting files- Parameters:
- todir- The directory
 
- 
addFilesetpublic void addFileset(org.apache.tools.ant.types.FileSet fs) Sets the files to be converted into HTML- Parameters:
- fs- The fileset to be converted.
 
- 
executepublic void execute() throws org.apache.tools.ant.BuildExceptionPerform the conversion- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException- if an error occurs during execution of this task.
 
 
-