2007-04-21 17:14:44 +00:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1' ?>
|
|
|
|
|
|
|
|
|
|
<!--
|
2007-11-08 23:38:29 +00:00
|
|
|
|
2007-05-22 21:47:09 +00:00
|
|
|
Ant build script for log4jdbc
|
|
|
|
|
|
2007-07-24 21:47:11 +00:00
|
|
|
Tested with Apache Ant version 1.6.5 & 1.7
|
2007-05-22 21:47:09 +00:00
|
|
|
|
2009-02-26 02:46:34 +00:00
|
|
|
built with jdk 1.4.2_13 (for use with jdbc3)
|
2007-07-24 21:47:11 +00:00
|
|
|
and/or jdk 1.6.0 (for use with jdbc4)
|
2007-11-08 23:38:29 +00:00
|
|
|
|
2014-11-26 08:20:25 -05:00
|
|
|
Copyright 2007-2015 Arthur Blake
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2008-04-12 02:42:42 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2008-04-12 02:42:42 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2008-04-12 02:42:42 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
2007-04-21 17:14:44 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<project name="log4jdbc" default="all" basedir="..">
|
|
|
|
|
|
2007-07-24 21:47:11 +00:00
|
|
|
<!-- the jdbc.level flag should be set externally to either 3 or 4
|
2009-02-26 02:46:34 +00:00
|
|
|
|
|
|
|
|
this is the jdbc version and should be 3 if using a jdk 1.4 or 1.5
|
|
|
|
|
|
2007-07-24 21:47:11 +00:00
|
|
|
the jdbc.level flag should be set to 4 if using a jdk 1.6 or greater.
|
|
|
|
|
|
2009-02-26 02:46:34 +00:00
|
|
|
defaults to jdbc3 build if not set externally
|
|
|
|
|
|
2007-11-08 23:38:29 +00:00
|
|
|
therefore to build both, ant should be invoked twice, setting the jdbc.level externally
|
|
|
|
|
to 3 and then 4. and using the jdk 1.4 and then 1.6.
|
2007-07-24 21:47:11 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<property name="jdbc.level" value="3" />
|
2009-02-26 02:46:34 +00:00
|
|
|
<property name="jvm.ver" value="1.4" />
|
2007-07-24 21:47:11 +00:00
|
|
|
<property name="jdbc.prefix" value="jdbc${jdbc.level}" />
|
|
|
|
|
|
|
|
|
|
<property name="src" value="src-${jdbc.prefix}" />
|
|
|
|
|
<property name="classes" value="classes-${jdbc.prefix}" />
|
|
|
|
|
<property name="apidocs" value="doc/apidocs-${jdbc.prefix}" />
|
|
|
|
|
|
2007-04-21 17:14:44 +00:00
|
|
|
|
2007-05-22 21:47:09 +00:00
|
|
|
<!-- release version -->
|
2015-09-30 12:25:14 -04:00
|
|
|
<property name="version" value="1.3"/>
|
2007-07-24 21:47:11 +00:00
|
|
|
|
|
|
|
|
<target name="all" depends="cleancompile,compile,cleanjar,jar"/>
|
|
|
|
|
|
2009-02-26 02:46:34 +00:00
|
|
|
<!--
|
2007-11-09 03:48:42 +00:00
|
|
|
The ydoc.home.3 and ydoc.home.4 properties are only used for the ydoc.3
|
|
|
|
|
and ydoc.4 targets for producing javadoc with UML
|
2009-02-26 02:46:34 +00:00
|
|
|
|
|
|
|
|
it requires the commercial ydoc utility
|
2007-11-09 03:48:42 +00:00
|
|
|
(see http://www.yworks.com/en/products_ydoc.htm)
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2007-11-09 03:48:42 +00:00
|
|
|
use the javadoc target to generate regular javadoc
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2007-07-25 23:27:42 +00:00
|
|
|
ydoc.home.3 is for jdk1.4 / JDBC 3
|
|
|
|
|
ydoc.home.4 is for jdk1.6 / JDBC 4
|
2007-05-22 21:47:09 +00:00
|
|
|
-->
|
2007-07-25 23:27:42 +00:00
|
|
|
<property name="ydoc.home.3" value="/ydoc-2.2_04"/>
|
|
|
|
|
<property name="ydoc.home.4" value="/ydoc-2.2_04-jdk1.5"/>
|
2007-04-21 17:14:44 +00:00
|
|
|
|
|
|
|
|
<target name="compile" description="compile all the source code">
|
2009-02-26 02:46:34 +00:00
|
|
|
<javac source="${jvm.ver}" target="${jvm.ver}" srcdir="${src}" destdir="${classes}"
|
2010-05-10 20:31:46 +00:00
|
|
|
deprecation="true" debug="true" includeAntRuntime="false">
|
2007-04-21 17:14:44 +00:00
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="$src"/>
|
|
|
|
|
<fileset dir="lib">
|
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</classpath>
|
|
|
|
|
</javac>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="cleancompile" description="delete all the .class files.">
|
2007-07-24 21:47:11 +00:00
|
|
|
<delete dir="${classes}"/>
|
|
|
|
|
<mkdir dir="${classes}"/>
|
2007-04-21 17:14:44 +00:00
|
|
|
</target>
|
2009-02-26 02:46:34 +00:00
|
|
|
|
2007-04-21 17:14:44 +00:00
|
|
|
<target name="jar" description="jar up all the class files">
|
|
|
|
|
<mkdir dir="build"/>
|
2007-07-24 21:47:11 +00:00
|
|
|
<jar jarfile="build/log4${jdbc.prefix}-${version}.jar" basedir="${classes}"/>
|
2007-04-21 17:14:44 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="cleanjar" description="delete the jar file">
|
2007-07-24 21:47:11 +00:00
|
|
|
<delete file="build/log4${jdbc.prefix}-${version}.jar" description="delete the jar file"/>
|
2007-04-21 17:14:44 +00:00
|
|
|
</target>
|
|
|
|
|
|
2007-05-22 21:47:09 +00:00
|
|
|
|
2009-08-08 19:02:49 +00:00
|
|
|
<target name="cleanjavadoc" description="clean javadoc">
|
2007-07-24 21:47:11 +00:00
|
|
|
<delete dir="${apidocs}" />
|
|
|
|
|
<mkdir dir="${apidocs}" />
|
2007-05-22 21:47:09 +00:00
|
|
|
</target>
|
2015-09-30 12:25:14 -04:00
|
|
|
|
2009-08-08 19:02:49 +00:00
|
|
|
<target name="cleanrelease" description="clean up any release files">
|
2007-05-30 02:17:06 +00:00
|
|
|
<delete file="../log4jdbc-${version}.zip"/>
|
|
|
|
|
</target>
|
2015-09-30 12:25:14 -04:00
|
|
|
|
2009-08-08 19:02:49 +00:00
|
|
|
<target name="clean" depends="cleanrelease,cleanjavadoc,cleanjar,cleancompile" description="clean up all build artifacts"/>
|
2007-05-30 02:17:06 +00:00
|
|
|
|
2007-07-25 23:27:42 +00:00
|
|
|
<target name="release" depends="cleanrelease" description="make a complete release distribution (a .jar zip and tar.gz file for release)">
|
2007-05-30 02:17:06 +00:00
|
|
|
<zip destfile="../log4jdbc-${version}.zip">
|
2007-07-24 21:47:11 +00:00
|
|
|
<zipfileset dir="." prefix="log4jdbc-${version}" excludes="*.zip,*.tar.gz,*,iml,*.ipr,*.iws,thirdparty-stuff/**,classes*/**"/>
|
2007-05-30 02:17:06 +00:00
|
|
|
</zip>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<!-- make the javadoc (or ydoc which includes UML diagrams) -->
|
|
|
|
|
|
2007-05-22 21:47:09 +00:00
|
|
|
<target name="javadoc" description="generate the javadoc" depends="cleanjavadoc">
|
2007-07-24 21:47:11 +00:00
|
|
|
<delete dir="${apidocs}" />
|
|
|
|
|
<mkdir dir="${apidocs}" />
|
|
|
|
|
<javadoc destdir="${apidocs}" packagenames="net.sf.log4jdbc.*"
|
|
|
|
|
Windowtitle="log4${jdbc.prefix} ${version}"
|
|
|
|
|
Header="<b><a href="http://log4jdbc.sourceforge.net">log4${jdbc.prefix} ${version}</a></b>"
|
2007-04-21 17:14:44 +00:00
|
|
|
Use="true" breakiterator="true">
|
|
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="$src"/>
|
|
|
|
|
<fileset dir="lib">
|
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</classpath>
|
2007-07-24 21:47:11 +00:00
|
|
|
<sourcepath path="${src}"/>
|
2007-04-21 17:14:44 +00:00
|
|
|
|
|
|
|
|
<!-- note that the jdk source code is referenced here so that javadoc will be generated from
|
|
|
|
|
interface class methods when none is specified in the implementation -->
|
2007-07-24 21:47:11 +00:00
|
|
|
<!--
|
2007-04-21 17:14:44 +00:00
|
|
|
<sourcepath path="/j2sdk1.4.2_13/src"/>
|
|
|
|
|
<link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
|
|
|
|
|
<link href="http://java.sun.com/j2ee/1.4/docs/api/"/>
|
2007-05-30 00:33:12 +00:00
|
|
|
<link href="http://www.slf4j.org/api/"/>
|
2007-07-24 21:47:11 +00:00
|
|
|
-->
|
2007-04-21 17:14:44 +00:00
|
|
|
</javadoc>
|
|
|
|
|
</target>
|
|
|
|
|
|
2007-07-25 23:27:42 +00:00
|
|
|
<target name="ydoc.3" description="(jdk1.4/JDBC3 version) create javadoc using ydoc doclet to include UML diagrams" depends="cleanjavadoc">
|
|
|
|
|
|
|
|
|
|
<property name="ps" value="${path.separator}" />
|
|
|
|
|
|
|
|
|
|
<javadoc destdir="${apidocs}" packagenames="net.sf.log4jdbc.*"
|
|
|
|
|
Windowtitle="log4${jdbc.prefix} ${version}"
|
|
|
|
|
Header="<b><a href="http://log4jdbc.sourceforge.net">log4${jdbc.prefix} ${version}</a></b>"
|
|
|
|
|
Use="true" breakiterator="true">
|
|
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="$src"/>
|
|
|
|
|
<fileset dir="lib">
|
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</classpath>
|
|
|
|
|
<sourcepath path="${src}"/>
|
|
|
|
|
|
|
|
|
|
<!-- note that the jdk source code is referenced here so that javadoc will be generated from
|
|
|
|
|
interface class methods when none is specified in the implementation -->
|
|
|
|
|
|
2011-06-20 13:09:42 +00:00
|
|
|
<sourcepath path="/jdk/1.4.2_19/src"/>
|
2007-07-25 23:27:42 +00:00
|
|
|
<link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
|
|
|
|
|
<!--
|
|
|
|
|
<link href="http://java.sun.com/j2ee/1.4/docs/api/"/>
|
|
|
|
|
-->
|
|
|
|
|
<link href="http://www.slf4j.org/api/"/>
|
|
|
|
|
|
|
|
|
|
<!-- ydoc doclet for UML diagrams, see http://www.yworks.com/en/products_ydoc.htm -->
|
|
|
|
|
<doclet name="ydoc.doclets.YStandard"
|
|
|
|
|
path="${ydoc.home.3}/lib/ydoc.jar${ps}${ydoc.home.3}/lib/class2svg.jar${ps}${ydoc.home.3}/resources${ps}${ydoc.home.3}/doc${ps}./${classes}">
|
|
|
|
|
<param name="-author"/>
|
|
|
|
|
<param name="-generic"/>
|
|
|
|
|
<param name="-umlautogen"/>
|
|
|
|
|
<param name="-filterpath" value="${ydoc.home.3}/lib/ydoc.jar"/>
|
|
|
|
|
<param name="-filter" value="ydoc.filters.ExcludeFilter"/>
|
|
|
|
|
<param name="-tag" value="y.precondition"/>
|
|
|
|
|
<param name="-tag" value="y.postcondition"/>
|
|
|
|
|
<param name="-tag" value="y.complexity"/>
|
|
|
|
|
<param name="-tag" value="param"/>
|
|
|
|
|
<param name="-tag" value="return"/>
|
|
|
|
|
<param name="-tag" value="see"/>
|
|
|
|
|
<param name="-tag" value="y.uml"/>
|
|
|
|
|
<param name="-linksource" value="true"/>
|
|
|
|
|
</doclet>
|
|
|
|
|
</javadoc>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="ydoc.4" description="(jdk1.6/JDBC4 version) create javadoc using ydoc doclet to include UML diagrams" depends="cleanjavadoc">
|
2007-05-22 21:47:09 +00:00
|
|
|
|
|
|
|
|
<property name="ps" value="${path.separator}"/>
|
|
|
|
|
|
2007-07-24 21:47:11 +00:00
|
|
|
<javadoc destdir="${apidocs}" packagenames="net.sf.log4jdbc.*"
|
2008-11-08 22:30:50 +00:00
|
|
|
maxmemory="512m"
|
2007-07-24 21:47:11 +00:00
|
|
|
Windowtitle="log4${jdbc.prefix} ${version}"
|
|
|
|
|
Header="<b><a href="http://log4jdbc.sourceforge.net">log4${jdbc.prefix} ${version}</a></b>"
|
2007-05-22 21:47:09 +00:00
|
|
|
Use="true" breakiterator="true">
|
|
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="$src"/>
|
|
|
|
|
<fileset dir="lib">
|
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
|
</fileset>
|
|
|
|
|
</classpath>
|
2007-07-24 21:47:11 +00:00
|
|
|
<sourcepath path="${src}"/>
|
2007-05-22 21:47:09 +00:00
|
|
|
|
|
|
|
|
<!-- note that the jdk source code is referenced here so that javadoc will be generated from
|
|
|
|
|
interface class methods when none is specified in the implementation -->
|
2007-07-25 23:27:42 +00:00
|
|
|
|
2011-06-20 13:09:42 +00:00
|
|
|
<sourcepath path="/jdk/1.6.0_21/src"/>
|
2007-07-25 23:27:42 +00:00
|
|
|
<link href="http://java.sun.com/javase/6/docs/api/"/>
|
|
|
|
|
<link href="http://www.slf4j.org/api/"/>
|
|
|
|
|
|
2007-05-22 21:47:09 +00:00
|
|
|
<!-- ydoc doclet for UML diagrams, see http://www.yworks.com/en/products_ydoc.htm -->
|
|
|
|
|
<doclet name="ydoc.doclets.YStandard"
|
2007-07-25 23:27:42 +00:00
|
|
|
path="${ydoc.home.4}/lib/ydoc.jar${ps}${ydoc.home.4}/lib/class2svg.jar${ps}${ydoc.home.4}/resources${ps}${ydoc.home.4}/doc${ps}./${classes}">
|
2007-05-22 21:47:09 +00:00
|
|
|
<param name="-author"/>
|
|
|
|
|
<param name="-generic"/>
|
|
|
|
|
<param name="-umlautogen"/>
|
2007-07-25 23:27:42 +00:00
|
|
|
<param name="-filterpath" value="${ydoc.home.4}/lib/ydoc.jar"/>
|
2007-05-22 21:47:09 +00:00
|
|
|
<param name="-filter" value="ydoc.filters.ExcludeFilter"/>
|
|
|
|
|
<param name="-tag" value="y.precondition"/>
|
|
|
|
|
<param name="-tag" value="y.postcondition"/>
|
|
|
|
|
<param name="-tag" value="y.complexity"/>
|
|
|
|
|
<param name="-tag" value="param"/>
|
|
|
|
|
<param name="-tag" value="return"/>
|
|
|
|
|
<param name="-tag" value="see"/>
|
|
|
|
|
<param name="-tag" value="y.uml"/>
|
|
|
|
|
<param name="-linksource" value="true"/>
|
|
|
|
|
</doclet>
|
|
|
|
|
</javadoc>
|
|
|
|
|
</target>
|
2007-04-21 17:14:44 +00:00
|
|
|
</project>
|