-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
48 lines (41 loc) · 1.64 KB
/
build.xml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="Data Object" basedir="./" default="install-and-run">
<!--
Include local project properties.
-->
<property file="${basedir}/build.properties.local" />
<property file="${basedir}/build.properties" />
<!--
Import main target defintions (extension points)
-->
<import optional="true" file="${basedir}/ant/main.xml" />
<!--
Enable used modules
-->
<import optional="true" file="${basedir}/ant/modules/composer.xml" />
<import optional="true" file="${basedir}/ant/modules/phpunit.xml" />
<import optional="true" file="${basedir}/ant/modules/checkstyle.xml" />
<import optional="true" file="${basedir}/ant/modules/pdepend.xml" />
<import optional="true" file="${basedir}/ant/modules/phpcpd.xml" />
<import optional="true" file="${basedir}/ant/modules/phpmd.xml" />
<!--
Task group, which installs the build-commons, if they do not exist yet.
-->
<target name="-install:check">
<condition property="-install:dir-exists">
<available file="${basedir}/ant" type="dir"/>
</condition>
</target>
<target name="install" depends="-install:check" unless="-install:dir-exists">
<exec executable="git" failonerror="true" dir="${basedir}">
<arg value="submodule" />
<arg value="update" />
<arg value="--init" />
</exec>
<echo>Build-Commons submodule intialized. Please re-run the build.</echo>
<fail />
</target>
<target name="install-and-run" depends="install">
<antcall target="test" />
</target>
</project>