I'm using the version included with JBoss AS 5.1.0.GA and it appears the wsdl
attribute is using the location of the build file as the base directory for the relative
path instead of what is defined in the basedir attribute for the ant project.
For example if I have the following ant build script located in a directory
C:/myproject/build
| <project name="MyProject" basedir="../">
| <property environment="env"/>
| <path id="jboss.client.classpath">
| <fileset dir="${JBoss.client.lib}">
| <include name="**/*.jar"/>
| </fileset>
| </path>
| <taskdef name="wsconsume"
classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask"
classpathref="jboss.client.classpath"/>
| <target name="generate-service">
| <wsconsume keep="true" package="com.whatever"
destdir="build/gen" wsdl="build/tmpxml/MyProject.wsdl"
verbose="true"/>
| </target>
| </project>
|
It appears that wsconsume is looking for the wsdl in:
c:\myproject\build\build\tmpxml\MyProject.wsdl
instead of:
c:\myproject\build\tmpxml\MyProject.wsdl
Since the basedir on the project is set to: ../ I would expect it to look for the wsdl
relative to one directory higher. In fact this is how even the destdir attribute works.
The way the wsdl attribute references files seems to be different from destdir and most
other ant tasks I've seen.
Am I completely stupid and just missing something or does this not seem right?
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240482#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...