1ade3f226SDamjan Jovanovic<?xml version="1.0" encoding="UTF-8"?> 2ade3f226SDamjan Jovanovic<!--*********************************************************** 3ade3f226SDamjan Jovanovic * 4ade3f226SDamjan Jovanovic * Licensed to the Apache Software Foundation (ASF) under one 5ade3f226SDamjan Jovanovic * or more contributor license agreements. See the NOTICE file 6ade3f226SDamjan Jovanovic * distributed with this work for additional information 7ade3f226SDamjan Jovanovic * regarding copyright ownership. The ASF licenses this file 8ade3f226SDamjan Jovanovic * to you under the Apache License, Version 2.0 (the 9ade3f226SDamjan Jovanovic * "License"); you may not use this file except in compliance 10ade3f226SDamjan Jovanovic * with the License. You may obtain a copy of the License at 11ade3f226SDamjan Jovanovic * 12ade3f226SDamjan Jovanovic * http://www.apache.org/licenses/LICENSE-2.0 13ade3f226SDamjan Jovanovic * 14ade3f226SDamjan Jovanovic * Unless required by applicable law or agreed to in writing, 15ade3f226SDamjan Jovanovic * software distributed under the License is distributed on an 16ade3f226SDamjan Jovanovic * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17ade3f226SDamjan Jovanovic * KIND, either express or implied. See the License for the 18ade3f226SDamjan Jovanovic * specific language governing permissions and limitations 19ade3f226SDamjan Jovanovic * under the License. 20ade3f226SDamjan Jovanovic * 21ade3f226SDamjan Jovanovic ***********************************************************--> 22ade3f226SDamjan Jovanovic 23ade3f226SDamjan Jovanovic 24ade3f226SDamjan Jovanovic<project name="sdbc_hsqldb" default="main" basedir="."> 25ade3f226SDamjan Jovanovic 26ade3f226SDamjan Jovanovic <!-- ================================================================= --> 27ade3f226SDamjan Jovanovic <!-- settings --> 28ade3f226SDamjan Jovanovic <!-- ================================================================= --> 29ade3f226SDamjan Jovanovic 30ade3f226SDamjan Jovanovic <!-- global properties --> 31ade3f226SDamjan Jovanovic <property file="../../../ant.properties"/> 32ade3f226SDamjan Jovanovic <!-- version info --> 33ade3f226SDamjan Jovanovic <property file="../../../solenv/inc/minor.mk"/> 34ade3f226SDamjan Jovanovic 35ade3f226SDamjan Jovanovic <!-- name of this sub target used in recursive builds --> 36ade3f226SDamjan Jovanovic <property name="target" value="sdbc_hsqldb"/> 37ade3f226SDamjan Jovanovic 38ade3f226SDamjan Jovanovic <!-- name of jar file created, without .jar extension --> 39ade3f226SDamjan Jovanovic <property name="jarname" value="sdbc_hsqldb"/> 40ade3f226SDamjan Jovanovic 41ade3f226SDamjan Jovanovic <!-- relative path to project directory --> 42ade3f226SDamjan Jovanovic <property name="prj" value="../.."/> 43ade3f226SDamjan Jovanovic 44ade3f226SDamjan Jovanovic <!-- build output directory --> 45ade3f226SDamjan Jovanovic <!-- FIXME: there are also extremely rare/obsolete dbcs/bndchk/truetime/hbtoolkit cases in main/solenv/inc/settings.mk --> 46ade3f226SDamjan Jovanovic <condition property="out" value="${prj}/${OUTPATH}.cap"> 47ade3f226SDamjan Jovanovic <isset property="${profile}"/> 48ade3f226SDamjan Jovanovic </condition> 49ade3f226SDamjan Jovanovic <condition property="out" value="${prj}/${OUTPATH}.pro"> 50ade3f226SDamjan Jovanovic <isset property="${PRODUCT}"/> 51ade3f226SDamjan Jovanovic </condition> 52ade3f226SDamjan Jovanovic <property name="out" value="${prj}/${OUTPATH}"/> 53ade3f226SDamjan Jovanovic 54ade3f226SDamjan Jovanovic <!-- build directories --> 55ade3f226SDamjan Jovanovic <property name="build.dir" value="${out}"/> 56ade3f226SDamjan Jovanovic <property name="build.class" value="${build.dir}/class/${target}"/> 57ade3f226SDamjan Jovanovic <property name="build.misc" value="${build.dir}/misc/${target}"/> 58ade3f226SDamjan Jovanovic 59ade3f226SDamjan Jovanovic <!-- start of java source code package structure --> 60ade3f226SDamjan Jovanovic <property name="java.dir" value="src"/> 61ade3f226SDamjan Jovanovic 62ade3f226SDamjan Jovanovic <!-- define how to handle CLASSPATH environment --> 63ade3f226SDamjan Jovanovic <property name="build.sysclasspath" value="ignore"/> 64ade3f226SDamjan Jovanovic 65ade3f226SDamjan Jovanovic <!-- classpath settings for compile and javadoc tasks --> 66ade3f226SDamjan Jovanovic <condition property="jar-class-path" value="${HSQLDB_JAR}" else="hsqldb.jar"> 67ade3f226SDamjan Jovanovic <equals arg1="${SYSTEM_HSQLDB}" arg2="YES"/> 68ade3f226SDamjan Jovanovic </condition> 69ade3f226SDamjan Jovanovic <property name="HSQLDB_JAR" value="${OUTDIR}/bin/hsqldb.jar"/> 70ade3f226SDamjan Jovanovic <path id="classpath"> 71ade3f226SDamjan Jovanovic <!-- 3rd party libs --> 72ade3f226SDamjan Jovanovic <pathelement location="${HSQLDB_JAR}"/> 73ade3f226SDamjan Jovanovic </path> 74ade3f226SDamjan Jovanovic 75ade3f226SDamjan Jovanovic <!-- name to display in documentation --> 76ade3f226SDamjan Jovanovic <property name="docname" value="sdbc_hsqldb"/> 77ade3f226SDamjan Jovanovic 78ade3f226SDamjan Jovanovic <!-- set "modern" java compiler --> 79ade3f226SDamjan Jovanovic <property name="build.compiler" value="modern"/> 80ade3f226SDamjan Jovanovic 81*74cbd1f1SMatthias Seidel <!-- set whether we want to compile with debug information --> 82ade3f226SDamjan Jovanovic <property name="debug" value="on"/> 83ade3f226SDamjan Jovanovic 84*74cbd1f1SMatthias Seidel <!-- set whether we want to compile with optimisation --> 85ade3f226SDamjan Jovanovic <property name="optimize" value="off"/> 86ade3f226SDamjan Jovanovic 87*74cbd1f1SMatthias Seidel <!-- set whether we want to compile with or without deprecation --> 88ade3f226SDamjan Jovanovic <property name="deprecation" value="on"/> 89ade3f226SDamjan Jovanovic 90ade3f226SDamjan Jovanovic <target name="info"> 91ade3f226SDamjan Jovanovic <echo message="--------------------"/> 92ade3f226SDamjan Jovanovic <echo message="${target}"/> 93ade3f226SDamjan Jovanovic <echo message="--------------------"/> 94ade3f226SDamjan Jovanovic </target> 95ade3f226SDamjan Jovanovic 96ade3f226SDamjan Jovanovic <!-- ================================================================= --> 97ade3f226SDamjan Jovanovic <!-- custom targets --> 98ade3f226SDamjan Jovanovic <!-- ================================================================= --> 99ade3f226SDamjan Jovanovic 100ade3f226SDamjan Jovanovic <!-- the main target, called in recursive builds --> 101ade3f226SDamjan Jovanovic <target name="main" depends="info,prepare,compile,jar,javadoc,zipdoc"/> 102ade3f226SDamjan Jovanovic 103ade3f226SDamjan Jovanovic <!-- prepare output directories --> 104ade3f226SDamjan Jovanovic <target name="prepare"> 105ade3f226SDamjan Jovanovic <mkdir dir="${build.dir}"/> 106ade3f226SDamjan Jovanovic <mkdir dir="${build.dir}/doc/${target}"/> 107ade3f226SDamjan Jovanovic <mkdir dir="${build.class}"/> 108ade3f226SDamjan Jovanovic <mkdir dir="${build.misc}"/> 109ade3f226SDamjan Jovanovic </target> 110ade3f226SDamjan Jovanovic 111ade3f226SDamjan Jovanovic 112ade3f226SDamjan Jovanovic <target name="res" depends="prepare"> 113ade3f226SDamjan Jovanovic <copy todir="${build.class}"> 114ade3f226SDamjan Jovanovic <fileset dir="${java.dir}"> 115ade3f226SDamjan Jovanovic <include name="**/*.properties"/> 116ade3f226SDamjan Jovanovic <include name="**/*.css"/> 117ade3f226SDamjan Jovanovic <include name="**/*.dtd"/> 118ade3f226SDamjan Jovanovic <include name="**/*.form"/> 119ade3f226SDamjan Jovanovic <include name="**/*.gif "/> 120ade3f226SDamjan Jovanovic <include name="**/*.htm"/> 121ade3f226SDamjan Jovanovic <include name="**/*.html"/> 122ade3f226SDamjan Jovanovic <include name="**/*.js"/> 123ade3f226SDamjan Jovanovic <include name="**/*.mod"/> 124ade3f226SDamjan Jovanovic <include name="**/*.sql"/> 125ade3f226SDamjan Jovanovic <include name="**/*.xml"/> 126ade3f226SDamjan Jovanovic <include name="**/*.xsl"/> 127ade3f226SDamjan Jovanovic <include name="**/*.map"/> 128ade3f226SDamjan Jovanovic 129ade3f226SDamjan Jovanovic </fileset> 130ade3f226SDamjan Jovanovic </copy> 131ade3f226SDamjan Jovanovic </target> 132ade3f226SDamjan Jovanovic 133ade3f226SDamjan Jovanovic 134ade3f226SDamjan Jovanovic <target name="compile" depends="prepare,res"> 135ade3f226SDamjan Jovanovic <javac destdir="${build.class}" 136ade3f226SDamjan Jovanovic debug="${debug}" 137ade3f226SDamjan Jovanovic deprecation="${deprecation}" 138ade3f226SDamjan Jovanovic optimize="${optimize}" 139ade3f226SDamjan Jovanovic classpathref="classpath"> 140ade3f226SDamjan Jovanovic <src path="${java.dir}"/> 141ade3f226SDamjan Jovanovic <include name="**/*.java"/> 142ade3f226SDamjan Jovanovic </javac> 143ade3f226SDamjan Jovanovic </target> 144ade3f226SDamjan Jovanovic 145ade3f226SDamjan Jovanovic <!-- check if javadoc is up to date --> 146ade3f226SDamjan Jovanovic <target name="javadoc_check" depends="prepare" if="build.dir"> 147ade3f226SDamjan Jovanovic <uptodate property="javadocBuild.notRequired" value="true" 148ade3f226SDamjan Jovanovic targetfile="${build.dir}/doc/${target}/${target}_javadoc.zip"> 149ade3f226SDamjan Jovanovic <srcfiles dir="${java.dir}" includes="**/*.java"/> 150ade3f226SDamjan Jovanovic </uptodate> 151ade3f226SDamjan Jovanovic </target> 152ade3f226SDamjan Jovanovic 153ade3f226SDamjan Jovanovic <!-- generate java documentation --> 154ade3f226SDamjan Jovanovic <target name="javadoc" depends="prepare,javadoc_check,compile" 155ade3f226SDamjan Jovanovic unless="javadocBuild.notRequired" 156ade3f226SDamjan Jovanovic if="build.dir"> 157ade3f226SDamjan Jovanovic 158ade3f226SDamjan Jovanovic <javadoc destdir="${build.dir}/doc/${target}/javadoc" 159ade3f226SDamjan Jovanovic verbose="false" 160ade3f226SDamjan Jovanovic author="false" 161ade3f226SDamjan Jovanovic nodeprecated="true" 162ade3f226SDamjan Jovanovic nodeprecatedlist="true" 163ade3f226SDamjan Jovanovic use="true" 164ade3f226SDamjan Jovanovic Doctitle="${docname}" 165ade3f226SDamjan Jovanovic windowtitle="${docname}" 166ade3f226SDamjan Jovanovic classpathref="classpath"> 167ade3f226SDamjan Jovanovic 168ade3f226SDamjan Jovanovic <packageset dir="${java.dir}" defaultexcludes="yes"> 169ade3f226SDamjan Jovanovic <include name="com/**"/> 170ade3f226SDamjan Jovanovic <include name="org/**"/> 171ade3f226SDamjan Jovanovic </packageset> 172ade3f226SDamjan Jovanovic 173ade3f226SDamjan Jovanovic <link offline="true" href="http://java.sun.com/j2se/1.4.2/docs/api" 174ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/jdk1.4.2"/> 175ade3f226SDamjan Jovanovic <link offline="true" 176ade3f226SDamjan Jovanovic href="http://java.sun.com/products/servlet/2.3/javadoc" 177ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/servlet2.3"/> 178ade3f226SDamjan Jovanovic <link offline="true" 179ade3f226SDamjan Jovanovic href="http://logging.apache.org/log4j/docs/api" 180ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/log4j-1.2.8"/> 181ade3f226SDamjan Jovanovic <link offline="true" 182ade3f226SDamjan Jovanovic href="http://java.sun.com/products/javabeans/glasgow/javadocs" 183ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/jaf-1.0.2"/> 184ade3f226SDamjan Jovanovic <link offline="true" 185ade3f226SDamjan Jovanovic href="http://java.sun.com/products/javamail/javadocs" 186ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/javamail-1.3.1"/> 187ade3f226SDamjan Jovanovic <link offline="true" 188ade3f226SDamjan Jovanovic href="http://ws.apache.org/soap/docs" 189ade3f226SDamjan Jovanovic packagelistLoc="${common.doc}/soap-2.3.1"/> 190ade3f226SDamjan Jovanovic 191ade3f226SDamjan Jovanovic <bottom><i>Copyright &#169; 2004 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA</i></bottom> 192ade3f226SDamjan Jovanovic <header>${docname}</header> 193ade3f226SDamjan Jovanovic 194ade3f226SDamjan Jovanovic </javadoc> 195ade3f226SDamjan Jovanovic </target> 196ade3f226SDamjan Jovanovic 197ade3f226SDamjan Jovanovic <!-- zip documentation and store in build/doc/${target} --> 198ade3f226SDamjan Jovanovic <target name="zipdoc" depends="javadoc" if="build.dir" unless="javadocBuild.notRequired"> 199ade3f226SDamjan Jovanovic <zip zipfile="${build.dir}/doc/${target}/${target}_javadoc.zip" 200ade3f226SDamjan Jovanovic basedir="${build.dir}/doc/${target}/javadoc" 201ade3f226SDamjan Jovanovic update="true"/> 202ade3f226SDamjan Jovanovic </target> 203ade3f226SDamjan Jovanovic 204ade3f226SDamjan Jovanovic <!-- clean up --> 205ade3f226SDamjan Jovanovic <target name="clean" depends="prepare"> 206ade3f226SDamjan Jovanovic <delete dir="${build.class}" includeEmptyDirs="true"/> 207ade3f226SDamjan Jovanovic <delete dir="${build.dir}/doc/${target}" includeEmptyDirs="true"/> 208ade3f226SDamjan Jovanovic </target> 209ade3f226SDamjan Jovanovic 210ade3f226SDamjan Jovanovic <!-- create jar file --> 211ade3f226SDamjan Jovanovic <target name="jar" depends="prepare,compile" if="build.class"> 212ade3f226SDamjan Jovanovic <jar jarfile="${build.class}/${jarname}.jar" 213ade3f226SDamjan Jovanovic basedir="${build.class}"> 214ade3f226SDamjan Jovanovic <manifest> 215ade3f226SDamjan Jovanovic <attribute name="Class-Path" value="${jar-class-path} .."/> 216ade3f226SDamjan Jovanovic <attribute name="Solar-Version" value="${RSCREVISION}"/> 217ade3f226SDamjan Jovanovic </manifest> 218ade3f226SDamjan Jovanovic <include name="**/*.class"/> 219ade3f226SDamjan Jovanovic <include name="**/*.properties"/> 220ade3f226SDamjan Jovanovic <include name="**/*.css"/> 221ade3f226SDamjan Jovanovic <include name="**/*.dtd"/> 222ade3f226SDamjan Jovanovic <include name="**/*.form"/> 223ade3f226SDamjan Jovanovic <include name="**/*.gif "/> 224ade3f226SDamjan Jovanovic <include name="**/*.htm"/> 225ade3f226SDamjan Jovanovic <include name="**/*.html"/> 226ade3f226SDamjan Jovanovic <include name="**/*.js"/> 227ade3f226SDamjan Jovanovic <include name="**/*.mod"/> 228ade3f226SDamjan Jovanovic <include name="**/*.sql"/> 229ade3f226SDamjan Jovanovic <include name="**/*.xml"/> 230ade3f226SDamjan Jovanovic <include name="**/*.xsl"/> 231ade3f226SDamjan Jovanovic <include name="**/*.map"/> 232ade3f226SDamjan Jovanovic </jar> 233ade3f226SDamjan Jovanovic </target> 234ade3f226SDamjan Jovanovic 235ade3f226SDamjan Jovanovic <target name="test" depends="prepare"> 236ade3f226SDamjan Jovanovic </target> 237ade3f226SDamjan Jovanovic 238ade3f226SDamjan Jovanovic</project> 239ade3f226SDamjan Jovanovic 240