Hi, 
- for wsdl to java you could use an javaexec task with this: 
http://cxf.apache.org/docs/wsdl-to-java.htmlTo give you an idea; I've used 
another related java executable the other way around to generate a wsdl like 
so;(ps you probably won't need all these dependencies :-)
cxfDeps = [        'org.apache.cxf:cxf-bundle:2.3.2@jar',        
'org.codehaus.woodstox:woodstox-core-asl:4.0.8@jar',        
'org.codehaus.woodstox:stax2-api:3.1.1@jar',        
'net.java.dev.msv:msv-core:2010.2@jar',        
'org.apache.ws.commons.schema:XmlSchema:1.4.7@jar',        
"wsdl4j:wsdl4j:1.6.2@jar",        
"org.apache.geronimo.specs:geronimo-servlet_2.5_spec:1.2@jar",        
"org.mortbay.jetty:jetty:6.1.21@jar",        
"org.mortbay.jetty:jetty-util:6.1.21@jar"]


dependencies {    compile 'commons-io:commons-io:2.0', cxfDeps}
task createWSDL(type: JavaExec, dependsOn: 'classes') {    main = 
'org.apache.cxf.tools.java2ws.JavaToWS'    classpath = 
sourceSets.main.runtimeClasspath    args '-verbose',            '-wsdl',        
    '-d', file('build/classes/main'),            '-address', 
'http://localhost:9000/FileDemoWSPort',            '-servicename', 
"FileDemoWS",            '-o', 'filedemows.wsdl', 
'no.mil.sample.wsfiledemo.FileDemoWS'}

cheersMagnus 

> Date: Tue, 29 Mar 2011 09:45:57 -0700
> From: [email protected]
> To: [email protected]
> Subject: [gradle-user] Re: how to call a maven plugin using gradle
> 
> actually, it's an maven cxf plugin for generation java code from wsdl, and
> also i'm planning to use the jaxb plugin also
> 
> --
> View this message in context: 
> http://gradle.1045684.n5.nabble.com/how-to-call-a-maven-plugin-using-gradle-tp4267941p4269679.html
> Sent from the gradle-user mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
                                          

Reply via email to