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

Last change on this file since 4554 was 4391, checked in by olle, 10 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
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 4.5 KB
Line 
1<?xml version="1.0"?>
2<!--
3 $Id: build.xml 4391 2012-12-05 13:43:28Z olle $
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="Proteios Servlet"
30         default="dist-jar">
31  <description>Graphical interface of proteios.</description>
32  <!-- ===== Configuration ===== -->
33  <property name="src"
34            location="src" />
35  <property name="build"
36            location="build" />
37  <property name="dist"
38            location="dist" />
39  <property name="test"
40            location="test" />
41  <path id="classpath">
42    <fileset dir="../../api/external">
43      <include name="**/*.jar" />
44    </fileset>
45    <!-- Core dependency -->
46    <pathelement location="../../api/core/build" />
47    <!-- Waf dependency -->
48    <pathelement location="../../api/waf/build" />
49    <!-- Plugin dependency -->
50    <pathelement location="../../plugin/build" />
51  </path>
52  <!-- ================================= -->
53  <target name="dist-jar"
54          description="--&gt; Proteios Servlet">
55    <mkdir dir="${dist}" />
56    <jar basedir="${build}"
57         destfile="${dist}/proteios_client.jar"
58         includes="**/*.class" />
59  </target>
60  <!-- ================================= -->
61  <target name="package"
62          depends="clean, compile, dist-jar"
63          description="--&gt; Proteios Servlet">
64    <!-- Build war file -->
65    <war destfile="${dist}/proteios.war"
66         webxml="conf/web.xml">
67      <classes dir="${build}" />
68      <lib dir="../../api">
69        <include name="external/*.jar" />
70        <include name="core/dist/*.jar" />
71        <include name="waf/dist/*.jar" />
72      </lib>
73      <fileset dir="www" />
74    </war>
75  </target>
76  <!-- ================================= -->
77  <target name="compile">
78    <mkdir dir="${build}" />
79    <javac encoding="ISO-8859-1"
80           srcdir="${src}"
81           destdir="${build}"
82           classpathref="classpath"
83           debug="true"
84           deprecation="true"
85           includeantruntime="no">
86      <compilerarg value="-Xlint:unchecked" />
87    </javac>
88    <!-- Copy locale stuff. TODO Move locale stuff out of the src directory -->
89    <copy todir="${build}">
90      <fileset dir="${src}">
91        <exclude name="**/*.java" />
92      </fileset>
93    </copy>
94  </target>
95  <!-- ================================= -->
96  <target name="dev"
97          description="compiles files directly into $CATALINA_BASE/webapps/proteios/WEB-INF/classes">
98    <property environment="env"/>
99    <antcall target="compile">
100      <param name="build"
101             value="${env.CATALINA_BASE}/webapps/proteios/WEB-INF/classes"/>
102    </antcall>
103    <copy todir="${env.CATALINA_BASE}/webapps/proteios/static">
104      <fileset dir="www/static">
105        <exclude name="**/static/img/orig/**" />
106      </fileset>
107    </copy>
108  </target>
109  <!-- ================================= -->
110  <target name="clean">
111    <delete dir="${dist}" />
112    <delete dir="${build}" />
113    <delete dir="${test}/build" />
114  </target>
115
116  <!-- ================================= -->
117  <target name="clean-test">
118    <delete>
119    <fileset dir="." includes="**/TEST*"/>
120    </delete>
121  </target>
122
123  <!-- ================================= -->
124 <target name="test"
125          description="Compiles and runs all tests">
126    <ant dir="test"
127         target="compile"
128         inheritAll="false" />
129    <ant dir="test"
130         target="test"
131         inheritAll="false" />
132  </target>
133  <!-- ================================= -->
134  <target name="doc">
135    <javadoc classpathref="classpath"
136             destdir="${dist}/docs/api"
137             author="true"
138             version="true"
139             use="true"
140             windowtitle="Proteios Servlet">
141      <packageset dir="src" />
142    </javadoc>
143  </target>
144</project>
Note: See TracBrowser for help on using the repository browser.