--- a
+++ b/examples/templated-game/build.xml
@@ -0,0 +1,33 @@
+<project name="example-templated-game" basedir="." default="main">
+    <!-- Override the location of the Java 4k game source files.  This project
+    generates the source code from several different files, and they are
+    assembled into the final Java source file here. -->
+    <property name="src" location="work/generated-src" />
+
+    <!-- required for compiling the tools, but we don't have anything
+    to put in it for this project - we only use the standard JDK
+    libraries.  The full tools path, which includes this one plus the
+    compiled project tools, is "path.tools4k" -->
+    <path id="local.tools">
+    </path>
+
+    <!-- Import the Java 4k tool build framework.  This may be in a
+    completely unrelated location to the current project. -->
+    <import file="../../resources/ant-basic.xml" />
+
+
+    <!-- Override the default (do-nothing) target to construct our
+    generated game source file.  Run our tool to create it. -->
+    <target name="generate-source" depends="compile.local-tools">
+        <mkdir dir="${src}" />
+        <java classpathref="path.tools4k"
+                classname="net.sf.groboutils.java4k.example.JoinFilesMain"
+                failonerror="true">
+            <arg file="${src}/${project.active-class}.java" /> <!-- output file -->
+            <arg file="resources/Framework_Header.java.txt" /> <!-- input file -->
+            <arg file="resources/v1.java.txt" /> <!-- input file -->
+            <arg file="resources/Framework_Footer.java.txt" /> <!-- input file -->
+        </java>
+    </target>
+
+</project>