1 <?xml version="1.0" encoding="UTF-8"?>
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 Copyright 2008 by Sun Microsystems, Inc.
8 OpenOffice.org - a multi-platform office productivity suite
10 $RCSfile: build.xml,v $
14 This file is part of OpenOffice.org.
16 OpenOffice.org is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License version 3
18 only, as published by the Free Software Foundation.
20 OpenOffice.org is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU Lesser General Public License version 3 for more details
24 (a copy is included in the LICENSE file that accompanied this code).
26 You should have received a copy of the GNU Lesser General Public License
27 version 3 along with OpenOffice.org. If not, see
28 <http://www.openoffice.org/license.html>
29 for a copy of the LGPLv3 License.
32 <project name="receditor" default="main" basedir=".">
34 <!-- ================================================================= -->
36 <!-- ================================================================= -->
38 <!-- name of this sub target used in recursive builds -->
39 <property name="target" value="receditor"/>
41 <!-- name of jar file created, without .jar extension -->
42 <property name="jarname" value="receditor"/>
44 <!-- relative path to project directory -->
45 <property name="prj" value="."/>
47 <!-- build output directory -->
48 <property name="out" value="build"/>
50 <!-- build directories -->
51 <property name="build.dir" value="${out}"/>
52 <property name="build.class" value="${build.dir}/class/receditor"/>
53 <property name="build.misc" value="${build.dir}/misc/receditor"/>
55 <!-- start of java source code package structure -->
56 <property name="java.dir" value="java"/>
58 <!-- define how to handle CLASSPATH environment -->
59 <property name="build.sysclasspath" value="ignore"/>
61 <!-- classpath settings for compile and javadoc tasks -->
63 <pathelement location="."/>
64 <pathelement location="${build.class}"/>
67 <!-- name to display in documentation -->
68 <!-- <property name="docname" value="l10n converter"/> -->
70 <!-- set "modern" java compiler -->
71 <property name="build.compiler" value="modern"/>
73 <!-- set wether we want to compile with debug information -->
74 <property name="debug" value="on"/>
76 <!-- set wether we want to compile with optimisation -->
77 <property name="optimize" value="off"/>
79 <!-- set wether we want to compile with or without deprecation -->
80 <property name="deprecation" value="on"/>
83 <echo message="--------------------"/>
84 <echo message="${target}"/>
85 <echo message="--------------------"/>
88 <!-- ================================================================= -->
89 <!-- custom targets -->
90 <!-- ================================================================= -->
92 <!-- the main target, called in recursive builds -->
93 <target name="main" depends="info,prepare,compile,jar"/>
95 <!-- prepare output directories -->
96 <target name="prepare">
97 <mkdir dir="${build.dir}"/>
98 <mkdir dir="${build.class}"/>
99 <mkdir dir="${build.misc}"/>
103 <target name="res" depends="prepare">
104 <copy todir="${build.class}">
105 <fileset dir="${java.dir}">
106 <include name="**/*.properties"/>
107 <include name="**/*.css"/>
108 <include name="**/*.dtd"/>
109 <include name="**/*.form"/>
110 <include name="**/*.gif "/>
111 <include name="**/*.htm"/>
112 <include name="**/*.html"/>
113 <include name="**/*.js"/>
114 <include name="**/*.mod"/>
115 <include name="**/*.sql"/>
116 <include name="**/*.xml"/>
117 <include name="**/*.xsl"/>
118 <include name="**/*.map"/>
125 <target name="compile" depends="prepare,res">
126 <javac destdir="${build.class}"
128 deprecation="${deprication}"
129 optimize="${optimize}"
130 classpathref="classpath">
131 <src path="${java.dir}"/>
132 <include name="**/*.java"/>
137 <target name="clean" depends="prepare">
138 <delete includeEmptyDirs="true">
139 <fileset dir="${build.class}">
141 <include name="${package}/**/*.class"/>
147 <!-- create jar file -->
148 <target name="jar" depends="prepare,compile" if="build.class">
149 <jar jarfile="${build.class}/${jarname}.jar"
150 basedir="${build.class}"
151 manifest="${jarname}.MF">
152 <include name="**/*.class"/>
153 <include name="**/*.properties"/>
154 <include name="**/*.css"/>
155 <include name="**/*.dtd"/>
156 <include name="**/*.form"/>
157 <include name="**/*.gif "/>
158 <include name="**/*.htm"/>
159 <include name="**/*.html"/>
160 <include name="**/*.js"/>
161 <include name="**/*.mod"/>
162 <include name="**/*.sql"/>
163 <include name="**/*.xml"/>
164 <include name="**/*.xsl"/>
165 <include name="**/*.map"/>
169 <target name="test" depends="prepare">