Created
January 16, 2015 19:16
-
-
Save li-salvadorlopez/5040ac7a9bb24ff12957 to your computer and use it in GitHub Desktop.
Gradle axis2 wsdl2code
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
configurations { | |
axisGenAntTask | |
} | |
dependencies { | |
axisGenAntTask "org.apache.axis2:axis2:1.6.2", | |
"org.apache.axis2:axis2-tools:1.1.1", | |
'org.apache.neethi:neethi:2.0.2', | |
'org.apache.ws.commons.schema:XmlSchema:1.4.7', | |
'org.apache.ws.commons.axiom:axiom-api:1.2.14', | |
'org.apache.ws.commons.axiom:axiom-impl:1.2.14' | |
} | |
task genWsdlClasses() << { | |
ant.echo(message:"Generating Classes for use with WSDL $rootDir/src/main/resources/wsdl/sample.wsdl") | |
ant.taskdef( | |
name: "genClassesFromWSDL", | |
classname: "org.apache.axis2.tool.ant.AntCodegenTask", | |
classpath: configurations.axisGenAntTask.asPath | |
) | |
ant.genClassesFromWSDL(wsdlfilename:"$rootDir/src/main/resources/wsdl/sample.wsdl",output:"src/main/generated",databindingName:"adb") { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment