forked from apache/predictionio-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
32 lines (26 loc) · 924 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="predictionio" default="install-dependencies">
<target name="install-dependencies">
<if>
<available file="composer.phar" />
<then>
<echo>Composer is installed</echo>
</then>
<else>
<echo message="Installing composer" />
<exec command="curl -s http://getcomposer.org/installer | php" passthru="true" />
<exec command="php composer.phar install --dev" passthru="true" />
</else>
</if>
</target>
<target name="clean-dependencies">
<delete dir="${project.basedir}/vendor"/>
<delete file="composer.lock" />
</target>
<target name="update-dependencies">
<exec command="php composer.phar update --dev" passthru="true" />
</target>
<target name="apigen">
<exec command="apigen -s src -d docs --title 'PredictionIO API PHP Client'" passthru="true" />
</target>
</project>