3 <project default="main" name="compbio-ws" basedir=".">
6 <property name="classes" location="${basedir}/WEB-INF/classes" />
7 <property name="lib.path" location="${basedir}/WEB-INF/lib" />
9 <path id="classes.path">
10 <pathelement location="${classes}" />
13 <!-- add libraries -->
14 <path id="project.classpath">
15 <fileset dir="${lib.path}">
16 <include name="*.jar" />
20 <property name="wsdl.dir" location="${basedir}/webapp/resources" />
21 <property name="jpred.wsdl" location="${wsdl.dir}/JpredWS.wsdl" />
23 <taskdef name="wsgen" onerror="report" classname="com.sun.tools.ws.ant.WsGen">
24 <classpath refid="project.classpath" />
28 <!-- TODO this runs file from Eclipse, but with Ant only this need to depends on clean and build! -->
29 <property name="server.artifacts.dir" location="${basedir}/webapp/compbio/ws/jpred/jaxws/" />
31 <mkdir dir="${server.artifacts.dir}" />
32 <mkdir dir="${wsdl.dir}" />
33 <delete quiet="false" verbose="true" failonerror="false">
34 <fileset dir="${server.artifacts.dir}">
35 <include name="*.java" />
37 <fileset dir="${wsdl.dir}">
41 <!-- destdir - Where to put generated classes -->
42 <!-- sourcedestdir - Where to put generated source files -->
43 <!-- resourcedestdir - Where to put generated source files -->
44 <wsgen sei="compbio.ws.jpred.JpredWS"
45 sourcedestdir="${basedir}/webapp"
47 resourcedestdir="${wsdl.dir}"
53 <classpath refid="classes.path" />
54 <classpath refid="project.classpath" />