1schemagen(1)                General Commands Manual               schemagen(1)
2
3
4

Name

6       schemagen - Java(TM) Architecture for XML Binding Schema Generator
7
8       Specification Version: 2.1
9       Implementation Version: 2.1.3
10

Launching schemagen

12       The  schema  generator  can be launched using the appropriate schemagen
13       shell script in the bin directory for your platform.
14
15       The current schema generator can process either Java  source  files  or
16       class files.
17
18       We  also  provide  an  Ant  task  to run the schema generator - see the
19       instructions for using schemagen with Ant @
20       https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
21
22       % schemagen.sh Foo.java Bar.java ...
23       Note: Writing schema1.xsd
24
25
26       If your java sources/classes reference other classes, they must be
27       accessable on your system CLASSPATH environment variable, or they need
28       to be given to the tool by using the -classpath/-cp options. Otherwise
29       you will see errors when generating your schema.
30
31   Command Line Options
32       Usage: schemagen [-options ...] <java files>
33
34       Options:
35           -d <path>             : specify where to place processor and javac generated class files
36           -cp <path>            : specify where to find user specified files
37           -classpath <path>     : specify where to find user specified files
38           -encoding <encoding>  : specify encoding to be used for apt/javac invocation
39
40           -episode <file>       : generate episode file for separate compilation
41           -version              : display version information
42           -help                 : display this usage message
43
44

Generated Resource Files

46       The current schema generator simply creates a schema file for each
47       namespace referenced in your Java classes. There is no way to control
48       the name of the generated schema files at this time. For that purpose,
49       use the schema generator ant task @
50       https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
51

Name

53       See Also
54
55          o Running the schema generator (schemagen): [ command-line instruc‐
56            tions @
57            https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html, using
58            the SchemaGen Ant task @
59            https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
60
61          o Java Architecture for XML Binding (JAXB) @
62            http://docs.oracle.com/javase/7/docs/tech
63            notes/guides/xml/jaxb/index.html
64
65
66                                  16 Mar 2012                     schemagen(1)
Impressum