org.apache.tomcat.buildutil

Class Txt2Html

public class Txt2Html extends 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

Method Summary
voidaddFileset(FileSet fs)
Sets the files to be converted into HTML
voidexecute()
Perform the conversion
voidsetTodir(File todir)
Sets the directory to contain the resulting files

Method Detail

addFileset

public void addFileset(FileSet fs)
Sets the files to be converted into HTML

Parameters: fileset The fileset to be converted.

execute

public void execute()
Perform the conversion

Parameters: BuildException Thrown if an error occurs during execution of this task.

setTodir

public void setTodir(File todir)
Sets the directory to contain the resulting files

Parameters: todir The directory

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.