bpatel | 87d64cc | 2010-07-14 15:42:06 -0700 | [diff] [blame] | 1 | ." Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 2 | ." 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 | ." |
ohair | 2283b9d | 2010-05-25 15:58:33 -0700 | [diff] [blame] | 18 | ." 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. |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 21 | ." |
bpatel | 87d64cc | 2010-07-14 15:42:06 -0700 | [diff] [blame] | 22 | .TH schemagen 1 "02 Jun 2010" |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 23 | |
| 24 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 25 | .SH "Name" |
| 26 | schemagen \- Java(TM) Architecture for XML Binding Schema Generator |
| 27 | .LP |
| 28 | .LP |
| 29 | \f3Specification Version:\fP 2.1 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 30 | .br |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 31 | \f3Implementation Version:\fP 2.1.3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 32 | .LP |
| 33 | .SS |
| 34 | Launching schemagen |
| 35 | .LP |
| 36 | .LP |
| 37 | The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform. |
| 38 | .LP |
| 39 | .LP |
| 40 | The current schema generator can process either Java source files or class files. |
| 41 | .LP |
| 42 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 43 | We also provide an Ant task to run the schema generator \- see the instructions for |
| 44 | .na |
| 45 | \f2using schemagen with Ant\fP @ |
| 46 | .fi |
| 47 | https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 48 | .LP |
| 49 | .RS 3 |
| 50 | |
| 51 | .LP |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 52 | .nf |
| 53 | \f3 |
| 54 | .fl |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 55 | % schemagen.sh Foo.java Bar.java ... |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 56 | .fl |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 57 | Note: Writing schema1.xsd |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 58 | .fl |
| 59 | \fP |
| 60 | .fi |
| 61 | .RE |
| 62 | |
| 63 | .LP |
| 64 | .LP |
| 65 | 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. |
| 66 | .LP |
| 67 | .RS 3 |
| 68 | |
| 69 | .LP |
| 70 | \f3Command Line Options\fP |
| 71 | .LP |
| 72 | .RS 3 |
| 73 | |
| 74 | .LP |
| 75 | .nf |
| 76 | \f3 |
| 77 | .fl |
| 78 | Usage: schemagen [\-options ...] <java files> |
| 79 | .fl |
| 80 | |
| 81 | .fl |
| 82 | Options: |
| 83 | .fl |
| 84 | \-d <path> : Specify where to place processor and javac generated class files |
| 85 | .fl |
| 86 | \-cp <path> : Specify where to find user specified files |
| 87 | .fl |
| 88 | \-classpath <path> : Specify where to find user specified files |
| 89 | .fl |
| 90 | \-help : Display this usage message |
| 91 | .fl |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 92 | \fP |
| 93 | .fi |
| 94 | .RE |
| 95 | |
| 96 | .LP |
| 97 | .RE |
| 98 | .SS |
| 99 | Generated Resource Files |
| 100 | .LP |
| 101 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 102 | 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 |
| 103 | .na |
| 104 | \f2the schema generator ant task\fP @ |
| 105 | .fi |
| 106 | https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 107 | .LP |
| 108 | .SH "See Also" |
| 109 | .LP |
| 110 | .RS 3 |
| 111 | .TP 2 |
| 112 | o |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 113 | Running the schema generator (schemagen): [ |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 114 | .na |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 115 | \f2command\-line instructions\fP @ |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 116 | .fi |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 117 | https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html, |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 118 | .na |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 119 | \f2using the SchemaGen Ant task\fP @ |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 120 | .fi |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 121 | https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html] |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 122 | .TP 2 |
| 123 | o |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 124 | .na |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 125 | \f2Java Architecture for XML Binding (JAXB)\fP @ |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 126 | .fi |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 127 | http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxb/index.html |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 128 | .RE |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame] | 129 | |
| 130 | .LP |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 131 | |