Hi Ken,
do add the wsgen output to your compileJava classpath you can configure
the compileJava task like this:
compileJava{
dependsOn(wsgen)
setClasspath(files("bin") + getClasspath())
}
regards,
René
Am 02.09.10 21:44, schrieb Kenneth Kousen:
> 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
>
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email