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