Package com.lowagie.tools
Class BuildTutorial
java.lang.Object
com.lowagie.tools.BuildTutorial
This class can be used to build the iText website.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static FileWriter
(package private) static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Inspects a file or directory that is given and performs the necessary actions on it (transformation or recursion).static void
Converts aninfile
, using anxslfile
to anoutfile
.static void
Main method so you can call the convert method from the command line.
-
Field Details
-
root
-
build
-
-
Constructor Details
-
BuildTutorial
public BuildTutorial()
-
-
Method Details
-
main
Main method so you can call the convert method from the command line.- Parameters:
args
- 4 arguments are expected:- a sourcedirectory (root of the tutorial xml-files),
- a destination directory (where the html and build.xml files will be generated),
- an xsl to transform the index.xml into a build.xml
- an xsl to transform the index.xml into am index.html
-
action
public static void action(File source, File destination, File xsl_examples, File xsl_site) throws IOException 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.xmlxsl_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
Converts aninfile
, using anxslfile
to anoutfile
.- Parameters:
infile
- the path to an XML filexslfile
- the path to the XSL fileoutfile
- the path for the output file
-