[tor-commits] [metrics-lib/master] Tweak build file a bit.

karsten at torproject.org karsten at torproject.org
Tue Jun 19 12:41:16 UTC 2012


commit 2c3e59bb71b8f66109da362148853c932cdf71cb
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Jun 19 14:36:44 2012 +0200

    Tweak build file a bit.
---
 build.xml |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/build.xml b/build.xml
index 0f2539a..e11d3fd 100644
--- a/build.xml
+++ b/build.xml
@@ -1,12 +1,13 @@
-<project default="run" name="descriptor" basedir=".">
+<project default="jar" name="descriptor" basedir=".">
   <property name="sources" value="src"/>
   <property name="classes" value="classes"/>
   <property name="tests" value="test"/>
   <property name="libs" value="lib"/>
   <path id="classpath">
     <pathelement path="${classes}"/>
-    <pathelement location="lib/commons-codec-1.4.jar"/>
-    <pathelement location="lib/junit-4.8.2.jar"/>
+    <fileset dir="${libs}">
+      <include name="*.jar"/>
+    </fileset>
   </path>
   <target name="init">
     <mkdir dir="${classes}"/>
@@ -22,9 +23,7 @@
            optimize="false"
            failonerror="true"
            includeantruntime="false">
-      <classpath>
-        <fileset dir="${libs}"/>
-      </classpath>
+      <classpath refid="classpath"/>
     </javac>
   </target>
   <target name="jar" depends="compile">
@@ -41,9 +40,7 @@
            optimize="false"
            failonerror="true"
            includeantruntime="false">
-      <classpath>
-        <fileset dir="${libs}"/>
-      </classpath>
+      <classpath refid="classpath"/>
     </javac>
     <junit fork="true" haltonfailure="true" printsummary="off">
       <classpath refid="classpath"/>



More information about the tor-commits mailing list