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