Class CxfBuildTimeConfig.Wsdl2JavaParameterSet
- java.lang.Object
-
- io.quarkiverse.cxf.deployment.CxfBuildTimeConfig.Wsdl2JavaParameterSet
-
- Enclosing class:
- CxfBuildTimeConfig
public static class CxfBuildTimeConfig.Wsdl2JavaParameterSet extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<List<String>>additionalParamsOptional<List<String>>excludesA comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool.Optional<List<String>>includesA comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool.
-
Constructor Summary
Constructors Constructor Description Wsdl2JavaParameterSet()
-
-
-
Field Detail
-
includes
@ConfigItem public Optional<List<String>> includes
A comma separated list of glob patterns for selecting WSDL files which should be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. The glob syntax is specified inio.quarkus.util.GlobUtil.Examples:
calculator.wsdl,fruits.wsdlwill matchsrc/main/resources/calculator.wsdlandsrc/main/resources/fruits.wsdlunder the current Maven or Gradle module, but will not match anything likesrc/main/resources/subdir/calculator.wsdlmy-*-service.wsdlwill matchsrc/main/resources/my-foo-service.wsdlandsrc/main/resources/my-bar-service.wsdl**.wsdlwill match any of the above
wsdl2javaexecution for each of the matching WSDL files. If you need differentadditionalParamsfor each WSDL file, you may want to define a separate named parameter set for each one of them. Here is an example:# Parameters for foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.includes = wsdl/foo.wsdl quarkus.cxf.codegen.wsdl2java.foo-params.additional-params = -wsdlLocation,wsdl/foo.wsdl # Parameters for bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.includes = wsdl/bar.wsdl quarkus.cxf.codegen.wsdl2java.bar-params.additional-params = -wsdlLocation,wsdl/bar.wsdl,-xjc-Xts
Note that file extensions other than
.wsdlwill work during normal builds, but changes in the matching files may get overseen in Quarkus dev mode. Always using the.wsdlextension is thus recommended.There is no default value for this option, so
wsdl2javacode generation is disabled by default.Specifying
quarkus.cxf.codegen.wsdl2java.my-name.excludeswithout setting anyincludeswill cause a build time error.Make sure that the file sets selected by
quarkus.cxf.codegen.wsdl2java.includesandquarkus.cxf.codegen.wsdl2java.[whatever-name].includesdo not overlap. Otherwise a build time exception will be thrown.The files from
src/main/resourcesselected byincludesandexcludesare automatically included in native image and therefore you do not need to include them viaquarkus.cxf.wsdl-path(deprecated) orquarkus.native.resources.includes/excludes.
-
excludes
@ConfigItem public Optional<List<String>> excludes
A comma separated list of path patterns for selecting WSDL files which should not be processed withwsdl2javatool. The paths are relative tosrc/main/resourcesorsrc/test/resourcesdirectories of the current Maven or Gradle module. Same syntax asincludes.
-
additionalParams
@ConfigItem public Optional<List<String>> additionalParams
A comma separated list of additional command line parameters that should passed to CXFwsdl2javatool along with the files selected byincludesandexcludes. Example:-wsdlLocation,classpath:wsdl/CalculatorService.wsdl. Checkwsdl2javadocumentation for all supported options.You need to add
io.quarkiverse.cxf:quarkus-cxf-xjc-pluginsdependency to your project to be able to use-xjc-Xbg,-xjc-Xdv,-xjc-Xjavadoc,-xjc-Xproperty-listener,-xjc-Xtsor-xjc-Xwsdlextension.
-
-