public class BuildTutorial extends Object
Constructor and Description |
---|
BuildTutorial() |
Modifier and Type | Method and Description |
---|---|
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).
|
static void |
convert(File infile,
File xslfile,
File outfile)
Converts an
infile , using an xslfile to an
outfile . |
static void |
main(String[] args)
Main method so you can call the convert method from the command line.
|
public static void main(String[] args)
args
- 4 arguments are expected:
public static void action(File source, File destination, File xsl_examples, File xsl_site) throws 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.htmlIOException
- when something goes wrong while reading or creating a file or directoryCopyright © 2015. All rights reserved.