You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| xsdsToGenerate | null | 2-d array consisting of 2 or 3 values in each array: 1. xsd-file(input), 2. package for the generated sources, 3. (optional) a map containing additional options for the xjc task |
78
+
| generatedXsdDir | "generatedsources/src/main/java" | Destination directory for generated sources sources to be placed. |
79
+
| xsdDir | src/main/resources | Define the xsd files directory to support incremental build. This means that the task will be up-to-date if nothing in this directory has changed. |
80
+
| wsdlsToGenerate | empty | This is the main input to the plugin that defines the xsds to process. It is a list of arguments where each argument is a list of arguments to process a xsd-file. The xsd-file with full path is the last argument. The array can be supplied with the same options as described for the jaxb plugin(https://jaxb.java.net/2.2.4/docs/xjc.html).|
65
81
| encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. |
82
+
| locale | Locale.getDefault() | The locale for the generated sources – especially the JavaDoc. This might be necessary to prevent differing sources due to several development environments. |
83
+
| stabilizeAndMergeObjectFactory| false | If multiple XSDs target the same package, merge their ObjectFactory.java classes |
66
84
67
85
Example setting of options:
68
86
69
-
xsd2java{
87
+
xsd2java {
88
+
generatedXsdDir = file("generatedsources/xsd2java") // target directory for generated source coude
89
+
xsdDir = file("src/main/resources/myXsdFiles") // define to support incremental build
90
+
xsdsToGenerate = [ // 2d-array of xsds and xjc-parameters
This is a an example of a working build.gradle for a java project. You can also take a look at this projects submodule "consumer" which has a working wsdl compiling.
101
+
This is a an example of a working build.gradle for a java project. You can also take a look at this projects submodule "consumer" which has a working xsd compiling.
80
102
81
103
buildscript{
82
104
repositories{
83
105
jcenter()
84
106
mavenCentral()
85
107
}
86
108
dependencies {
87
-
classpath 'no.nils:wsdl2java:0.8'
109
+
classpath 'no.nils:xsd2java:0.6'
88
110
}
89
111
}
90
112
@@ -99,19 +121,15 @@ This is a an example of a working build.gradle for a java project. You can also
0 commit comments