com.lowagie.tools

Class BuildTutorial

public class BuildTutorial extends Object

This class can be used to build the iText website.

Author: Bruno Lowagie

Field Summary
static FileWriterbuild
static Stringroot
Method Summary
static voidaction(File source, File destination, File xsl_examples, File xsl_site)
Inspects a file or directory that is given and performs the necessary actions on it (transformation or recursion).
static voidconvert(File infile, File xslfile, File outfile)
Converts an infile, using an xslfile to an outfile.
static voidmain(String[] args)
Main method so you can call the convert method from the command line.

Field Detail

build

static FileWriter build

root

static String root

Method Detail

action

public static void action(File source, File destination, File xsl_examples, File xsl_site)
Inspects a file or directory that is given and performs the necessary actions on it (transformation or recursion).

Parameters: source a sourcedirectory (possibly with a tutorial xml-file) destination a destination directory (where the html and build.xml file will be generated, if necessary) xsl_examples an xsl to transform the index.xml into a build.xml xsl_site an xsl to transform the index.xml into am index.html

Throws: IOException when something goes wrong while reading or creating a file or directory

convert

public static void convert(File infile, File xslfile, File outfile)
Converts an infile, using an xslfile to an outfile.

Parameters: infile the path to an XML file xslfile the path to the XSL file outfile the path for the output file

main

public static void main(String[] args)
Main method so you can call the convert method from the command line.

Parameters: args 4 arguments are expected: