]> WPIA git - gigi.git/commitdiff
Extended makefile to compile testcases to a dedicated folder
authorJanis Streib <janis@dogcraft.de>
Mon, 23 Jun 2014 21:08:54 +0000 (23:08 +0200)
committerJanis Streib <janis@dogcraft.de>
Mon, 23 Jun 2014 21:08:54 +0000 (23:08 +0200)
build.xml

index 7aa2d3b679267b4b17d1c38edb6d58e369f3cf01..9221936ac68af5f0adb0f11f7b0ba874082b64e3 100644 (file)
--- a/build.xml
+++ b/build.xml
             <src path="lib/jetty"/>
             <src path="src"/>
             <src path="util"/>
+            <classpath refid="cacert-gigi.classpath"/>
+        </javac>
+    </target>
+    <target depends="init" name="build-project-test">
+        <echo message="${ant.project.name}: ${ant.file}"/>
+        <javac debug="true" debuglevel="${debuglevel}" destdir="bintest" includeantruntime="false" source="${source}" target="${target}">
             <src path="tests"/>
             <classpath refid="cacert-gigi.classpath"/>
         </javac>
@@ -76,7 +82,7 @@
             <classpath refid="cacert-gigi.classpath"/>
         </java>
     </target>
-    <target name="test">
+    <target name="test" depends="build-project-test">
         <mkdir dir="${junit.output.dir}"/>
         <junit fork="yes" printsummary="withOutAndErr">
             <formatter type="xml"/>