Class WsdlOptionLoader
java.lang.Object
org.apache.cxf.maven_plugin.wsdl2java.WsdlOptionLoader
-
Method Summary
Modifier and TypeMethodDescriptionprotected static WsdlOption
generateWsdlOptionFromFile
(File wsdl, File defaultOutputDir) static List<GenericWsdlOption>
loadWsdlOptionsFromDependencies
(org.apache.maven.project.MavenProject project, File outputDir) static List<GenericWsdlOption>
loadWsdlOptionsFromFiles
(File wsdlBasedir, String[] includes, String[] excludes, File defaultOutputDir) Scan files in a directory and generate one wsdlOption per file found.
-
Method Details
-
loadWsdlOptionsFromDependencies
public static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(org.apache.maven.project.MavenProject project, File outputDir) -
loadWsdlOptionsFromFiles
public static List<GenericWsdlOption> loadWsdlOptionsFromFiles(File wsdlBasedir, String[] includes, String[] excludes, File defaultOutputDir) throws org.apache.maven.plugin.MojoExecutionException Scan files in a directory and generate one wsdlOption per file found. Extra args for code generation can be defined in a file that is named like the wsdl file and ends in -options. Binding files can be defined in files named like the wsdl file and end in -binding-*.xml- Parameters:
wsdlBasedir
-includes
- file name patterns to includeexcludes
- file name patterns to excludedefaultOutputDir
- output directory that should be used if no special file is given- Returns:
- list of one WsdlOption object for each wsdl found
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
generateWsdlOptionFromFile
protected static WsdlOption generateWsdlOptionFromFile(File wsdl, File defaultOutputDir) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-