forked from ihabunek/log4php3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
74 lines (64 loc) · 2.3 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<project name="Apache log4php" description="A versatile logging framework for PHP" default="help">
<!-- Task for rendering manual pages via Twig -->
<taskdef name="twig" classname="lib.phing.task.TwigTask" />
<!-- Current project version -->
<property name="version" value="3.0.0-dev" />
<target name="help">
<echo msg="Darn! Nobody has written the help section yet." />
</target>
<target name="clean">
<delete dir="${project.basedir}/target" includeemptydirs="true" quiet="true" />
</target>
<target name="apigen">
<apigen config="apigen.neon" />
</target>
<target name="test">
<phpunit haltonerror="true" haltonfailure="true" printsummary="true">
<batchtest>
<fileset dir="tests">
<include name="*.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<target name="sniff">
<phpcodesniffer standard="PSR2">
<fileset dir="src/">
<include name="**/*.php"/>
</fileset>
<fileset dir="tests/">
<include name="**/*.php"/>
</fileset>
<fileset dir="lib/">
<include name="**/*.php"/>
</fileset>
</phpcodesniffer>
</target>
<target name="package">
<mkdir dir="target/packages" />
<echo msg="Creating zip archive..." />
<zip destfile="target/packages/apache-log4php-${version}.zip">
<fileset dir="src">
<include name="**/**" />
</fileset>
</zip>
<tar destfile="target/packages/apache-log4php-${version}.tar.gz" compression="gzip">
<fileset dir=".">
<include name="src" />
</fileset>
</tar>
</target>
<target name="manual">
<copy todir="target/manual">
<fileset dir="manual/resources">
<include name="**" />
</fileset>
</copy>
<twig templates="manual/templates" target="target/manual">
<fileset dir="manual/pages">
<include name="**/*.twig"/>
</fileset>
</twig>
</target>
</project>