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