Author: nextgens
Date: 2006-02-22 00:49:20 +0000 (Wed, 22 Feb 2006)
New Revision: 8096

Added:
   trunk/plugins/build.xml
Log:
ant buildfile for plugins

Added: trunk/plugins/build.xml
===================================================================
--- trunk/plugins/build.xml     2006-02-22 00:36:08 UTC (rev 8095)
+++ trunk/plugins/build.xml     2006-02-22 00:49:20 UTC (rev 8096)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!-- ant build file for Freenet -->
+
+<project name="Freenet" default="dist" basedir=".">
+       <loadfile property="freenet-cvs-snapshot.location"  
srcFile="/var/www/downloads/alpha/.latest"/>
+       <property name="freenet-cvs-snapshot.location" 
location="/var/www/downloads/alpha/${freenet-cvs-snapshot.location}"/>
+       <property name="freenet-ext.location" 
location="/var/www/downloads/alpha/freenet-ext.jar"/>
+       <property name="build" location="build/"/>
+       <property name="dist" location="dist/"/>
+
+<target name="mkdir">
+    <mkdir dir="${build}"/>
+    <mkdir dir="${dist}"/>
+</target>
+
+    <!-- ================================================== -->
+  <target name="compile" depends="mkdir" >
+    <!-- Create the time stamp -->
+    <tstamp/>
+    <!-- Create the build directory structure used by compile -->
+
+<!-- FIXME: remove the debug and replace with optimize -->
+    <javac srcdir="${what}" destdir="${build}" debug="on" optimize="on" 
source="1.4">
+    <classpath>
+       <pathelement location="${freenet-ext.location}"/>
+       <pathelement location="${freenet-cvs-snapshot.location}"/>
+    </classpath>
+<!-- following a very temporary list of files to be build -->
+      <include name="${what}/**/*.java"/>
+    </javac>
+  </target>
+
+
+    <!-- ================================================== -->
+  <target name="dist" depends="clean,compile"
+      description="generate the distribution" >
+    <!-- Create the distribution directory -->
+    <!--<mkdir dir="."/>-->
+    <!-- Put everything in ${build} into the freenet-${DSTAMP}.jar file -->
+    <jar jarfile="${dist}/${what}.jar" basedir="${what}"/>
+  </target>
+
+    <!-- ================================================== -->
+    <target name="clean" description="Delete class files and docs dir.">
+        <delete dir="${build}"/>
+    </target>
+</project>


Reply via email to