Newer
Older
<import file="../../openbis/build/build.xml" />
<import file="../../datastore_server/build/build.xml" />
<project-classpath name="ecp" classes="${classes}" />
tpylak
committed
<project-classpath name="ecp.gwt" classes="${targets}/www/WEB-INF/classes" />
<property name="original.dist" value="dist" />
<property name="mainfolder" value="screening" />
<property name="variant" value="-screening" />
<property name="dist.screening-api" value="${dist}/screening_api" />
tpylak
committed
<property name="dist.screening-api.lib" value="${dist.screening-api}" />
<property name="dist.screening-api.jar" value="${dist.screening-api.lib}/openbis_screening_api.jar" />
tpylak
committed
<property name="dist.screening-api.src" value="${dist.screening-api}/openbis_screening_api_source.zip" />
<property name="dist.screening-api.javadoc" value="${dist.screening-api}/doc" />
tpylak
committed
<property name="dist.screening-api.javadoc.zip" value="${dist.screening-api}/openbis_screening_api_javadoc.zip" />
<property name="classes.screening" value="../screening/targets/ant/classes" />
<property name="classes.common-server" value="../server-common/targets/ant/classes" />
tpylak
committed
<property name="classes.common" value="../common/targets/ant/classes" />
<target name="compile" depends="build-common.compile, clean" />
<!--
<target name="dist" depends="openbis.make-dist, datastore_server.make-dist, screening-api" />
<!--
<target name="ci" depends="build-common.ci, dist, check-dependencies" />
<!--
<target name="compile-javascript" depends="prepare-web-client" description="Compiles the javascript using GWT compiler.">
<antcall target="compile-gwt-module">
<param name="gwt.module.name" value="ch.systemsx.cisd.openbis.plugin.screening.OpenBIS" />
</antcall>
</target>
<!--
<target name="war" depends="openbis.war" description="Creates project war file.">
<war warfile="${webapp.file}" update="true">
<classes prefix="WEB-INF/classes/screening" dir="source">
<include name="**/*.sql" />
</classes>
<classes dir="../openbis/${sources}">
<include name="**/*.xml" />
<exclude name="**/*.gwt.xml" />
</classes>
<lib dir="${lib}/jaxb">
<include name="*.jar" />
</lib>
<lib dir="${lib}/eodsql">
<include name="*.jar" />
</lib>
<lib dir="${lib}/csv">
<include name="*.jar" />
</lib>
</war>
</target>
<target name="check-dictionary-syntax" description="Parse *-dictionary.js and check that the syntax is correct.">
<antcall target="check-javascript-syntax">
<param name="javascript-file"
value="../screening/${sources}/ch/systemsx/cisd/openbis/plugin/screening/client/web/public/screening-dictionary.js" />
</antcall>
</target>
tpylak
committed
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx API xxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
access="public"
author="false"
version="false"
<include name="ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/*" />
<include name="ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/dto/*" />
<zip destfile="${dist.screening-api.javadoc.zip}">
<zipfileset dir="${dist.screening-api.javadoc}" includes="**" />
<delete dir="${dist.screening-api.javadoc}" />
tpylak
committed
<zip destfile="${dist.screening-api.src}">
<zipfileset dir="${sources}" includes="ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/dto/**" />
<zipfileset dir="${sources}" includes="ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/*Facade.java" />
</zip>
cramakri
committed
<!--
To test the API you can use
java -jar lib/openbis_screening_api.jar USER PASSWD OPENBIS_SERVER_URL
-->
<target name="screening-api-libs">
<mkdir dir="${dist.screening-api.lib}" />
<build-info revision="revision.number" version="version.number" clean="clean.flag" />
<echo file="${build.info.file}">${version.number}:${revision.number}:${clean.flag}</echo>
<recursive-jar destfile="${dist.screening-api.jar}">
<include name="ch/systemsx/cisd/openbis/dss/screening/shared/api/v1/**/*.class" />
<include name="ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/**/*.class" />
<include name="ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/**/*.class" />
<include name="${build.info.filename}" />
<attribute name="Main-Class" value="ch.systemsx.cisd.openbis.plugin.screening.client.api.v1.ScreeningClientApiTest" />
tpylak
committed
<attribute name="Class-Path" value="spring-ext.jar" />
<attribute name="Version" value="${version.number}" />
<attribute name="Build-Number"
value="${version.number} (r${revision.number},${clean.flag})" />
</manifest>
</recursive-jar>
<jar update="true" destfile="${dist.screening-api.jar}">
<fileset dir="${classes.common-server}">
tpylak
committed
<include name="ch/systemsx/cisd/common/spring/HttpInvokerUtils.class" />
tpylak
committed
<fileset dir="${classes.common}">
<include name="ch/systemsx/cisd/common/exceptions/**/*.class" />
<include name="ch/systemsx/cisd/common/io/ConcatFileOutputStreamWriter.class" />
tpylak
committed
</fileset>
</jar>
<recursive-jar destfile="${dist.screening-api.lib}/spring-ext.jar">
<zipfileset src="${lib}/spring/spring.jar" />
<zipfileset src="${lib}/spring/third-party/stream-supporting-httpinvoker.jar" />
<zipfileset src="${lib}/commons-logging/commons-logging.jar" />
<zipfileset src="${lib}/commons-httpclient/commons-httpclient.jar" />
<zipfileset src="${lib}/commons-codec/commons-codec.jar" />
<zipfileset src="${lib}/log4j/log4j.jar" />
tpylak
committed
</recursive-jar>
</target>
<target name="screening-api" depends="screening-api-doc, screening-api-libs" />
tpylak
committed
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx END API xxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ECLIPSE TEST MODE xxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
<!-- This is a copy of the openBIS version, the only difference is the value of ecp.gwt variable -->
tpylak
committed
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!--
// // Compile Java to javscript, assuming that prepare-gwt has already been run // // Must pass in module-test.path
and module-test.module as arguments // e.g., // <{property,param} name="module-test.path" value="openbis-test" /> //
<{property,param} name="module-test.module" value="ch.systemsx.cisd.openbis.OpenBIS" /> //
-->
<target name="screening-compile-module-test" description="Compile the module test mode">
<delete dir="${targets.www}/${module-test.path}" />
<java classpath="${ecp}:${ecp.gwt}:${gwt.lib}/gwt-dev.jar:${gwt.user.lib}:../openbis/${sources}:${sources}"
classname="com.google.gwt.dev.Compiler" fork="true">
<jvmarg value="-Xmx512M" />
<arg value="-war" />
<arg value="${targets.www}" />
<arg value="${module-test.module}Firefox" />
<arg value="-draftCompile" />
<arg value="-style" />
<arg value="PRETTY" />
</java>
<move todir="${targets.www}/${module-test.path}">
<fileset dir="${targets.www}/${module-test.module}" />
</move>
</target>
<!--
// // Run the production mode, assuming compile-module-test has already been run // // Must pass in
module-test.path, module-test.module, and module-test.db-kind as arguments // e.g., // <{property,param}
name="module-test.path" value="openbis-test" /> // <{property,param} name="module-test.module"
value="ch.systemsx.cisd.openbis.OpenBIS" /> //
-->
<target name="screening-run-module-test" description="Run the module test mode">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode">
<classpath>
<pathelement location="${sources}" />
<pathelement location="../openbis/${sources}" />
<pathelement path="${ecp}" />
<pathelement path="${ecp.gwt}" />
<pathelement location="${gwt.lib}/gwt-dev.jar" />
<pathelement location="${gwt.lib}/gwt-user.jar" />
</classpath>
<jvmarg value="-Xmx512M" />
<jvmarg value="-ea" />
<sysproperty key="log4j.configuration" file="etc/log.xml" />
<sysproperty key="javax.net.ssl.trustStore" file="dist/server/openBIS.keystore" />
<!-- Arguments to com.google.gwt.dev.DevMode -->
<!-- Provide two startup urls : one for the compiled version, one for the normal dev version -->
<arg value="-startupUrl" />
<arg value="${module-test.path}/index.html" />
<arg value="-startupUrl" />
<arg value="${module-test.module}/index.html" />
<arg value="${module-test.module}" />
<arg value="-war" />
<arg value="targets/www" />
<arg value="-logLevel" />
<arg value="WARN" />
</java>
</target>
<target name="screening-test-compile-and-run" description="Compile and run the screening openbis from Eclipse">
<antcall target="screening-compile-module-test">
<param name="module-test.path" value="openbis-test-screening" />
<param name="module-test.module" value="ch.systemsx.cisd.openbis.plugin.screening.OpenBIS" />
</antcall>
<antcall target="screening-test-run" />
</target>
<target name="screening-test-run" description="run the screening openbis from Eclipse">
<antcall target="screening-run-module-test">
<param name="module-test.path" value="openbis-test-screening" />
<param name="module-test.module" value="ch.systemsx.cisd.openbis.plugin.screening.OpenBIS" />
</antcall>
</target>
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx END ECLIPSE TEST MODE xxxxxxxxxxxxxxxxxxxxxxxxxxxx -->