-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
35 lines (27 loc) · 1.2 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="nm-twitter-api" default="build" basedir=".">
<target name="build" depends="build-common" />
<target name="build-common" depends="composer" />
<target name="composer" depends="composer-install,composer-update" description="Install or update dependencies" />
<target name="composer.check">
<condition property="composer.exist">
<available file="${project.basedir}/vendor" type="dir" />
</condition>
</target>
<target name="composer-install" depends="composer.check" unless="composer.exist" description="Installing dependencies">
<echo>Installing dependencies</echo>
<exec executable="composer">
<arg value="install" />
<arg value="--no-dev" />
<arg value="--no-interaction" />
</exec>
</target>
<target name="composer-update" depends="composer.check" if="composer.exist" description="Updating dependencies">
<echo>Updating dependencies</echo>
<exec executable="composer">
<arg value="update" />
<arg value="--no-dev" />
<arg value="--no-interaction" />
</exec>
</target>
</project>