public class BuildTutorial
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.io.FileWriter |
build |
(package private) static java.lang.String |
root |
| Constructor and Description |
|---|
BuildTutorial() |
| Modifier and Type | Method and Description |
|---|---|
static void |
action(java.io.File source,
java.io.File destination,
java.io.File xsl_examples,
java.io.File xsl_site)
Inspects a file or directory that is given and performs the necessary actions on it (transformation or recursion).
|
static void |
convert(java.io.File infile,
java.io.File xslfile,
java.io.File outfile)
Converts an
infile, using an xslfile to an
outfile. |
static void |
main(java.lang.String[] args)
Main method so you can call the convert method from the command line.
|
public static void main(java.lang.String[] args)
args - 4 arguments are expected:
public static void action(java.io.File source,
java.io.File destination,
java.io.File xsl_examples,
java.io.File xsl_site)
throws java.io.IOException
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.htmljava.io.IOException - when something goes wrong while reading or creating a file or directorypublic static void convert(java.io.File infile,
java.io.File xslfile,
java.io.File outfile)
infile, using an xslfile to an
outfile.infile - the path to an XML filexslfile - the path to the XSL fileoutfile - the path for the output file