3623 |
26 Mar 10 |
gregory |
1 |
<?xml version="1.0"?> |
3623 |
26 Mar 10 |
gregory |
2 |
<!-- |
3623 |
26 Mar 10 |
gregory |
$Id: build.xml 1744 2007-06-15 21:00:28Z gregory $ |
3623 |
26 Mar 10 |
gregory |
4 |
|
3623 |
26 Mar 10 |
gregory |
Copyright (C) 2007 Gregory Vincic, Olle Mansson |
3623 |
26 Mar 10 |
gregory |
6 |
|
3623 |
26 Mar 10 |
gregory |
Files are copyright by their respective authors. The contributions to |
3623 |
26 Mar 10 |
gregory |
files where copyright is not explicitly stated can be traced with the |
3623 |
26 Mar 10 |
gregory |
source code revision system. |
3623 |
26 Mar 10 |
gregory |
10 |
|
3623 |
26 Mar 10 |
gregory |
This file is part of Proteios. |
3623 |
26 Mar 10 |
gregory |
Available at http://www.proteios.org/ |
3623 |
26 Mar 10 |
gregory |
13 |
|
3623 |
26 Mar 10 |
gregory |
Proteios is free software; you can redistribute it and/or |
3623 |
26 Mar 10 |
gregory |
modify it under the terms of the GNU General Public License |
3623 |
26 Mar 10 |
gregory |
as published by the Free Software Foundation; either version 2 |
3623 |
26 Mar 10 |
gregory |
of the License, or (at your option) any later version. |
3623 |
26 Mar 10 |
gregory |
18 |
|
3623 |
26 Mar 10 |
gregory |
Proteios is distributed in the hope that it will be useful, |
3623 |
26 Mar 10 |
gregory |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
3623 |
26 Mar 10 |
gregory |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3623 |
26 Mar 10 |
gregory |
GNU General Public License for more details. |
3623 |
26 Mar 10 |
gregory |
23 |
|
3623 |
26 Mar 10 |
gregory |
You should have received a copy of the GNU General Public License |
3623 |
26 Mar 10 |
gregory |
along with this program; if not, write to the Free Software |
3623 |
26 Mar 10 |
gregory |
Foundation, Inc., 59 Temple Place - Suite 330, |
3623 |
26 Mar 10 |
gregory |
Boston, MA 02111-1307, USA. |
3623 |
26 Mar 10 |
gregory |
28 |
--> |
3623 |
26 Mar 10 |
gregory |
29 |
<project name="ImmunBundle" default="dist"> |
3623 |
26 Mar 10 |
gregory |
30 |
<description> |
3623 |
26 Mar 10 |
gregory |
31 |
Plugins for proteios 2.x |
3623 |
26 Mar 10 |
gregory |
32 |
</description> |
3623 |
26 Mar 10 |
gregory |
33 |
<!-- ================================ |
3623 |
26 Mar 10 |
gregory |
Configuration |
3623 |
26 Mar 10 |
gregory |
35 |
================================ --> |
3623 |
26 Mar 10 |
gregory |
36 |
<property name="name" value="immun_lth_se-0.1-bundle" /> |
3623 |
26 Mar 10 |
gregory |
37 |
<property name="src" location="src" /> |
3623 |
26 Mar 10 |
gregory |
38 |
<property name="build" location="build" /> |
4391 |
05 Dec 12 |
olle |
39 |
<property name="dist" location="${env.CATALINA_BASE}/webapps/proteios/WEB-INF/lib" /> |
3623 |
26 Mar 10 |
gregory |
40 |
<property name="test" location="test" /> |
3623 |
26 Mar 10 |
gregory |
41 |
<property environment="env" /> |
3623 |
26 Mar 10 |
gregory |
42 |
<path id="classpath"> |
4391 |
05 Dec 12 |
olle |
<!-- Point it to your tomcat installation should work nicely if you have set CATALINA_BASE --> |
4391 |
05 Dec 12 |
olle |
44 |
<fileset dir="${env.CATALINA_BASE}/webapps/proteios/WEB-INF/lib"> |
3623 |
26 Mar 10 |
gregory |
45 |
<include name="**/*.jar" /> |
3623 |
26 Mar 10 |
gregory |
46 |
</fileset> |
3623 |
26 Mar 10 |
gregory |
47 |
</path> |
3623 |
26 Mar 10 |
gregory |
48 |
|
3623 |
26 Mar 10 |
gregory |
49 |
|
3623 |
26 Mar 10 |
gregory |
50 |
<!-- ================================= |
3623 |
26 Mar 10 |
gregory |
target: dist |
3623 |
26 Mar 10 |
gregory |
52 |
================================= --> |
3623 |
26 Mar 10 |
gregory |
53 |
<target name="dist" depends="clean,compile,testVersion" description="--> Plugins"> |
3623 |
26 Mar 10 |
gregory |
54 |
<mkdir dir="${dist}" /> |
3623 |
26 Mar 10 |
gregory |
<!-- Build jar file --> |
3623 |
26 Mar 10 |
gregory |
56 |
<jar basedir="${build}" destfile="${dist}/${name}-${proteios-version}.ext.jar" includes="**/*.class" /> |
3623 |
26 Mar 10 |
gregory |
57 |
</target> |
3623 |
26 Mar 10 |
gregory |
58 |
|
3623 |
26 Mar 10 |
gregory |
59 |
<!-- - - - - - - - - - - - - - - - - - |
3623 |
26 Mar 10 |
gregory |
target: compile |
3623 |
26 Mar 10 |
gregory |
61 |
- - - - - - - - - - - - - - - - - --> |
3623 |
26 Mar 10 |
gregory |
62 |
<target name="compile"> |
3623 |
26 Mar 10 |
gregory |
63 |
<mkdir dir="${build}" /> |
3623 |
26 Mar 10 |
gregory |
64 |
<javac encoding="ISO-8859-1" srcdir="${src}" destdir="${build}" classpathref="classpath" debug="true" deprecation="true"> |
3623 |
26 Mar 10 |
gregory |
65 |
<compilerarg value="-Xlint:unchecked" /> |
3623 |
26 Mar 10 |
gregory |
66 |
</javac> |
3623 |
26 Mar 10 |
gregory |
67 |
</target> |
3623 |
26 Mar 10 |
gregory |
68 |
|
3623 |
26 Mar 10 |
gregory |
69 |
<!-- - - - - - - - - - - - - - - - - - |
3623 |
26 Mar 10 |
gregory |
target: clean |
3623 |
26 Mar 10 |
gregory |
71 |
- - - - - - - - - - - - - - - - - --> |
3623 |
26 Mar 10 |
gregory |
72 |
<target name="clean"> |
3623 |
26 Mar 10 |
gregory |
73 |
<delete dir="${dist}/${name}-${proteios-version}.ext.jar" /> |
3623 |
26 Mar 10 |
gregory |
74 |
<delete dir="${build}" /> |
3623 |
26 Mar 10 |
gregory |
75 |
<delete dir="${test}/build" /> |
3623 |
26 Mar 10 |
gregory |
76 |
</target> |
3623 |
26 Mar 10 |
gregory |
77 |
|
3623 |
26 Mar 10 |
gregory |
78 |
<!-- - - - - - - - - - - - - - - - - - |
3623 |
26 Mar 10 |
gregory |
target: test |
3623 |
26 Mar 10 |
gregory |
80 |
- - - - - - - - - - - - - - - - - --> |
3623 |
26 Mar 10 |
gregory |
81 |
<target name="test" description="Compiles and runs all tests"> |
3623 |
26 Mar 10 |
gregory |
82 |
<mkdir dir="${test}/build" /> |
3623 |
26 Mar 10 |
gregory |
83 |
<javac encoding="ISO-8859-1" srcdir="${test}/src" destdir="${test}/build" classpathref="classpath" debug="true" deprecation="true"> |
3623 |
26 Mar 10 |
gregory |
84 |
<compilerarg value="-Xlint:unchecked" /> |
3623 |
26 Mar 10 |
gregory |
85 |
</javac> |
3623 |
26 Mar 10 |
gregory |
<!-- Run tests |
3623 |
26 Mar 10 |
gregory |
All tests should run quietly unless something goes wrong. |
3623 |
26 Mar 10 |
gregory |
88 |
--> |
3623 |
26 Mar 10 |
gregory |
89 |
<junit printsummary="false" haltonfailure="true" forkmode="once" reloading="false"> |
3623 |
26 Mar 10 |
gregory |
90 |
<formatter type="brief" usefile="false" /> |
3623 |
26 Mar 10 |
gregory |
91 |
<classpath refid="classpath" /> |
3623 |
26 Mar 10 |
gregory |
92 |
<!-- |
3623 |
26 Mar 10 |
gregory |
Example |
3623 |
26 Mar 10 |
gregory |
<test name="org.proteios.plugin.TestSomePlugin" /> |
3623 |
26 Mar 10 |
gregory |
95 |
--> |
3623 |
26 Mar 10 |
gregory |
96 |
</junit> |
3623 |
26 Mar 10 |
gregory |
97 |
</target> |
3623 |
26 Mar 10 |
gregory |
98 |
|
3623 |
26 Mar 10 |
gregory |
99 |
<!-- |
3623 |
26 Mar 10 |
gregory |
Gets the version number from installed proteios |
3623 |
26 Mar 10 |
gregory |
101 |
--> |
3623 |
26 Mar 10 |
gregory |
102 |
<target name="testVersion"> |
3623 |
26 Mar 10 |
gregory |
103 |
<java classname="org.proteios.core.Application" classpathref="classpath" outputproperty="proteios-version" /> |
4391 |
05 Dec 12 |
olle |
104 |
<fail unless="proteios-version" message="Please set CATALINA_BASE and make sure proteios is installed" /> |
3623 |
26 Mar 10 |
gregory |
105 |
</target> |
3623 |
26 Mar 10 |
gregory |
106 |
|
3623 |
26 Mar 10 |
gregory |
107 |
<!-- - - - - - - - - - - - - - - - - - |
3623 |
26 Mar 10 |
gregory |
target: doc |
3623 |
26 Mar 10 |
gregory |
109 |
- - - - - - - - - - - - - - - - - --> |
3623 |
26 Mar 10 |
gregory |
110 |
<target name="doc"> |
3623 |
26 Mar 10 |
gregory |
111 |
<javadoc classpathref="classpath" destdir="${dist}/docs/api" author="true" version="true" use="true" windowtitle="${name}"> |
3623 |
26 Mar 10 |
gregory |
112 |
<packageset dir="src" /> |
3623 |
26 Mar 10 |
gregory |
113 |
</javadoc> |
3623 |
26 Mar 10 |
gregory |
114 |
</target> |
3623 |
26 Mar 10 |
gregory |
115 |
|
3623 |
26 Mar 10 |
gregory |
116 |
</project> |