Still not working WS for querinh proteochache (probably due to interaction with Spring)
[proteocache.git] / wsbuild.xml
diff --git a/wsbuild.xml b/wsbuild.xml
new file mode 100644 (file)
index 0000000..17b4995
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+
+<project default="main" name="compbio-ws" basedir=".">
+       
+       <!-- java -->
+               <property name="classes" location="${basedir}/WEB-INF/classes" />
+               <property name="lib.path" location="${basedir}/WEB-INF/lib" />
+
+               <path id="classes.path">
+                       <pathelement location="${classes}" />
+               </path>
+
+               <!-- add libraries -->
+               <path id="project.classpath">
+                       <fileset dir="${lib.path}">
+                               <include name="*.jar" />
+                       </fileset>
+               </path>
+
+               <property name="wsdl.dir" location="${basedir}/webapp/resources" />
+               <property name="jpred.wsdl" location="${wsdl.dir}/JpredWS.wsdl" />
+
+               <taskdef name="wsgen" onerror="report" classname="com.sun.tools.ws.ant.WsGen">
+                       <classpath refid="project.classpath" />
+               </taskdef>
+
+               <target name="main">
+                       <!-- TODO this runs file from Eclipse, but with Ant only this need to depends on clean and build! -->
+                       <property name="server.artifacts.dir" location="${basedir}/webapp/compbio/ws/jpred/jaxws/" />
+
+                       <mkdir dir="${server.artifacts.dir}" />
+                       <mkdir dir="${wsdl.dir}" />
+                       <delete quiet="false" verbose="true" failonerror="false">
+                               <fileset dir="${server.artifacts.dir}">
+                                       <include name="*.java" />
+                               </fileset>
+                               <fileset dir="${wsdl.dir}">
+                               </fileset>
+                       </delete>
+
+                       <!-- destdir - Where to put generated classes -->
+                       <!-- sourcedestdir -  Where to put generated source files -->
+                       <!-- resourcedestdir - Where to put generated source files -->
+                       <wsgen sei="compbio.ws.jpred.JpredWS"
+                                       sourcedestdir="${basedir}/webapp"
+                                       destdir="${classes}"
+                                       resourcedestdir="${wsdl.dir}"
+                                       keep="true"
+                                       genwsdl="true"
+                                       extension="false"
+                                       xendorsed="true"
+                                       verbose="true"> 
+                                       <classpath refid="classes.path" />
+                                       <classpath refid="project.classpath" />
+                       </wsgen>
+               </target>       
+       </project>