You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by wg...@apache.org on 2007/04/20 06:22:15 UTC
svn commit: r530635 - in /velocity/texen/trunk/build: build.xml testcases.xml
Author: wglass
Date: Thu Apr 19 21:22:13 2007
New Revision: 530635
URL: http://svn.apache.org/viewvc?view=rev&rev=530635
Log:
reversed previous change to Texen build. Apparently the Gump elves mysteriously made this work a few days ago by changing the Gump config. (Thanks Stepan!)
Removed:
velocity/texen/trunk/build/testcases.xml
Modified:
velocity/texen/trunk/build/build.xml
Modified: velocity/texen/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/velocity/texen/trunk/build/build.xml?view=diff&rev=530635&r1=530634&r2=530635
==============================================================================
--- velocity/texen/trunk/build/build.xml (original)
+++ velocity/texen/trunk/build/build.xml Thu Apr 19 21:22:13 2007
@@ -509,12 +509,70 @@
<target name="test"
- depends="build-prepare,compile-test"
- description="runs the test cases">
+ depends="build-prepare,compile-test,test-texen,test-texen-classpath"/>
- <ant antfile="${ant.build.dir}/testcases.xml"
- target="test-all"/>
+ <!-- ================================================================ -->
+ <!-- T E X E N T E S T -->
+ <!-- ================================================================ -->
+ <!-- Generate turbine service code via Texen -->
+ <!-- ================================================================ -->
- </target>
+ <target name="test-texen">
+
+ <taskdef name="texen" classname="org.apache.texen.ant.TexenTask"
+ classpathref="test.classpath"/>
+
+ <texen
+ contextProperties="${test.dir}/texen/service.props,${test.dir}/texen/additional.props"
+ controlTemplate="Control.vm"
+ outputDirectory="${build.test}/texen"
+ templatePath="${test.dir}/texen/templates"
+ outputFile="report"
+ />
+
+ <java classname="${test.runner}" fork="yes" dir="${app.dir}" failonerror="${test.haltonerror}"
+ classpathref="test.classpath">
+ <arg value="org.apache.texen.TexenTestCase"/>
+ </java>
+
+ </target>
+
+ <!-- ================================================================ -->
+ <!-- T E X E N C L A S S P A T H -->
+ <!-- ================================================================ -->
+ <!-- Generate turbine service code via Texen with all the templates -->
+ <!-- and ancillary files in a JAR. -->
+ <!-- ================================================================ -->
+
+ <target name="test-texen-classpath">
+
+ <path id="test.texen.classpath">
+ <fileset dir="${build.test.lib}">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${build.lib}">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement location="${build.dest}" />
+ <pathelement location="${build.test.dest}" />
+ <pathelement location="${test.dir}/texen-classpath/test.jar"/>
+ </path>
+
+ <taskdef name="texen" classname="org.apache.texen.ant.TexenTask" classpathref="test.texen.classpath"/>
+
+ <texen
+ useClassPath="true"
+ contextProperties="service.props"
+ controlTemplate="Control.vm"
+ outputDirectory="${build.test}/texen-classpath"
+ outputFile="report"
+ />
+
+ <java classname="${test.runner}" fork="yes" dir="${app.dir}" failonerror="${test.haltonerror}"
+ classpathref="test.classpath">
+ <arg value="org.apache.texen.TexenClasspathTestCase"/>
+ </java>
+
+ </target>
</project>