[cdc45d]: examples / templated-game / build.xml Maximize Restore History

Download this file

build.xml    33 lines (28 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>