1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22
23
24<project name="receditor" default="main" basedir=".">
25
26    <!-- ================================================================= -->
27    <!-- settings                                                          -->
28    <!-- ================================================================= -->
29
30    <!-- name of this sub target used in recursive builds -->
31    <property name="target" value="receditor"/>
32
33    <!-- name of jar file created, without .jar extension -->
34    <property name="jarname" value="receditor"/>
35
36    <!-- relative path to project directory -->
37    <property name="prj" value="."/>
38
39    <!-- build output directory -->
40    <property name="out" value="build"/>
41
42    <!-- build directories -->
43    <property name="build.dir" value="${out}"/>
44    <property name="build.class" value="${build.dir}/class/receditor"/>
45    <property name="build.misc" value="${build.dir}/misc/receditor"/>
46
47    <!-- start of java source code package structure -->
48    <property name="java.dir" value="java"/>
49
50    <!-- define how to handle CLASSPATH environment -->
51    <property name="build.sysclasspath" value="ignore"/>
52
53    <!-- classpath settings for compile and javadoc tasks -->
54    <path id="classpath">
55        <pathelement location="."/>
56        <pathelement location="${build.class}"/>
57    </path>
58
59    <!-- name to display in documentation -->
60    <!--    <property name="docname" value="l10n converter"/> -->
61
62    <!-- set "modern" java compiler -->
63    <property name="build.compiler" value="modern"/>
64
65    <!-- set wether we want to compile with debug information -->
66    <property name="debug" value="on"/>
67
68    <!-- set wether we want to compile with optimisation -->
69    <property name="optimize" value="off"/>
70
71    <!-- set wether we want to compile with or without deprecation -->
72    <property name="deprecation" value="on"/>
73
74    <target name="info">
75        <echo message="--------------------"/>
76        <echo message="${target}"/>
77        <echo message="--------------------"/>
78    </target>
79
80    <!-- ================================================================= -->
81    <!-- custom targets                                                    -->
82    <!-- ================================================================= -->
83
84    <!-- the main target, called in recursive builds -->
85    <target name="main" depends="info,prepare,compile,jar"/>
86
87    <!-- prepare output directories -->
88    <target name="prepare">
89        <mkdir dir="${build.dir}"/>
90        <mkdir dir="${build.class}"/>
91        <mkdir dir="${build.misc}"/>
92    </target>
93
94
95    <target name="res" depends="prepare">
96        <copy todir="${build.class}">
97             <fileset dir="${java.dir}">
98                 <include name="**/*.properties"/>
99                 <include name="**/*.css"/>
100                 <include name="**/*.dtd"/>
101                 <include name="**/*.form"/>
102                 <include name="**/*.gif "/>
103                 <include name="**/*.htm"/>
104                 <include name="**/*.html"/>
105                 <include name="**/*.js"/>
106                 <include name="**/*.mod"/>
107                 <include name="**/*.sql"/>
108                 <include name="**/*.xml"/>
109                 <include name="**/*.xsl"/>
110                 <include name="**/*.map"/>
111
112             </fileset>
113	    </copy>
114    </target>
115
116
117    <target name="compile" depends="prepare,res">
118	<javac destdir="${build.class}"
119	       debug="${debug}"
120               deprecation="${deprication}"
121	       optimize="${optimize}"
122	       classpathref="classpath">
123            <src path="${java.dir}"/>
124	    <include name="**/*.java"/>
125	</javac>
126    </target>
127
128    <!-- clean up -->
129    <target name="clean" depends="prepare">
130        <delete includeEmptyDirs="true">
131            <fileset dir="${build.class}">
132                <patternset>
133                    <include name="${package}/**/*.class"/>
134                </patternset>
135            </fileset>
136        </delete>
137    </target>
138
139    <!-- create jar file -->
140    <target name="jar" depends="prepare,compile" if="build.class">
141        <jar jarfile="${build.class}/${jarname}.jar"
142             basedir="${build.class}"
143             manifest="${jarname}.MF">
144                 <include name="**/*.class"/>
145                 <include name="**/*.properties"/>
146                 <include name="**/*.css"/>
147                 <include name="**/*.dtd"/>
148                 <include name="**/*.form"/>
149                 <include name="**/*.gif "/>
150                 <include name="**/*.htm"/>
151                 <include name="**/*.html"/>
152                 <include name="**/*.js"/>
153                 <include name="**/*.mod"/>
154                 <include name="**/*.sql"/>
155                 <include name="**/*.xml"/>
156                 <include name="**/*.xsl"/>
157                 <include name="**/*.map"/>
158        </jar>
159    </target>
160
161    <target name="test" depends="prepare">
162    </target>
163
164</project>
165
166