Changeset 3881


Ignore:
Timestamp:
Oct 26, 2007, 12:41:10 PM (14 years ago)
Author:
Martin Svensson
Message:

References #492 WSDL files are now generated when running ant-target 'webservices.compile'.
The WSDL files are placed in [BASE-HOME]/misc/wsdl/.

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3865 r3881  
    117117    <classpath>
    118118      <fileset dir="${lib}/svn">
     119        <include name="**/*.jar"/>
     120      </fileset>
     121    </classpath>
     122  </taskdef>
     123 
     124  <taskdef
     125    name="java2WSDL"
     126    classname="org.apache.ws.java2wsdl.Java2WSDLTask"
     127    description="Task for creating wsdl files for the web services"
     128    >
     129    <classpath>
     130      <fileset dir="${lib}/webservices">
    119131        <include name="**/*.jar"/>
    120132      </fileset>
     
    162174        <include name="sql/**/*" />
    163175        <include name="config/**/*" />
     176      </fileset>
     177      <fileset dir="${webservices.build}" description="Webservice WSDL files">
     178          <include name="wsdl/**/*"/>
    164179      </fileset>
    165180    </copy>
     
    857872      <compilerarg value="${javac.arg}" />
    858873    </javac>
     874   
     875    <!-- Create WSDL files for services -->
     876    <webservices.wsdl serviceClassName="ArrayDesignService"/>
     877    <webservices.wsdl serviceClassName="BioAssaySetService"/>
     878    <webservices.wsdl serviceClassName="ExperimentService"/>
     879    <webservices.wsdl serviceClassName="ProjectService"/>
     880    <webservices.wsdl serviceClassName="RawBioAssayService"/>
     881    <webservices.wsdl serviceClassName="SessionService"/>
     882   
    859883    <copy todir="${webservices.build}"
    860884      description="Resource files needed by the webservices; excludes documentation and source files"
     
    867891        <exclude name="**/package.html" />
    868892      </fileset>
    869     </copy>
    870   </target>
     893    </copy>   
     894  </target>
     895 
     896  <!-- Creates a WSDL file for a Webservice class -->
     897    <macrodef name="webservices.wsdl">
     898        <attribute name="serviceClassName"/>
     899        <sequential>
     900          <java2WSDL
     901        classpath="${webservices.build};${core.build}"
     902        className="net.sf.basedb.ws.server.@{serviceClassName}"
     903        outputLocation="${webservices.build}/wsdl"     
     904        serviceName="@{serviceClassName}"
     905        outputFileName="@{serviceClassName}.wsdl"
     906        >   
     907      </java2WSDL>   
     908        </sequential>
     909    </macrodef>
    871910 
    872911  <target
     
    881920    />
    882921  </target>
    883  
    884922 
    885923  <!-- installprg targets -->
Note: See TracChangeset for help on using the changeset viewer.