Last active
August 29, 2015 14:13
-
-
Save li-salvadorlopez/e46271127eace98ef221 to your computer and use it in GitHub Desktop.
Gradle wsdl2java ant task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: "java" | |
| repositories{ | |
| mavenCentral() | |
| } | |
| configurations { | |
| axisGenAntTask | |
| } | |
| dependencies { | |
| axisGenAntTask "org.apache.axis:axis-ant:1.4", | |
| "org.apache.axis:axis:1.4", | |
| "org.apache.axis:axis-jaxrpc:1.4", | |
| "axis:axis-wsdl4j:1.5.1", | |
| "commons-codec:commons-codec:1.3", | |
| "commons-logging:commons-logging:1.1.1", | |
| "commons-discovery:commons-discovery:0.2" | |
| } | |
| task genWsdlClasses() << { | |
| ant.echo(message:"Generating Classes for use with WSDL") | |
| ant.taskdef( | |
| name: "genClassesFromWSDL", | |
| classname: "org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask", | |
| classpath: configurations.axisGenAntTask.asPath | |
| ) | |
| //def wsdlLocation = "src/main/resources/wsdl/XYZ.wsdl" | |
| ant.genClassesFromWSDL(url:"src/main/resources/wsdl/XYZ.wsdl",output:"src/main/java",deployscope:"session",serverSide:"false", | |
| noWrapped:"true",skeletonDeploy:"false",verbose:"true",typeMappingVersion:"1.2",testcase:"no") { | |
| mapping(namespace: "urn:TestNS:XML:Jbo/01:Types", package: "com.mypackage.runtime") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment