Blame SOURCES/stringtemplate-3.1-build-junit.patch

2e6da1
--- build.xml.orig	2009-09-22 23:00:17.000000000 +0200
2e6da1
+++ build.xml	2010-01-29 03:34:13.000000000 +0100
2e6da1
@@ -94,6 +94,7 @@
2e6da1
 
2e6da1
     <copy todir="${build.src}" filtering="true">
2e6da1
       <fileset dir="${src.java}" excludes="${src.excludes}"/>
2e6da1
+      <fileset dir="${basedir}${file.separator}test" excludes="${src.excludes}"/>
2e6da1
     </copy>
2e6da1
   </target>
2e6da1
 
2e6da1
@@ -110,7 +111,7 @@
2e6da1
   
2e6da1
   
2e6da1
   
2e6da1
-  <target name="compile" depends="init, prepare-sources, generator" description="Compiles the sources. (Default)">
2e6da1
+  <target name="compile" depends="init, generator, prepare-sources" description="Compiles the sources. (Default)">
2e6da1
     
2e6da1
     <echo level="info" message="Compiler    = ${build.compiler}"/>
2e6da1
     <echo level="info" message="Optimize    = ${compile.optimize}"/>
2e6da1
@@ -239,7 +240,22 @@
2e6da1
   
2e6da1
   <target name="clean-all" depends="clean-classes,clean-jars, clean-dist">
2e6da1
     <echo message="Cleaned all."/>
2e6da1
+  </target>
2e6da1
+
2e6da1
+  
2e6da1
+  
2e6da1
+  
2e6da1
+  <target name="test" depends="compile">
2e6da1
+    <junit printsummary="yes" fork="yes" haltonfailure="yes">
2e6da1
+      <classpath>
2e6da1
+        <pathelement location="${build.classes}"/>
2e6da1
+        <pathelement location="${build.src}"/>
2e6da1
+        <pathelement path="${java.class.path}"/>
2e6da1
+      </classpath>
2e6da1
+
2e6da1
+      <formatter type="plain"/>
2e6da1
+      <test name="org.antlr.stringtemplate.test.TestStringTemplate"/>
2e6da1
+    </junit>
2e6da1
   </target>
2e6da1
-
2e6da1
 </project>
2e6da1