1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 <project default="build-server" name="compbio-ws" basedir=".">
\r
6 <property name="classes" location="${basedir}/WEB-INF/classes" />
\r
7 <property name="lib.path" location="${basedir}/WEB-INF/lib" />
\r
9 <path id="classes.path">
\r
10 <pathelement location="${classes}" />
\r
13 <!-- add libraries -->
\r
14 <path id="project.classpath">
\r
15 <fileset dir="${lib.path}">
\r
16 <include name="*.jar" />
\r
20 <property name="wsdl.dir" location="${basedir}/webservices/compbio/ws/server/resource" />
\r
21 <property name="clustal.wsdl" location="${wsdl.dir}/ClustalWS.wsdl" />
\r
22 <property name="muscle.wsdl" location="${wsdl.dir}/MuscleWS.wsdl" />
\r
23 <property name="tcoffee.wsdl" location="${wsdl.dir}/TcoffeeWS.wsdl" />
\r
24 <property name="mafft.wsdl" location="${wsdl.dir}/MafftWS.wsdl" />
\r
25 <property name="aacon.wsdl" location="${wsdl.dir}/AAConWS.wsdl" />
\r
26 <property name="disembl.wsdl" location="${wsdl.dir}/DisemblWS.wsdl" />
\r
27 <property name="globplot.wsdl" location="${wsdl.dir}/GlobPlotWS.wsdl" />
\r
28 <property name="iupred.wsdl" location="${wsdl.dir}/IUPredWS.wsdl" />
\r
29 <property name="jronn.wsdl" location="${wsdl.dir}/JronnWS.wsdl" />
\r
30 <property name="registry.wsdl" location="${wsdl.dir}/RegistryWS.wsdl" />
\r
33 <taskdef name="wsgen" onerror="report" classname="com.sun.tools.ws.ant.WsGen">
\r
34 <classpath refid="project.classpath" />
\r
37 <target name="build-server">
\r
38 <!-- TODO this runs file from Eclipse, but with Ant only this need to depends on clean and build! -->
\r
39 <property name="server.artifacts.dir" location="${basedir}/webservices/compbio/ws/server/jaxws/" />
\r
41 <mkdir dir="${server.artifacts.dir}" />
\r
42 <mkdir dir="${wsdl.dir}" />
\r
43 <delete quiet="false" verbose="true" failonerror="false">
\r
44 <fileset dir="${server.artifacts.dir}">
\r
45 <include name="*.java" />
\r
47 <fileset dir="${wsdl.dir}">
\r
50 <!-- destdir - Where to put generated classes -->
\r
51 <!-- sourcedestdir - Where to put generated source files -->
\r
52 <!-- resourcedestdir - Where to put generated source files -->
\r
54 <wsgen sei="compbio.ws.server.AAConWS"
\r
55 sourcedestdir="${basedir}/webservices"
\r
56 destdir="${classes}"
\r
57 resourcedestdir="${wsdl.dir}"
\r
58 keep="true" genwsdl="true"
\r
62 <classpath refid="classes.path" />
\r
63 <classpath refid="project.classpath" />
\r
66 <wsgen sei="compbio.ws.server.ClustalWS"
\r
67 sourcedestdir="${basedir}/webservices"
\r
68 destdir="${classes}"
\r
69 resourcedestdir="${wsdl.dir}"
\r
70 keep="true" genwsdl="true"
\r
74 <classpath refid="classes.path" />
\r
75 <classpath refid="project.classpath" />
\r
77 <wsgen sei="compbio.ws.server.MuscleWS"
\r
78 sourcedestdir="${basedir}/webservices"
\r
79 destdir="${classes}"
\r
80 resourcedestdir="${wsdl.dir}"
\r
81 keep="true" genwsdl="true"
\r
85 <classpath refid="classes.path" />
\r
86 <classpath refid="project.classpath" />
\r
88 <wsgen sei="compbio.ws.server.MafftWS"
\r
89 sourcedestdir="${basedir}/webservices"
\r
90 destdir="${classes}"
\r
91 resourcedestdir="${wsdl.dir}"
\r
92 keep="true" genwsdl="true"
\r
96 <classpath refid="classes.path" />
\r
97 <classpath refid="project.classpath" />
\r
99 <wsgen sei="compbio.ws.server.TcoffeeWS"
\r
100 sourcedestdir="${basedir}/webservices"
\r
101 destdir="${classes}"
\r
102 resourcedestdir="${wsdl.dir}"
\r
103 keep="true" genwsdl="true"
\r
107 <classpath refid="classes.path" />
\r
108 <classpath refid="project.classpath" />
\r
111 <wsgen sei="compbio.ws.server.DisemblWS"
\r
112 sourcedestdir="${basedir}/webservices"
\r
113 destdir="${classes}"
\r
114 resourcedestdir="${wsdl.dir}"
\r
115 keep="true" genwsdl="true"
\r
119 <classpath refid="classes.path" />
\r
120 <classpath refid="project.classpath" />
\r
122 <wsgen sei="compbio.ws.server.GlobPlotWS"
\r
123 sourcedestdir="${basedir}/webservices"
\r
124 destdir="${classes}"
\r
125 resourcedestdir="${wsdl.dir}"
\r
126 keep="true" genwsdl="true"
\r
130 <classpath refid="classes.path" />
\r
131 <classpath refid="project.classpath" />
\r
133 <wsgen sei="compbio.ws.server.JronnWS"
\r
134 sourcedestdir="${basedir}/webservices"
\r
135 destdir="${classes}"
\r
136 resourcedestdir="${wsdl.dir}"
\r
137 keep="true" genwsdl="true"
\r
141 <classpath refid="classes.path" />
\r
142 <classpath refid="project.classpath" />
\r
144 <wsgen sei="compbio.ws.server.IUPredWS"
\r
145 sourcedestdir="${basedir}/webservices"
\r
146 destdir="${classes}"
\r
147 resourcedestdir="${wsdl.dir}"
\r
148 keep="true" genwsdl="true"
\r
152 <classpath refid="classes.path" />
\r
153 <classpath refid="project.classpath" />
\r
155 <wsgen sei="compbio.ws.server.RegistryWS"
\r
156 sourcedestdir="${basedir}/webservices"
\r
157 destdir="${classes}"
\r
158 resourcedestdir="${wsdl.dir}"
\r
159 keep="true" genwsdl="true"
\r
163 <classpath refid="classes.path" />
\r
164 <classpath refid="project.classpath" />
\r
169 <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
\r
170 <classpath refid="project.classpath" />
\r
173 <target name="build-clients">
\r
174 <property name="client.artifacts.dir" location="${basedir}/webservices/compbio/ws/client/stub" />
\r
176 <mkdir dir="${client.artifacts.dir}" />
\r
177 <delete quiet="false" verbose="true" failonerror="true">
\r
178 <fileset dir="${client.artifacts.dir}">
\r
179 <include name="*.java" />
\r
182 <wsimport wsdl="${clustal.wsdl}"
\r
183 sourcedestdir="${basedir}/webservices/"
\r
184 keep="true" extension="false"
\r
185 verbose="true" xnocompile="true"
\r
186 package="compbio.ws.client.stub"
\r
189 <wsimport wsdl="${muscle.wsdl}"
\r
190 sourcedestdir="${basedir}/webservices/"
\r
191 keep="true" extension="false"
\r
192 verbose="true" xnocompile="true"
\r
193 package="compbio.ws.client.stub"
\r
196 <wsimport wsdl="${mafft.wsdl}"
\r
197 sourcedestdir="${basedir}/webservices/"
\r
198 keep="true" extension="false"
\r
199 verbose="true" xnocompile="true"
\r
200 package="compbio.ws.client.stub"
\r
203 <wsimport wsdl="${tcoffee.wsdl}"
\r
204 sourcedestdir="${basedir}/webservices/"
\r
205 keep="true" extension="false"
\r
206 verbose="true" xnocompile="true"
\r
207 package="compbio.ws.client.stub"
\r
210 <wsimport wsdl="${iupred.wsdl}"
\r
211 sourcedestdir="${basedir}/webservices/"
\r
212 keep="true" extension="false"
\r
213 verbose="true" xnocompile="true"
\r
214 package="compbio.ws.client.stub"
\r
217 <wsimport wsdl="${registry.wsdl}"
\r
218 sourcedestdir="${basedir}/webservices/"
\r
219 keep="true" extension="false"
\r
220 verbose="true" xnocompile="true"
\r
221 package="compbio.ws.client.stub"
\r
224 <!-- <xjcarg value="-cp" />
\r
225 <xjcarg pathref="project.classpath" />
\r
226 <xjcarg value="-Xcommons-lang" /> -->
\r
233 <target name="Build artifacts from schema" description="Test task to generate JaxB commons annotated data classes DOES NOT REALLY WORK">
\r
234 <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
\r
235 <classpath refid="project.classpath" />
\r
237 <mkdir dir="${basedir}/src/test" />
\r
238 <xjc schema="${wsdl.dir}/SyncMsaWS_schema1.xsd" destdir="${basedir}/src/test">
\r
239 <arg value="-Xcommons-lang" />
\r
241 <produces dir="${basedir}/src/test" />
\r
242 <classpath refid="classes.path" />
\r
244 <fileset dir="${basedir}/lib">
\r
245 //JAXB2 Basics library
\r
246 <include name="jaxb2-basics-*.jar"/>
\r
247 // JAXB2 Basics library dependencies
\r
248 <include name="jaxb2-basics-runtime-*.jar"/>
\r
249 <include name="jaxb2-basics-tools-*.jar"/>
\r
250 <include name="commons-beanutils-*.jar"/>
\r
251 <include name="commons-lang-*.jar"/>
\r
252 <include name="commons-logging-*.jar"/>
\r
266 <target name="build-Clustal-client-from-live-server">
\r
268 <wsimport wsdl="http://localhost:7979/ClustalWS?wsdl"
\r
269 sourcedestdir="${basedir}/webservices/"
\r
274 package="compbio.ws.client.stub"
\r
279 <target name="build-Muscle-client-from-live-server">
\r
280 <wsimport wsdl="http://localhost:7979/MuscleWS?wsdl"
\r
281 sourcedestdir="${basedir}/webservices/"
\r
286 package="compbio.ws.client.stub"
\r
292 <target name="build-client-jar" description="Pack WS client into a single jar THIS IS EXAMPLE ONLY!">
\r
293 <echo>Jar file: wsclient</echo>
\r
294 <delete file="${basedir}/resources/wsclient.jar">
\r
296 <jar jarfile="${basedir}/resources/wsclient.jar">
\r
297 <fileset dir="${basedir}/WebContent/WEB-INF/classes/" includes="org/pimslims/ws/client/**/*.class" />
\r
298 <fileset dir="${classes}" includes="org/pimslims/sec/*,org/pimslims/lab/Util.class" />
\r
299 <zipfileset excludes="META-INF/*.SF" src="D:/workspace/current-pims-web/WebContent/WEB-INF/lib/webservices-rt.jar" />
\r
301 <attribute name="Built-By" value="${user.name}" />
\r
302 <attribute name="Main-Class" value="org.pimslims.ws.client.FileUploadClient" />
\r
303 <attribute name="Class-Path" value="." />
\r
304 <attribute name="Implementation-Title" value="PIMS File Upload Web Service Client" />
\r
305 <attribute name="Implementation-Vendor" value="The PIMS team" />
\r
306 <attribute name="Implementation-URL" value="http://www.pims-lims.org" />
\r
312 <target name="run-client-jar" description="THIS IS EXAMPLE ONLY">
\r
313 <java jar="${basedir}/resources/wsclient.jar" fork="true" failonerror="true" maxmemory="256m">
\r
314 <arg value="C:/Documents and Settings/pvt43/Desktop/Leeds Sequencing/Copy of Files to up load" />
\r
318 <target name="run-client-class" description="THIS IS EXAMPLE ONLY">
\r
319 <java classname="org.pimslims.ws.client.FileUploadClient" fork="true" failonerror="true" maxmemory="256m">
\r
320 <classpath refid="project.classpath" />
\r
321 <classpath refid="instrument.classpath" />
\r