root/trunk/benchmarking/build.xml

Revision 308, 2.0 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.tools.benchmarking" default="jar" basedir=".">
3       
4        <path id="project.class.path">
5                <pathelement location="build"/>
6                <fileset dir="lib">
7                        <include name="*.jar"/>
8                </fileset>
9                <pathelement location="../dist/org.bridgedb.jar"/>
10                <pathelement location="../dist/derby.jar"/>
11                <!--TODO make sure corelib build is called first -->
12        </path>
13
14        <path id="class.path">
15                <fileset dir="../dist">
16                        <include name="*.jar"/>
17                </fileset>
18                <fileset dir="lib">
19                        <include name="*.jar"/>
20                </fileset>
21        </path>
22
23        <target name="prepare">
24                <mkdir dir="build"/>
25        </target>
26       
27        <target name="clean" description="Remove all generated files.">
28                <delete dir="${build.dir}"/>
29        </target>
30       
31        <target name="build" depends="prepare" description="Compile all sources">
32                <javac srcdir="src"
33                            debug="true"       
34                            destdir="build">
35                        <classpath refid="class.path"/>
36                </javac>
37        </target>
38       
39        <target name="jar" depends="build">
40                <mkdir dir="dist"/>
41                <jar jarfile="dist/checker.jar">
42                        <manifest>
43                                <attribute name="Main-Class" value="org.bridgedb.checker.Checker"/>
44                                <attribute name="Class-Path" value="bridgedb.jar google-collect-snapshot-20080820.jar"/>
45                        </manifest>
46                        <fileset dir="build" includes="**/*.class"/>
47                </jar>
48        </target>
49       
50        <target name="dist" depends="jar"/>
51
52        <target name="test" depends="build">
53                <path id="test.classpath">
54                        <path refid="class.path"/>
55                        <pathelement location="build"/>
56                        <pathelement location="../corelib/build-lib/junit.jar"/>
57                        <pathelement location="../corelib/build-lib/measure.jar"/>
58                        <pathelement location="../corelib/build-lib/derbyclient.jar"/>
59                </path>
60                <javac srcdir="test" debug="true"
61                                        includes="**"
62                                        destdir="build"
63                                        source="1.5">
64                        <classpath refid="test.classpath"/>
65                </javac>               
66                <junit printsummary="on" haltonfailure="false" fork="true">
67                        <formatter type="brief" usefile="false"/>
68                        <classpath refid="test.classpath"/>
69                        <batchtest>
70                                <fileset dir="test">
71                                        <include name="**/*Test*.java"/>
72                                </fileset>
73                        </batchtest>
74                </junit>
75        </target>
76       
77</project>
Note: See TracBrowser for help on using the browser.