1. schemagen
The schemagen tool creates a schema file for each namespace in a Java class.
The following describes how to use the tool and parameters.
-
Usage
Usage: schemagen [-options ...] <java files> Options: -d <path> : specify where to place processor and javac generated class files -cp <path> : specify where to find user specified files -classpath <path> : specify where to find user specified files -encoding <encoding> : specify encoding to be used for apt/javac invocation -episode <file> : generate episode file for separate compilation -version : display version information -fullversion : display full version information -help : display this usage message
-
Parameters
Parameter Description -d <path>
Path to the processors and class files.
-cp <path>
Alias for -classpath <path>.
-classpath <path>
Path to user-specified files.
-encoding <encoding>
Encoding used to call apt/javac.
-episode <file>
Creates episode files to be separately compiled.
-version
Displays version information.
-fullversion
Displays full version information.
-help
Displays help.
-
Example
schemagen is a general script file located in JEUS_HOME/bin/.
The following is an example of executing schemagen.
$ schemagen -d build/classes src/java/cardfile/Address.java
The previous command creates the schema in the "build/classes" directory from the Address.java source file, which corresponds to a root element.