I'm trying to run the wsgen task inside gradle. The tool requires that the
directory of compiled classes be added to the classpath in order to run.
My current setup includes:
configurations {
jaxws
}
task wsgen(dependsOn: JavaPlugin.PROCESS_RESOURCES_TASK_NAME) {
doLast{
ant {
taskdef(name:'wsgen',
classname:'com.sun.tools.ws.ant.WsGen',
classpath:configurations.jaxws.asPath)
wsgen(keep:true,
destdir: 'bin',
sourcedestdir:'src',
resourcedestdir:'resources',
genwsdl:'true',
sei:'mypackage.MySIB')
}
}
}
compileJava.dependsOn(wsgen)
dependencies {
...
jaxws 'com.sun.xml.ws:jaxws-tools:2.1.4'
}
The message I get is:
error: Could not find class file for mypackage.MySIB
If I run wsgen from the command line, I need to add the 'bin' directory to
the classpath of the wsgen command. I see in the docs how to add specific
files to the classpath, but how do I add the entire directory?
Thanks,
Ken
--
Kenneth A. Kousen
President
Kousen IT, Inc.
Email: [email protected]
Site: http://www.kousenit.com
Blog: http://kousenit.wordpress.com
Twitter: @kenkousen