1 ." Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
1 ." Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
2 ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2 ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 ." |
3 ." |
4 ." This code is free software; you can redistribute it and/or modify it |
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 |
5 ." under the terms of the GNU General Public License version 2 only, as |
6 ." published by the Free Software Foundation. |
6 ." published by the Free Software Foundation. |
17 ." |
17 ." |
18 ." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
19 ." or visit www.oracle.com if you need additional information or have any |
20 ." questions. |
20 ." questions. |
21 ." |
21 ." |
22 .TH schemagen 1 "02 Jun 2010" |
22 .TH schemagen 1 "10 May 2011" |
23 |
23 |
24 .LP |
24 .LP |
25 .SH "Name" |
25 .SH "Name" |
26 schemagen \- Java(TM) Architecture for XML Binding Schema Generator |
26 schemagen \- Java(TM) Architecture for XML Binding Schema Generator |
27 .LP |
27 .LP |
28 .LP |
28 .LP |
29 \f3Specification Version:\fP 2.1 |
29 \f3Specification Version:\fP 2.1 |
30 .br |
30 .br |
31 \f3Implementation Version:\fP 2.1.3 |
31 \f3Implementation Version:\fP 2.1.3 |
32 .LP |
32 .LP |
33 .SS |
33 .SH "Launching schemagen" |
34 Launching schemagen |
|
35 .LP |
34 .LP |
36 .LP |
35 .LP |
37 The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform. |
36 The schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform. |
38 .LP |
37 .LP |
39 .LP |
38 .LP |
44 .na |
43 .na |
45 \f2using schemagen with Ant\fP @ |
44 \f2using schemagen with Ant\fP @ |
46 .fi |
45 .fi |
47 https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
46 https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
48 .LP |
47 .LP |
49 .RS 3 |
|
50 |
|
51 .LP |
|
52 .nf |
48 .nf |
53 \f3 |
49 \f3 |
54 .fl |
50 .fl |
55 % schemagen.sh Foo.java Bar.java ... |
51 % schemagen.sh Foo.java Bar.java ... |
56 .fl |
52 .fl |
57 Note: Writing schema1.xsd |
53 Note: Writing schema1.xsd |
58 .fl |
54 .fl |
59 \fP |
55 \fP |
60 .fi |
56 .fi |
61 .RE |
|
62 |
57 |
63 .LP |
58 .LP |
64 .LP |
59 .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. |
60 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 |
61 .LP |
67 .RS 3 |
62 .SS |
68 |
63 Command Line Options |
69 .LP |
|
70 \f3Command Line Options\fP |
|
71 .LP |
|
72 .RS 3 |
|
73 |
|
74 .LP |
64 .LP |
75 .nf |
65 .nf |
76 \f3 |
66 \f3 |
77 .fl |
67 .fl |
78 Usage: schemagen [\-options ...] <java files> |
68 Usage: schemagen [\-options ...] <java files> |
79 .fl |
69 .fl |
80 |
70 |
81 .fl |
71 .fl |
82 Options: |
72 Options: |
83 .fl |
73 .fl |
84 \-d <path> : Specify where to place processor and javac generated class files |
74 \-d <path> : specify where to place processor and javac generated class files |
85 .fl |
75 .fl |
86 \-cp <path> : Specify where to find user specified files |
76 \-cp <path> : specify where to find user specified files |
87 .fl |
77 .fl |
88 \-classpath <path> : Specify where to find user specified files |
78 \-classpath <path> : specify where to find user specified files |
89 .fl |
79 .fl |
90 \-help : Display this usage message |
80 \-encoding <encoding> : specify encoding to be used for apt/javac invocation |
|
81 .fl |
|
82 |
|
83 .fl |
|
84 \-episode <file> : generate episode file for separate compilation |
|
85 .fl |
|
86 \-version : display version information |
|
87 .fl |
|
88 \-help : display this usage message |
91 .fl |
89 .fl |
92 \fP |
90 \fP |
93 .fi |
91 .fi |
94 .RE |
|
95 |
92 |
96 .LP |
93 .LP |
97 .RE |
94 .SH "Generated Resource Files" |
98 .SS |
|
99 Generated Resource Files |
|
100 .LP |
95 .LP |
101 .LP |
96 .LP |
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 |
97 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 |
98 .na |
104 \f2the schema generator ant task\fP @ |
99 \f2the schema generator ant task\fP @ |
105 .fi |
100 .fi |
106 https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
101 https://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html. |
107 .LP |
102 .LP |
108 .SH "See Also" |
103 .SH "Name" |
|
104 See Also |
109 .LP |
105 .LP |
110 .RS 3 |
106 .RS 3 |
111 .TP 2 |
107 .TP 2 |
112 o |
108 o |
113 Running the schema generator (schemagen): [ |
109 Running the schema generator (schemagen): [ |