1772 |
19 Jun 07 |
gregory |
1 |
<?xml version="1.0"?> |
1772 |
19 Jun 07 |
gregory |
2 |
<!-- |
1772 |
19 Jun 07 |
gregory |
$Id: build.xml 1771 2007-06-19 08:46:18Z gregory $ |
1772 |
19 Jun 07 |
gregory |
4 |
|
1916 |
31 Aug 07 |
jari |
Copyright (C) 2007 Gregory Vincic, Olle Mansson |
1772 |
19 Jun 07 |
gregory |
6 |
|
1772 |
19 Jun 07 |
gregory |
Files are copyright by their respective authors. The contributions to |
1772 |
19 Jun 07 |
gregory |
files where copyright is not explicitly stated can be traced with the |
1772 |
19 Jun 07 |
gregory |
source code revision system. |
1772 |
19 Jun 07 |
gregory |
10 |
|
1772 |
19 Jun 07 |
gregory |
This file is part of Proteios. |
1772 |
19 Jun 07 |
gregory |
Available at http://www.proteios.org/ |
1772 |
19 Jun 07 |
gregory |
13 |
|
1772 |
19 Jun 07 |
gregory |
Proteios is free software; you can redistribute it and/or |
1772 |
19 Jun 07 |
gregory |
modify it under the terms of the GNU General Public License |
1772 |
19 Jun 07 |
gregory |
as published by the Free Software Foundation; either version 2 |
1772 |
19 Jun 07 |
gregory |
of the License, or (at your option) any later version. |
1772 |
19 Jun 07 |
gregory |
18 |
|
1772 |
19 Jun 07 |
gregory |
Proteios is distributed in the hope that it will be useful, |
1772 |
19 Jun 07 |
gregory |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1772 |
19 Jun 07 |
gregory |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1772 |
19 Jun 07 |
gregory |
GNU General Public License for more details. |
1772 |
19 Jun 07 |
gregory |
23 |
|
1772 |
19 Jun 07 |
gregory |
You should have received a copy of the GNU General Public License |
1772 |
19 Jun 07 |
gregory |
along with this program; if not, write to the Free Software |
1772 |
19 Jun 07 |
gregory |
Foundation, Inc., 59 Temple Place - Suite 330, |
1772 |
19 Jun 07 |
gregory |
Boston, MA 02111-1307, USA. |
1772 |
19 Jun 07 |
gregory |
28 |
--> |
1772 |
19 Jun 07 |
gregory |
29 |
<project name="Test Core API" default="test"> |
1772 |
19 Jun 07 |
gregory |
30 |
<description> |
1772 |
19 Jun 07 |
gregory |
31 |
Test Core API |
1772 |
19 Jun 07 |
gregory |
32 |
</description> |
1772 |
19 Jun 07 |
gregory |
33 |
<!-- ================================ |
1772 |
19 Jun 07 |
gregory |
Configuration |
1772 |
19 Jun 07 |
gregory |
35 |
================================ --> |
1772 |
19 Jun 07 |
gregory |
36 |
<property name="src" location="src" /> |
1772 |
19 Jun 07 |
gregory |
37 |
<property name="build" location="build" /> |
1772 |
19 Jun 07 |
gregory |
38 |
<property name="dist" location="dist" /> |
1772 |
19 Jun 07 |
gregory |
39 |
<property name="test" location="test" /> |
3683 |
23 Apr 10 |
gregory |
40 |
<property environment="env"/> |
1772 |
19 Jun 07 |
gregory |
41 |
<path id="classpath"> |
1787 |
20 Jun 07 |
gregory |
42 |
<fileset dir="../../external"> |
1772 |
19 Jun 07 |
gregory |
43 |
<include name="**/*.jar" /> |
1772 |
19 Jun 07 |
gregory |
44 |
</fileset> |
4391 |
05 Dec 12 |
olle |
45 |
<fileset dir="${env.CATALINA_BASE}/webapps/proteios/WEB-INF/lib"> |
3716 |
25 May 10 |
gregory |
46 |
<include name="*.jar" /> |
3716 |
25 May 10 |
gregory |
47 |
</fileset> |
3683 |
23 Apr 10 |
gregory |
48 |
|
4391 |
05 Dec 12 |
olle |
49 |
<pathelement location="${env.CATALINA_BASE}/webapps/proteios/WEB-INF/classes"/> |
1787 |
20 Jun 07 |
gregory |
50 |
<dirset dir="${build}" /> |
3684 |
26 Apr 10 |
gregory |
51 |
|
1772 |
19 Jun 07 |
gregory |
52 |
</path> |
1772 |
19 Jun 07 |
gregory |
53 |
|
1772 |
19 Jun 07 |
gregory |
54 |
|
1772 |
19 Jun 07 |
gregory |
55 |
<!-- - - - - - - - - - - - - - - - - - |
1772 |
19 Jun 07 |
gregory |
target: compile |
1772 |
19 Jun 07 |
gregory |
57 |
- - - - - - - - - - - - - - - - - --> |
1787 |
20 Jun 07 |
gregory |
58 |
<target name="compile" description="Compiles all tests"> |
1772 |
19 Jun 07 |
gregory |
59 |
<mkdir dir="${build}" /> |
3684 |
26 Apr 10 |
gregory |
60 |
<mkdir dir="${build}/failingTests" /> |
1772 |
19 Jun 07 |
gregory |
61 |
<javac encoding="ISO-8859-1" srcdir="${src}" destdir="${build}" classpathref="classpath" debug="true" deprecation="true"> |
1772 |
19 Jun 07 |
gregory |
62 |
<compilerarg value="-Xlint:unchecked" /> |
1772 |
19 Jun 07 |
gregory |
63 |
</javac> |
1845 |
05 Jul 07 |
olle |
<!-- Copy test properties file to build directory --> |
1845 |
05 Jul 07 |
olle |
65 |
<copy file="${src}/test.properties" todir="${build}" /> |
1772 |
19 Jun 07 |
gregory |
66 |
</target> |
1772 |
19 Jun 07 |
gregory |
67 |
|
1772 |
19 Jun 07 |
gregory |
68 |
<!-- - - - - - - - - - - - - - - - - - |
1772 |
19 Jun 07 |
gregory |
target: clean |
1772 |
19 Jun 07 |
gregory |
70 |
- - - - - - - - - - - - - - - - - --> |
1787 |
20 Jun 07 |
gregory |
71 |
<target name="clean" description="Removes generated files"> |
1772 |
19 Jun 07 |
gregory |
72 |
<delete dir="${dist}" /> |
1772 |
19 Jun 07 |
gregory |
73 |
<delete dir="${build}" /> |
3684 |
26 Apr 10 |
gregory |
74 |
<delete> |
3684 |
26 Apr 10 |
gregory |
75 |
<fileset dir="."> |
3684 |
26 Apr 10 |
gregory |
76 |
<include name="TEST*.txt"/> |
3684 |
26 Apr 10 |
gregory |
77 |
</fileset> |
3684 |
26 Apr 10 |
gregory |
78 |
</delete> |
1772 |
19 Jun 07 |
gregory |
79 |
</target> |
1772 |
19 Jun 07 |
gregory |
80 |
|
1772 |
19 Jun 07 |
gregory |
81 |
<!-- - - - - - - - - - - - - - - - - - |
1772 |
19 Jun 07 |
gregory |
target: test |
1772 |
19 Jun 07 |
gregory |
83 |
- - - - - - - - - - - - - - - - - --> |
3716 |
25 May 10 |
gregory |
84 |
<target name="test" description="Runs all tests" depends="compile"> |
1827 |
02 Jul 07 |
olle |
<!-- Copy test properties file to build directory --> |
1827 |
02 Jul 07 |
olle |
86 |
<copy file="${src}/test.properties" todir="${build}" /> |
1772 |
19 Jun 07 |
gregory |
<!-- Run tests |
1772 |
19 Jun 07 |
gregory |
All tests should run quietly unless something goes wrong. |
1772 |
19 Jun 07 |
gregory |
89 |
--> |
3684 |
26 Apr 10 |
gregory |
90 |
<junit printsummary="true" haltonfailure="false" forkmode="once" reloading="false"> |
3683 |
23 Apr 10 |
gregory |
91 |
<formatter type="plain" /> |
1772 |
19 Jun 07 |
gregory |
92 |
<classpath refid="classpath" /> |
1785 |
20 Jun 07 |
gregory |
93 |
<batchtest> |
1785 |
20 Jun 07 |
gregory |
94 |
<fileset dir="${build}"> |
3684 |
26 Apr 10 |
gregory |
95 |
<include name="**/*Test*.class" /> |
3684 |
26 Apr 10 |
gregory |
<!-- TODO --> |
3684 |
26 Apr 10 |
gregory |
<!-- Excluding tests that are failing, either fix the tests or remove them --> |
3684 |
26 Apr 10 |
gregory |
98 |
<exclude name="**/TestMzDataExporterOnly.class" /> |
3684 |
26 Apr 10 |
gregory |
99 |
<exclude name="**/TestMzMLFileReader.class"/> |
3684 |
26 Apr 10 |
gregory |
100 |
<exclude name="**/TestMzDataImporter*.class"/> |
1785 |
20 Jun 07 |
gregory |
101 |
</fileset> |
1785 |
20 Jun 07 |
gregory |
102 |
</batchtest> |
1772 |
19 Jun 07 |
gregory |
103 |
</junit> |
1772 |
19 Jun 07 |
gregory |
104 |
</target> |
3683 |
23 Apr 10 |
gregory |
105 |
|
3684 |
26 Apr 10 |
gregory |
106 |
|
3684 |
26 Apr 10 |
gregory |
107 |
|
3683 |
23 Apr 10 |
gregory |
108 |
<target name="test-one" description="Runs one test, use this during development"> |
3683 |
23 Apr 10 |
gregory |
<!-- Copy test properties file to build directory --> |
3683 |
23 Apr 10 |
gregory |
110 |
<copy file="${src}/test.properties" todir="${build}" /> |
3683 |
23 Apr 10 |
gregory |
<!-- Run tests |
3683 |
23 Apr 10 |
gregory |
All tests should run quietly unless something goes wrong. |
3683 |
23 Apr 10 |
gregory |
113 |
--> |
3684 |
26 Apr 10 |
gregory |
114 |
<echo message="${env.TEST}"/> |
3684 |
26 Apr 10 |
gregory |
115 |
<junit printsummary="true" haltonfailure="true" forkmode="once" |
3684 |
26 Apr 10 |
gregory |
116 |
reloading="false"> |
3683 |
23 Apr 10 |
gregory |
117 |
<formatter type="plain" /> |
3683 |
23 Apr 10 |
gregory |
118 |
<classpath refid="classpath" /> |
3684 |
26 Apr 10 |
gregory |
119 |
|
3684 |
26 Apr 10 |
gregory |
120 |
<batchtest> |
3684 |
26 Apr 10 |
gregory |
121 |
<fileset dir="${build}"> |
3684 |
26 Apr 10 |
gregory |
122 |
<include name="**/*${env.TEST}*.class" /> |
3684 |
26 Apr 10 |
gregory |
123 |
</fileset> |
3684 |
26 Apr 10 |
gregory |
124 |
</batchtest> |
3684 |
26 Apr 10 |
gregory |
125 |
|
3683 |
23 Apr 10 |
gregory |
126 |
</junit> |
3683 |
23 Apr 10 |
gregory |
127 |
</target> |
3683 |
23 Apr 10 |
gregory |
128 |
|
3684 |
26 Apr 10 |
gregory |
129 |
|
1772 |
19 Jun 07 |
gregory |
130 |
</project> |