source: trunk/client/servlet/test/build.xml @ 4554

Last change on this file since 4554 was 4391, checked in by olle, 11 years ago

Refs #793. Ant build.xml files updated to refer to environment variable $CATALINA_BASE instead of $CATALINA_HOME:

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