root/branches/ds_pool/build.xml

Revision 308, 2.1 KB (checked in by martijn, 2 years ago)

Big project Reogranization:
- all modules are named with their main package name,

e.g. "picr" becomes org.bridgedb.webservice.picr,
and the jar will be org.bridgedb.webservice.picr.jar

- webservice renamed to org.bridgedb.server
- corelib is split in org.bridgedb, org.bridgedb.rdb,

org.bridgedb.webservice.biomart and org.bridgedb.webservice.bridgerest

Line 
1<?xml version="1.0"?>
2<project name="org.bridgedb.rdb" default="dist" basedir=".">
3
4  <!-- always be java 1.5 compatible -->
5  <property name="ant.build.javac.target" value="1.5"/>
6  <property name="ant.build.javac.source" value="1.5"/>
7       
8  <property name="jar.name" value="../dist/org.bridgedb.rdb.jar"/>
9 
10  <target name="prepare">
11        <mkdir dir="build"/>
12  </target>
13
14  <path id="class.path">
15    <fileset dir="../dist">
16      <include name="org.bridgedb.jar"/>
17      <include name="org.bridgedb.bio.jar"/>
18    </fileset>
19  </path>
20
21  <target name="build" depends="prepare">
22        <javac srcdir="src"
23                   includes="**"
24                   debug="true"
25                   destdir="build">
26                <classpath refid="class.path"/>
27        </javac>
28  </target>
29 
30  <target name="jar" depends="build">
31        <jar jarfile="${jar.name}">
32          <manifest>
33                <attribute name="Class-Path" value="derby.jar"/>
34          </manifest>
35          <fileset dir="build" includes="**/*.class"/>
36          <fileset dir="src" includes="**/*.properties"/>
37        </jar>
38    <copy file="lib/derby.jar"
39          todir="../dist" />
40  </target>
41
42  <target name="clean">
43        <delete dir="build"/>
44        <delete dir="doc"/>
45  </target>
46
47  <target name="dist-clean" depends="clean">
48        <delete file="${jar.name}"/>
49  </target>
50
51  <target name="dist" depends="jar"/>
52
53        <taskdef resource="checkstyletask.properties"
54                         classpath="build-lib/checkstyle-all-5.0-beta01.jar"/>
55                         
56        <target name="test" depends="build">
57                <path id="test.classpath">
58                        <path refid="class.path"/>
59                        <pathelement location="build"/>
60                        <pathelement location="lib/derby.jar"/>
61                        <pathelement location="../org.bridgedb/build-lib/junit.jar"/>
62                        <pathelement location="../org.bridgedb/build-lib/measure.jar"/>
63                        <pathelement location="build-lib/derbyclient.jar"/>
64                </path>
65                <javac srcdir="test" debug="true"
66                                        includes="**"
67                                        destdir="build"
68                                        source="1.5">
69                        <classpath refid="test.classpath"/>
70                </javac>               
71                <junit printsummary="on" haltonfailure="true" fork="true">
72                        <formatter type="brief" usefile="false"/>
73                        <classpath refid="test.classpath"/>
74                        <batchtest>
75                                <fileset dir="test">
76                                        <include name="**/*Test*.java"/>
77                                </fileset>
78                        </batchtest>
79                </junit>
80        </target>
81
82</project>
Note: See TracBrowser for help on using the browser.