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