Files
log4jdbc/scripts/build.xml
T
arthur_blake ead448f542 initial import
2007-04-21 17:14:44 +00:00

64 lines
2.1 KiB
XML
Executable File

<?xml version='1.0' encoding='ISO-8859-1' ?>
<!--
Very basic ant build script.
tested with Apache Ant version 1.6.5
-->
<project name="log4jdbc" default="all" basedir="..">
<target name="all" depends="cleancompile,compile,cleanjar,jar"/>
<property name="version" value="1.0"/>
<target name="compile" description="compile all the source code">
<javac srcdir="src" destdir="classes" deprecation="true" debug="true">
<classpath>
<pathelement location="$src"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="cleancompile" description="delete all the .class files.">
<delete dir="classes"/>
<mkdir dir="classes"/>
</target>
<target name="jar" description="jar up all the class files">
<mkdir dir="build"/>
<jar jarfile="build/log4jdbc-${version}.jar" basedir="classes"/>
</target>
<target name="cleanjar" description="delete the jar file">
<delete file="build/log4jdbc-${version}.jar" description="delete the jar file"/>
</target>
<target name="javadoc" description="generate the javadoc" >
<delete dir="doc/apidocs" />
<mkdir dir="doc/apidocs" />
<javadoc destdir="doc/apidocs" packagenames="net.sf.log4jdbc.*"
Windowtitle="log4jdbc ${version}"
Header="&lt;b&gt;&lt;a href=&quot;http://log4jdbc.sourceforge.net&quot;&gt;log4jdbc ${version}&lt;/a&gt;&lt;/b&gt;"
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 -->
<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/"/>
<link href="http://logging.apache.org/log4j/docs/api/"/>
</javadoc>
</target>
</project>