Class CxfBuildTimeConfig.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 with wsdl2java tool. The paths are relative to src/main/resources or src/test/resources directories of the current Maven or Gradle module. The glob syntax is specified in io.quarkus.util.GlobUtil.

        Examples:

        • calculator.wsdl,fruits.wsdl will match src/main/resources/calculator.wsdl and src/main/resources/fruits.wsdl under the current Maven or Gradle module, but will not match anything like src/main/resources/subdir/calculator.wsdl
        • my-*-service.wsdl will match src/main/resources/my-foo-service.wsdl and src/main/resources/my-bar-service.wsdl
        • **.wsdl will match any of the above
        There is a separate wsdl2java execution for each of the matching WSDL files. If you need different additionalParams for 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 .wsdl will work during normal builds, but changes in the matching files may get overseen in Quarkus dev mode. Always using the .wsdl extension is thus recommended.

        There is no default value for this option, so wsdl2java code generation is disabled by default.

        Specifying quarkus.cxf.codegen.wsdl2java.my-name.excludes without setting any includes will cause a build time error.

        Make sure that the file sets selected by quarkus.cxf.codegen.wsdl2java.includes and quarkus.cxf.codegen.wsdl2java.[whatever-name].includes do not overlap. Otherwise a build time exception will be thrown.

        The files from src/main/resources selected by includes and excludes are automatically included in native image and therefore you do not need to include them via quarkus.cxf.wsdl-path (deprecated) or quarkus.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 with wsdl2java tool. The paths are relative to src/main/resources or src/test/resources directories of the current Maven or Gradle module. Same syntax as includes.
      • additionalParams

        @ConfigItem
        public Optional<List<String>> additionalParams
        A comma separated list of additional command line parameters that should passed to CXF wsdl2java tool along with the files selected by includes and excludes. Example: -wsdlLocation,classpath:wsdl/CalculatorService.wsdl. Check wsdl2java documentation for all supported options.

        You need to add io.quarkiverse.cxf:quarkus-cxf-xjc-plugins dependency to your project to be able to use -xjc-Xbg, -xjc-Xdv, -xjc-Xjavadoc, -xjc-Xproperty-listener, -xjc-Xts or -xjc-Xwsdlextension.

    • Constructor Detail

      • Wsdl2JavaParameterSet

        public Wsdl2JavaParameterSet()