blob: 59c4c97ea58ae8236bf1986d8b4b7ee2f4f12ffd [file] [log] [blame]
bpatel4bf512b2011-05-11 08:30:46 -07001." Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
duke6e45e102007-12-01 00:00:00 +00002." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3."
4." This code is free software; you can redistribute it and/or modify it
5." under the terms of the GNU General Public License version 2 only, as
6." published by the Free Software Foundation.
7."
8." This code is distributed in the hope that it will be useful, but WITHOUT
9." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11." version 2 for more details (a copy is included in the LICENSE file that
12." accompanied this code).
13."
14." You should have received a copy of the GNU General Public License version
15." 2 along with this work; if not, write to the Free Software Foundation,
16." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17."
ohair2283b9d2010-05-25 15:58:33 -070018." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19." or visit www.oracle.com if you need additional information or have any
20." questions.
tbell16c34dd2009-05-04 18:28:26 -070021."
bpatel4bf512b2011-05-11 08:30:46 -070022.TH schemagen 1 "10 May 2011"
duke6e45e102007-12-01 00:00:00 +000023
24.LP
tbell16c34dd2009-05-04 18:28:26 -070025.SH "Name"
26schemagen \- Java(TM) Architecture for XML Binding Schema Generator
27.LP
28.LP
29\f3Specification Version:\fP 2.1
duke6e45e102007-12-01 00:00:00 +000030.br
tbell16c34dd2009-05-04 18:28:26 -070031\f3Implementation Version:\fP 2.1.3
duke6e45e102007-12-01 00:00:00 +000032.LP
bpatel4bf512b2011-05-11 08:30:46 -070033.SH "Launching schemagen"
duke6e45e102007-12-01 00:00:00 +000034.LP
35.LP
36The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
37.LP
38.LP
39The current schema generator can process either Java source files or class files.
40.LP
41.LP
tbell16c34dd2009-05-04 18:28:26 -070042We also provide an Ant task to run the schema generator \- see the instructions for
43.na
44\f2using schemagen with Ant\fP @
45.fi
46https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
duke6e45e102007-12-01 00:00:00 +000047.LP
duke6e45e102007-12-01 00:00:00 +000048.nf
49\f3
50.fl
tbell16c34dd2009-05-04 18:28:26 -070051% schemagen.sh Foo.java Bar.java ...
duke6e45e102007-12-01 00:00:00 +000052.fl
tbell16c34dd2009-05-04 18:28:26 -070053Note: Writing schema1.xsd
duke6e45e102007-12-01 00:00:00 +000054.fl
55\fP
56.fi
duke6e45e102007-12-01 00:00:00 +000057
58.LP
59.LP
60If your java sources/classes reference other classes, they must be accessable on your system CLASSPATH environment variable, or they need to be given to the tool by using the \f2\-classpath\fP/\f2\-cp\fP options. Otherwise you will see errors when generating your schema.
61.LP
bpatel4bf512b2011-05-11 08:30:46 -070062.SS
63Command Line Options
duke6e45e102007-12-01 00:00:00 +000064.LP
65.nf
66\f3
67.fl
68Usage: schemagen [\-options ...] <java files>
69.fl
70
71.fl
bpatel4bf512b2011-05-11 08:30:46 -070072Options:
duke6e45e102007-12-01 00:00:00 +000073.fl
bpatel4bf512b2011-05-11 08:30:46 -070074 \-d <path> : specify where to place processor and javac generated class files
duke6e45e102007-12-01 00:00:00 +000075.fl
bpatel4bf512b2011-05-11 08:30:46 -070076 \-cp <path> : specify where to find user specified files
duke6e45e102007-12-01 00:00:00 +000077.fl
bpatel4bf512b2011-05-11 08:30:46 -070078 \-classpath <path> : specify where to find user specified files
duke6e45e102007-12-01 00:00:00 +000079.fl
bpatel4bf512b2011-05-11 08:30:46 -070080 \-encoding <encoding> : specify encoding to be used for apt/javac invocation
81.fl
82
83.fl
84 \-episode <file> : generate episode file for separate compilation
85.fl
86 \-version : display version information
87.fl
88 \-help : display this usage message
duke6e45e102007-12-01 00:00:00 +000089.fl
duke6e45e102007-12-01 00:00:00 +000090\fP
91.fi
duke6e45e102007-12-01 00:00:00 +000092
93.LP
bpatel4bf512b2011-05-11 08:30:46 -070094.SH "Generated Resource Files"
duke6e45e102007-12-01 00:00:00 +000095.LP
96.LP
tbell16c34dd2009-05-04 18:28:26 -070097The current schema generator simply creates a schema file for each namespace referenced in your Java classes. There is no way to control the name of the generated schema files at this time. For that purpose, use
98.na
99\f2the schema generator ant task\fP @
100.fi
101https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
duke6e45e102007-12-01 00:00:00 +0000102.LP
bpatel4bf512b2011-05-11 08:30:46 -0700103.SH "Name"
104See Also
duke6e45e102007-12-01 00:00:00 +0000105.LP
106.RS 3
107.TP 2
108o
tbell16c34dd2009-05-04 18:28:26 -0700109Running the schema generator (schemagen): [
duke6e45e102007-12-01 00:00:00 +0000110.na
tbell16c34dd2009-05-04 18:28:26 -0700111\f2command\-line instructions\fP @
duke6e45e102007-12-01 00:00:00 +0000112.fi
tbell16c34dd2009-05-04 18:28:26 -0700113https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html,
duke6e45e102007-12-01 00:00:00 +0000114.na
tbell16c34dd2009-05-04 18:28:26 -0700115\f2using the SchemaGen Ant task\fP @
duke6e45e102007-12-01 00:00:00 +0000116.fi
tbell16c34dd2009-05-04 18:28:26 -0700117https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
duke6e45e102007-12-01 00:00:00 +0000118.TP 2
119o
duke6e45e102007-12-01 00:00:00 +0000120.na
tbell16c34dd2009-05-04 18:28:26 -0700121\f2Java Architecture for XML Binding (JAXB)\fP @
duke6e45e102007-12-01 00:00:00 +0000122.fi
bpatel4bf512b2011-05-11 08:30:46 -0700123http://download.oracle.com/javase/7/docs/technotes/guides/xml/jaxb/index.html
duke6e45e102007-12-01 00:00:00 +0000124.RE
tbell16c34dd2009-05-04 18:28:26 -0700125
126.LP
duke6e45e102007-12-01 00:00:00 +0000127