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