You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Will Glass-Husain <wg...@gmail.com> on 2007/04/20 06:26:12 UTC

texen gump run

Stepan,

Thanks for fixing the Texen Gump build.  Been meaning to tinker with the ant
script-- did a commit tonight but it was unnecessary -- hadn't noticed you
silently edited the Gump config a few days ago and the errors went away.
Thinking about it, that's definitely the better approach so I reversed my
patch (which might not have worked anyway).  Appreciate the slient
assistence.

WILL

---------- Forwarded message ----------
From: wglass@apache.org <wg...@apache.org>
Date: Apr 19, 2007 9:22 PM
Subject: svn commit: r530635 - in /velocity/texen/trunk/build: build.xml
testcases.xml
To: commits@velocity.apache.org

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>




-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

Re: texen gump run

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 19 Apr 2007, Will Glass-Husain <wg...@gmail.com> wrote:

> Thanks for fixing the Texen Gump build.

You're welcome.

Most of the time when an Ant based build fails in Gump it is a
classpath issue - since Ant conspires with Gump and ignores all your
build file level settings.  I look out for these kind of errors and
fix them since they are easier to spot for an experienced Gumper
(unfortunately there aren't that many left).

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org