4632N/A." Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
4632N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632N/A."
4632N/A." This code is free software; you can redistribute it and/or modify it
4632N/A." under the terms of the GNU General Public License version 2 only, as
4632N/A." published by the Free Software Foundation.
4632N/A."
4632N/A." This code is distributed in the hope that it will be useful, but WITHOUT
4632N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4632N/A." version 2 for more details (a copy is included in the LICENSE file that
4632N/A." accompanied this code).
4632N/A."
4632N/A." You should have received a copy of the GNU General Public License version
4632N/A." 2 along with this work; if not, write to the Free Software Foundation,
4632N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4632N/A."
4632N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4632N/A." or visit www.oracle.com if you need additional information or have any
4632N/A." questions.
4632N/A."
4632N/A.TH schemagen 1 "10 May 2011"
4632N/A
4632N/A.LP
4632N/A.SH "Name"
4632N/Aschemagen \- Java(TM) Architecture for XML Binding Schema Generator
4632N/A.LP
4632N/A.LP
4632N/A\f3Specification Version:\fP 2.1
4632N/A.br
4632N/A\f3Implementation Version:\fP 2.1.3
4632N/A.LP
4632N/A.SH "Launching schemagen"
4632N/A.LP
4632N/A.LP
4632N/AThe schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
4632N/A.LP
4632N/A.LP
4632N/AThe current schema generator can process either Java source files or class files.
4632N/A.LP
4632N/A.LP
4632N/AWe also provide an Ant task to run the schema generator \- see the instructions for
4632N/A.na
4632N/A\f2using schemagen with Ant\fP @
4632N/A.fi
4632N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/A% schemagen.sh Foo.java Bar.java ...
4632N/A.fl
4632N/ANote: Writing schema1.xsd
4632N/A.fl
4632N/A\fP
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.LP
4632N/AIf 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.
4632N/A.LP
4632N/A.SS
4632N/ACommand Line Options
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/AUsage: schemagen [\-options ...] <java files>
4632N/A.fl
4632N/A
4632N/A.fl
4632N/AOptions:
4632N/A.fl
4632N/A \-d <path> : specify where to place processor and javac generated class files
4632N/A.fl
4632N/A \-cp <path> : specify where to find user specified files
4632N/A.fl
4632N/A \-classpath <path> : specify where to find user specified files
4632N/A.fl
4632N/A \-encoding <encoding> : specify encoding to be used for apt/javac invocation
4632N/A.fl
4632N/A
4632N/A.fl
4632N/A \-episode <file> : generate episode file for separate compilation
4632N/A.fl
4632N/A \-version : display version information
4632N/A.fl
4632N/A \-help : display this usage message
4632N/A.fl
4632N/A\fP
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.SH "Generated Resource Files"
4632N/A.LP
4632N/A.LP
4632N/AThe 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
4632N/A.na
4632N/A\f2the schema generator ant task\fP @
4632N/A.fi
4632N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
4632N/A.LP
4632N/A.SH "Name"
4632N/ASee Also
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 2
4632N/Ao
4632N/ARunning the schema generator (schemagen): [
4632N/A.na
4632N/A\f2command\-line instructions\fP @
4632N/A.fi
4632N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html,
4632N/A.na
4632N/A\f2using the SchemaGen Ant task\fP @
4632N/A.fi
4632N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
4632N/A.TP 2
4632N/Ao
4632N/A.na
4632N/A\f2Java Architecture for XML Binding (JAXB)\fP @
4632N/A.fi
4632N/Ahttp://download.oracle.com/javase/7/docs/technotes/guides/xml/jaxb/index.html
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A