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<?xml version="1.0"?>
<project name="forplay" default="compile" xmlns:artifact="urn:maven-artifact-ant">
<import file="build-maven.xml"/>
<!-- TODO: find suitable way to factor out module list; ant doesn't have any
stock iteration capabilities and depending on ant-contrib is annoying -->
<target name="clean" description="Cleans out all submodule build results.">
<ant dir="core/maven/gwtbox2d" target="clean"/>
<ant dir="core/maven/webgl" target="clean"/>
<ant dir="core" target="clean"/>
<ant dir="server" target="clean"/>
</target>
<target name="compile" description="Compiles all submodules.">
<ant dir="core/maven/gwtbox2d" target="compile"/>
<ant dir="core/maven/webgl" target="compile"/>
<ant dir="core" target="compile"/>
<ant dir="server" target="compile"/>
</target>
<target name="install" depends="-init-maven-ant"
description="Compiles and deploys all submodules to local Maven repository.">
<ant dir="core/maven/gwtbox2d" target="install"/>
<ant dir="core/maven/webgl" target="install"/>
<ant dir="core" target="install"/>
<ant dir="server" target="install"/>
<!-- install the forplay-project artifact which is just a pom -->
<artifact:install file="pom.xml">
<pom file="pom.xml"/>
</artifact:install>
</target>
</project>