Author: nextgens
Date: 2008-09-04 21:10:09 +0000 (Thu, 04 Sep 2008)
New Revision: 22438
Added:
trunk/contrib/db4o/
trunk/contrib/db4o/build.xml
Modified:
trunk/contrib/freenet_ext/build.xml
Log:
freenet-ext: add a buildscript for db4o
Added: trunk/contrib/db4o/build.xml
===================================================================
--- trunk/contrib/db4o/build.xml (rev 0)
+++ trunk/contrib/db4o/build.xml 2008-09-04 21:10:09 UTC (rev 22438)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ant build file for Freenet -->
+
+<project name="db4o" default="jar" basedir=".">
+ <!-- set global properties for this build -->
+ <property name="src" location="src"/>
+ <property name="build" location="build"/>
+ <property name="jarfile" location="db4o.jar"/>
+ <property name="javac.target.version" value="1.5"/>
+
+ <assertions>
+ <enable/>
+ </assertions>
+
+ <target name="mkdir">
+ <mkdir dir="${build}"/>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="compile" depends="mkdir">
+ <!-- Create the time stamp -->
+ <tstamp/>
+
+ <javac srcdir="${src}" destdir="${build}" debug="on"
optimize="on" source="${javac.target.version}">
+ <classpath>
+ <pathelement
location="${freenet-ext.location}"/>
+ </classpath>
+ <compilerarg value="-Xlint"/>
+
+ <include name="**/*.java"/>
+ </javac>
+ </target>
+
+
+ <!-- ================================================== -->
+
+ <target name="jar" depends="clean,compile"
+ description="generate the distribution" >
+ <!-- Create the distribution directory -->
+ <jar jarfile="${jarfile}" basedir="${build}"/>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="clean" description="Delete class files and docs dir.">
+ <delete dir="${build}"/>
+ <delete file="${jarfile}"/>
+ </target>
+</project>
Modified: trunk/contrib/freenet_ext/build.xml
===================================================================
--- trunk/contrib/freenet_ext/build.xml 2008-09-04 19:38:52 UTC (rev 22437)
+++ trunk/contrib/freenet_ext/build.xml 2008-09-04 21:10:09 UTC (rev 22438)
@@ -72,6 +72,12 @@
</ant>
</target>
+ <target name="db4o" depends="init" description="Build db4o">
+ <ant antfile="build.xml" target="jar" dir="../db4o/">
+ <property name="javac.target.version"
value="${javac.target.version}"/>
+ </ant>
+ </target>
+
<target name="clean" depends="distclean"/>
<target name="distclean" description="Cleanup the build directory">
@@ -81,15 +87,17 @@
<!-- detect it! -->
<property name="bits" value="32"/>
</ant>
+ <ant antfile="build.xml" target="clean" dir="../db4o/"/>
<delete dir="${build}"/>
<delete file="${jar.location}"/>
</target>
- <target name="jar"
depends="clean,fec,jcpuid,nativethread,bigint,bdb,wrapper" description="Create
the jar file">
+ <target name="jar"
depends="clean,fec,jcpuid,nativethread,bigint,bdb,wrapper,db4o"
description="Create the jar file">
<jar jarfile="${jar.location}" basedir="${build}" includes="**">
<zipfileset src="../fec/common/lib/onion-common.jar"/>
<zipfileset src="../bdb/build/lib/je.jar"/>
<zipfileset src="../wrapper/lib/wrapper.jar"/>
+ <zipfileset src="../db4o/db4o.jar"/>
</jar>
</target>
</project>