org.objectweb.jonathan.tools
Class XML2Kernel
java.lang.Object
|
+--org.objectweb.jonathan.tools.XML2Kernel
- public class XML2Kernel
- extends Object
XML2Kernel is a utility that compiles an XML configuration file into a java
class, and possibly compiles it and adds the compiled file to a jar archive.
This utility expects that the javac and jar commands
are available locally.
The name of the java class to generate should be specified as the "generated"
attribute of the configuration element; the class used to create the actual
bootstrap configuration should be specified using the "bootstrap" attribute,
like in :
...
Usage: java org.objectweb.jonathan.tools.XML2Kernel [options] properties-file
where options are:
-
-noc :
if the generated java file should not be compiled.
-
-s srcdir:
srcdir is the (existing) directory where
the java file should be generated;
-
-d classdir:
If classdir ends with ".jar", the java file is compiled locally (with
option -d .) and the generated file is added to the mentioned
jar file; otherwise, this option is passed to javac when compilation
occurs.
|
Method Summary |
static void |
main(String[] args)
The main method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML2Kernel
public XML2Kernel()
main
public static void main(String[] args)
- The main method.
- Parameters:
args - see the description of the XML2Kernel class.