|
Revision 313, 1.4 KB
(checked in by martijn, 7 months ago)
|
|
Various fixes to buildsystem
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | <?xml version="1.0"?> |
|---|
| 2 | <project name="org.bridgedb.tools.batchmapper" default="jar" basedir="."> |
|---|
| 3 | |
|---|
| 4 | <property name="jar.file" value="../dist/org.bridgedb.tools.batchmapper.jar"/> |
|---|
| 5 | |
|---|
| 6 | <path id="project.class.path"> |
|---|
| 7 | <pathelement location="build"/> |
|---|
| 8 | <pathelement location="../dist/org.bridgedb.jar"/> |
|---|
| 9 | <pathelement location="../dist/org.bridgedb.bio.jar"/> |
|---|
| 10 | <!--TODO make sure corelib build is called first --> |
|---|
| 11 | </path> |
|---|
| 12 | |
|---|
| 13 | <target name="prepare"> |
|---|
| 14 | <mkdir dir="../dist"/> |
|---|
| 15 | <mkdir dir="build"/> |
|---|
| 16 | </target> |
|---|
| 17 | |
|---|
| 18 | <target name="clean" description="Remove all generated files."> |
|---|
| 19 | <delete dir="build"/> |
|---|
| 20 | </target> |
|---|
| 21 | |
|---|
| 22 | <target name="compile" depends="prepare" description="Compile all sources"> |
|---|
| 23 | <javac srcdir="src" |
|---|
| 24 | debug="true" |
|---|
| 25 | destdir="build"> |
|---|
| 26 | <classpath refid="project.class.path"/> |
|---|
| 27 | </javac> |
|---|
| 28 | </target> |
|---|
| 29 | |
|---|
| 30 | <target name="test" depends="compile" description="Test batchmapper"> |
|---|
| 31 | <!-- TODO --> |
|---|
| 32 | </target> |
|---|
| 33 | |
|---|
| 34 | <target name="jar" depends="compile"> |
|---|
| 35 | <jar jarfile="${jar.file}"> |
|---|
| 36 | <manifest> |
|---|
| 37 | <attribute name="Main-Class" value="org.bridgedb.tools.BatchMapper"/> |
|---|
| 38 | <attribute name="Class-Path" value="bridgedb.jar bridgedb-bio.jar"/> |
|---|
| 39 | </manifest> |
|---|
| 40 | <fileset dir="build" includes="**/*.class"/> |
|---|
| 41 | </jar> |
|---|
| 42 | </target> |
|---|
| 43 | |
|---|
| 44 | <target name="dist-clean" depends="clean" description="Remove all generated files."> |
|---|
| 45 | <delete file="${jar.file}"/> |
|---|
| 46 | </target> |
|---|
| 47 | |
|---|
| 48 | <target name="dist" depends="jar"/> |
|---|
| 49 | </project> |
|---|