ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markus innerebner <marku...@yahoo.de>
Subject Re: Class not found in taskdef
Date Sun, 20 Aug 2006 13:06:55 GMT
Thierry Rietsch wrote:
> Hi all
>
> I like to run the com.sun.tools.ws.WsGen tool from the build.xml. For
> that I defined a taskdef in my build.xml:
>
> <taskdef name="wsgen" classname="com.sun.tools.ws.WsGen">
> 	<classpath path="wsgen.classpath" />
> </taskdef>
>
> and the related classpath:
>
> <path id="wsgen.classpath">
> 	<pathelement location="${java.home}/lib/tools.jar" />
> 	<pathelement location="${java.jaxws.home}/lib/jaxws-tools.jar" />
> </path>
>
>   
Hi Thierry
if you use in the classpath element the attribute refid instead of path
you will have more success.

<taskdef name="wsgen" classname="com.sun.tools.ws.WsGen">
	<classpath *refid*="wsgen.classpath"/>
</taskdef>


regards Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message