Are you sure that we need all 3? We only strictly need the jar for the 1.5 
code for it to work (and the source is divided into core and 1.1/1.2/1.5 
specific) ... but that's with their internal, private building process, and 
with an older version of the code...

On Saturday 06 September 2008 17:11, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2008-09-06 16:11:06 +0000 (Sat, 06 Sep 2008)
> New Revision: 22499
> 
> Added:
>    trunk/contrib/db4o/src/
> Modified:
>    trunk/contrib/db4o/build.xml
> Log:
> freenet-ext: new build script for db4o
> 
> Modified: trunk/contrib/db4o/build.xml
> ===================================================================
> --- trunk/contrib/db4o/build.xml      2008-09-06 14:57:32 UTC (rev 22498)
> +++ trunk/contrib/db4o/build.xml      2008-09-06 16:11:06 UTC (rev 22499)
> @@ -1,10 +1,16 @@
>  <?xml version="1.0" encoding="UTF-8"?>
> -<!-- ant build file for Freenet -->
>  
>  <project name="db4o" default="jar" basedir=".">
> +     <description>
> +             DB4O doesn't provide a decent building script... here is the 
> one we are 
going to use.
> +     </description>
> +
>       <!-- set global properties for this build -->
>       <property name="src" location="src"/>
>       <property name="build" location="build"/>
> +     <property name="build-db4oj" location="build-db4oj"/>
> +     <property name="build-db4ojdk1.2" location="build-db4ojdk1.2"/>
> +     <property name="build-db4ojdk5" location="build-db4ojdk5"/>
>       <property name="jarfile" location="db4o.jar"/>
>       <property name="javac.target.version" value="1.5"/>
>  
> @@ -14,6 +20,9 @@
>  
>       <target name="mkdir">
>               <mkdir dir="${build}"/>
> +             <mkdir dir="${build-db4oj}"/>
> +             <mkdir dir="${build-db4ojdk1.2}"/>
> +             <mkdir dir="${build-db4ojdk5}"/>
>       </target>
>  
>       <!-- ================================================== -->
> @@ -22,20 +31,53 @@
>               <!-- Create the time stamp -->
>               <tstamp/>
>  
> -             <javac srcdir="${src}" destdir="${build}" debug="on" 
> optimize="on" 
source="${javac.target.version}">
> +             <javac srcdir="${src}" destdir="${build-db4oj}" debug="on" 
> optimize="on" 
source="${javac.target.version}">
>                       <classpath>
>                               <pathelement 
> location="${freenet-ext.location}"/>
>                       </classpath>
> -                     <compilerarg value="-Xlint"/>
>  
> -                     <include name="**/*.java"/>
> +                     <include name="db4oj/**/*.java"/>
> +                     <exclude name="db4oj/test/**/*.java"/>
>               </javac>
> +
> +             <javac srcdir="${src}" destdir="${build-db4ojdk1.2}" debug="on" 
optimize="on" source="${javac.target.version}">
> +                     <classpath>
> +                             <pathelement location="${build-db4oj}"/>
> +                     </classpath>
> +
> +                     <include name="db4ojdk1.2/**/*.java"/>
> +                     <exclude name="db4ojdk1.2/test/**/*.java"/>
> +             </javac>
> +
> +             <javac srcdir="${src}" destdir="${build-db4ojdk5}" debug="on" 
optimize="on" source="${javac.target.version}">
> +                     <classpath>
> +                             <pathelement location="${build-db4oj}"/>
> +                             <pathelement location="${build-db4ojdk1.2}"/>
> +                     </classpath>
> +
> +                     <include name="db4ojdk5/**/*.java"/>
> +                     <exclude name="db4ojdk5/test/**/*.java"/>
> +             </javac>
>       </target>
>  
> +     <!-- ================================================== -->
>  
> +     <target name="mergeOptimizations" depends="compile">
> +             <!-- yes, order matters! -->
> +             <copy todir="${build}/">
> +                     <fileset dir="${build-db4oj}"/>
> +             </copy>
> +             <copy todir="${build}/">
> +                     <fileset dir="${build-db4ojdk1.2}"/>
> +             </copy>
> +             <copy todir="${build}/">
> +                     <fileset dir="${build-db4ojdk5}"/>
> +             </copy>
> +     </target>
> +
>       <!-- ================================================== -->
>  
> -     <target name="jar" depends="clean,compile"
> +     <target name="jar" depends="clean,compile, mergeOptimizations"
>               description="generate the distribution" >
>               <!-- Create the distribution directory -->
>               <jar jarfile="${jarfile}" basedir="${build}"/>
> @@ -44,7 +86,10 @@
>       <!-- ================================================== -->
>  
>       <target name="clean" description="Delete class files and docs dir.">
> +             <delete file="${jarfile}"/>
>               <delete dir="${build}"/>
> -             <delete file="${jarfile}"/>
> +             <delete dir="${build-db4oj}"/>
> +             <delete dir="${build-db4ojdk1.2}"/>
> +             <delete dir="${build-db4ojdk5}"/>
>       </target>
>  </project>
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080906/3e962794/attachment.pgp>

Reply via email to