1 Reply Latest reply on Feb 14, 2007 3:20 PM by Thomas Diesler

    Way to tell wstools ant-task to not regenerate all wsdl arti

    Umesh Dua Newbie

      Hi,

      I am using jboss-wstools ant task to generate my wsdl file from the Endpoint. Following is the build.xml code,

      <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
       <classpath refid="compile.classpath" />
       <classpath path="${base-jar-module}" />
       <classpath path="${services-jar-module}" />
      </taskdef>
      <wstools verbose="true" dest="${gen-src-folder}"
       config="${config}/wstools-config.xml" />
      


      wstools-config.xml looks like this,

      <configuration
       xmlns="http://www.jboss.org/jbossws-tools"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation=
       "http://www.jboss.org/jbossws-tools
       http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
       <java-wsdl>
       <service name="SecurityService" style="document"
       endpoint="com.security.services.SecurityServiceSEI"/>
       <namespaces
       target-namespace="http://org.jboss.ws/samples/jsr109ejb"
       type-namespace="http://org.jboss.ws/samples/jsr109ejb/types"/>
       <mapping file="jaxrpc-mapping.xml"/>
       <webservices ejb-link="SecurityService"/>
       </java-wsdl>
      </configuration>
      


      My question is : Every time i run the wstools task, it re-generates wsdl file and all the artifacts AGAIN even if they already exist in the generated folder. Is there some way, I can indicate wstools to do the regeneration ONLY if it's needed.

      Thanks a lot. Hoping to get a quick answer :)

      p.s. : In XDoclet there is one property called "force" which lets you specify whether you want regeneration to be forced or not.