-
1. Re: Ant task for wsconume, wsprovide ??
richard_opalka Sep 12, 2007 9:52 AM (in response to vashistvishal)org/jboss/wsf/spi/tools/ant/WSConsumeTask.java
org/jboss/wsf/spi/tools/ant/WSProvideTask.java -
2. Re: Ant task for wsconume, wsprovide ??
vashistvishal Sep 12, 2007 8:09 PM (in response to vashistvishal)Thanks Richard,
I was looking for this file in jbossws-src-2.0.1.GA which i downloaded to see the options which are required by ant task.
I couldnt find the source code in this bundle.
Is their any other src code bundle i should be looking at to see where these task file lives.
The bundle i downloaded is uploaded on Aug 17 -
3. Re: Ant task for wsconume, wsprovide ??
vashistvishal Sep 12, 2007 10:24 PM (in response to vashistvishal)Okiee its not in src code native bundle 92.0.1) some how but, looked at repository.
http://anonsvn.jboss.org/repos/jbossws/spi/trunk/src/main/java/org/jboss/wsf/spi/tools/ant/WSConsumeTask.java
My next question is whet is the diffrence between
option "sourcedestdir"
and option "destdir"
because when i make both of them point to same place
it generates stubs, with same structure at two diferent places
and and it looks they are linked because if you delete one structure other goes as well.
How do i make it that, both are same at same place without duplication<target name="gen_stubs"> <taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask"> <classpath> <path refid="web.services.classpath" /> </classpath> </taskdef> <wsconsume fork="true" verbose="true" sourcedestdir="${basedir}" destdir="{$basedir}" package="au.com.hello.integrate.anttask.stubs" keep="true" wsdl="GetMemberTest.wsdl"/> </target>
-
4. Re: Ant task for wsconume, wsprovide ??
richard_opalka Sep 13, 2007 5:55 AM (in response to vashistvishal)Hi,
WSConsume uses com.sun.tools.ws.wscompile.WsimportTool, internally so you can find the answer by analyzing this Sun WSDL compiler. I took a short look into it and the difference is that WsimportTool during the compiling phase generates both *.java and *class files. At the end of compilation phase if -keep option is set, the generated *.java files will be removed. (-keep option is automatically set by WSConsume tool if you'll specify sourcedestdir attribute in your ant task).
Thus if you will specify sourcedestdir, the generated *.java files will not be deleted after the compilation phase.
To answer your question: sourcedestdir points to the directory, where WsimportTool will generated *.java files, while destdir points to directory where these *.java files will be compiled to *.class files.
RIchard -
5. Re: Ant task for wsconume, wsprovide ??
vashistvishal Sep 13, 2007 10:14 AM (in response to vashistvishal)Thanks a lot Richard for clearing the air, this will be helpful to others as well.
I will try tomorrow and see how i go with it.
Thanks.