jaxb is also quite easy to use:
configurations {
jaxb
}
dependencies {
jaxb 'com.sun.xml.bind:jaxb-xjc:2.1.5'
}
task jaxb {
ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask',
classpath: configurations.jaxb.asPath)
actions = [
{
destDir = "$rootDir/jaxb/target/src/"
new File(destDir).mkdirs()
ant.xjc(destdir: destDir, removeOldOutput: true,
extension:true) {
schema(dir: "schemadir", includes:
"*.xsd")
binding(dir: "bindingdir", includes:
"*.xjb")
}
} as Action ]
}
cheers elmar
Am 29.03.2011 um 18:45 schrieb shadowlaw:
> 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
>
>