/
build.xml
53 lines (48 loc) · 1.86 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
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<project name="guzzle" default="init">
<target name="init-git" description="Initialize git submodules">
<echo msg="Initializing git submodules" />
<exec command="git submodule update --init" dir="./.." />
</target>
<target name="init-test" description="Initialize for unit testing">
<echo msg="Copying ./phpunit.xml.dist to ./phpunit.xml" />
<copy file="../phpunit.xml.dist" tofile="../phpunit.xml" />
</target>
<target name="init" depends="init-git,init-test" />
<target name="phar" description="Create a phar with an autoloader">
<if>
<equals arg1="${autoload}" arg2="false" />
<then>
<pharpackage
destfile="./guzzle-na.phar"
basedir="../src"
alias="Guzzle"
signature="sha1">
<fileset dir="../src">
<include name="**/*.php" />
<exclude name="**/Tests/**" />
</fileset>
<metadata>
<element name="version" value="1.0.1" />
</metadata>
</pharpackage>
</then>
<else>
<pharpackage
destfile="./guzzle.phar"
basedir="../src"
stub="./autoload.php"
alias="Guzzle"
signature="sha1">
<fileset dir="../src">
<include name="**/*.php" />
<exclude name="**/Tests/**" />
</fileset>
<metadata>
<element name="version" value="1.0.1" />
</metadata>
</pharpackage>
</else>
</if>
</target>
</project>