blob: 653b9bfe6ff7d101f85e92bb1dac395debc5e143 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001.'" t
2." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
3." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4."
5." This code is free software; you can redistribute it and/or modify it
6." under the terms of the GNU General Public License version 2 only, as
7." published by the Free Software Foundation.
8."
9." This code is distributed in the hope that it will be useful, but WITHOUT
10." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12." version 2 for more details (a copy is included in the LICENSE file that
13." accompanied this code).
14."
15." You should have received a copy of the GNU General Public License version
16." 2 along with this work; if not, write to the Free Software Foundation,
17." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18."
19." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20." CA 95054 USA or visit www.sun.com if you need additional information or
21." have any questions.
22." `
23.TH schemagen 1 "07 Aug 2006"
24." Generated by html2man
25
26.LP
27.ad c
28.SH NAME
29schemagen \- Java(TM) Architecture for XML Binding Schema Generator \f3Specification Version:\fP 2.0
30.br
31\f3Reference Implementation (RI) Version:\fP 2.0 ea3
32.br
33.ad l
34
35.LP
36.SS
37Launching schemagen
38.LP
39.LP
40The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
41.LP
42.LP
43The current schema generator can process either Java source files or class files.
44.LP
45.LP
46We also provide an Ant task to run the schema generator \- see the instructions for using schemagen with Ant.
47.LP
48.RS 3
49
50.LP
51\f3For Solaris/Linux\fP
52.LP
53.nf
54\f3
55.fl
56 % path/to/jaxb/bin/schemagen.sh Foo.java Bar.java ...
57.fl
58 Note: Writing schema1.xsd
59.fl
60
61.fl
62\fP
63.fi
64
65.LP
66\f3For WindowsNT/2000/XP\fP
67.LP
68.nf
69\f3
70.fl
71 > path\\to\\jaxb\\bin\\schemagen.bat Foo.java Bar.java ...
72.fl
73 Note: Writing schema1.xsd
74.fl
75
76.fl
77\fP
78.fi
79.RE
80
81.LP
82.LP
83If 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.
84.LP
85.RS 3
86
87.LP
88\f3Command Line Options\fP
89.LP
90.RS 3
91
92.LP
93.nf
94\f3
95.fl
96Usage: schemagen [\-options ...] <java files>
97.fl
98
99.fl
100Options:
101.fl
102 \-d <path> : Specify where to place processor and javac generated class files
103.fl
104 \-cp <path> : Specify where to find user specified files
105.fl
106 \-classpath <path> : Specify where to find user specified files
107.fl
108 \-help : Display this usage message
109.fl
110
111.fl
112\fP
113.fi
114.RE
115
116.LP
117.RE
118.SS
119Generated Resource Files
120.LP
121.LP
122The 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 the schema generator ant task.
123.LP
124.SH "See Also"
125.LP
126.RS 3
127.TP 2
128o
129JAXB 2.0:
130.RS 3
131.TP 2
132*
133.na
134\f2Release Notes\fP @
135.fi
136http://java.sun.com/webservices/docs/2.0/jaxb/ReleaseNotes.html
137.TP 2
138*
139.na
140\f2XJC\fP @
141.fi
142http://java.sun.com/webservices/docs/2.0/jaxb/xjc.html
143.TP 2
144*
145.na
146\f2XJCTask\fP @
147.fi
148http://java.sun.com/webservices/docs/2.0/jaxb/xjcTask.html
149.TP 2
150*
151.na
152\f2SchemaGen\fP @
153.fi
154http://java.sun.com/webservices/docs/2.0/jaxb/schemagen.html
155.TP 2
156*
157.na
158\f2schemagenTask\fP @
159.fi
160http://java.sun.com/webservices/docs/2.0/jaxb/schemagenTask.html
161.TP 2
162*
163.na
164\f2Sample Apps\fP @
165.fi
166http://java.sun.com/webservices/docs/2.0/jaxb/samples.html
167.TP 2
168*
169.na
170\f2Changelog\fP @
171.fi
172http://java.sun.com/webservices/docs/2.0/jaxb/changelog2.html
173.RE
174.TP 2
175o
176JAXB 1.0.x:
177.RS 3
178.TP 2
179*
180.na
181\f2Release Notes\fP @
182.fi
183http://java.sun.com/webservices/docs/2.0/jaxb/jaxb\-1_0.html
184.TP 2
185*
186.na
187\f2Changelog\fP @
188.fi
189http://java.sun.com/webservices/docs/2.0/jaxb/changelog.html
190.RE
191.TP 2
192o
193JAXB RI Extensions:
194.RS 3
195.TP 2
196*
197.na
198\f2Runtime Properties\fP @
199.fi
200http://java.sun.com/webservices/docs/2.0/jaxb/vendorProperties.html
201.TP 2
202*
203.na
204\f2XJC Customizations\fP @
205.fi
206http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.html
207.TP 2
208*
209.na
210\f2Develop Plugins\fP @
211.fi
212http://java.sun.com/webservices/docs/2.0/jaxb/developPlugins.html
213.RE
214.TP 2
215o
216JAXB RI Schema Languages:
217.RS 3
218.TP 2
219*
220.na
221\f2W3C XML Schema\fP @
222.fi
223http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#xschema
224.TP 2
225*
226.na
227\f2RELAX NG\fP @
228.fi
229http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#relaxng
230.TP 2
231*
232.na
233\f2DTD\fP @
234.fi
235http://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#dtd
236.RE
237.TP 2
238o
239JAXB Community:
240.RS 3
241.TP 2
242*
243.na
244\f2Java.net Homepage\fP @
245.fi
246http://jaxb.dev.java.net
247.TP 2
248*
249.na
250\f2Developer interest list\fP @
251.fi
252https://jaxb.dev.java.net/servlets/ProjectMailingListList
253.TP 2
254*
255.na
256\f2FAQ\fP @
257.fi
258https://jaxb.dev.java.net/faq/index.html
259.RE
260.RE
261
262.LP
263