Revert out commits r610 and r611 - the naming is not quite right
[phpt.git] / build.xml
blobbbbb6731ce170052518837a7cb26b28175ebed33
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="PHP_Core" basedir="." default="make">
3     <taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
4     
5     <property name="version" value="0.1.2devel" />
6     <property name="package_name" value="PHPT_Core" />
7     <property name="channel" value="channel.phpt.info" />
8     
9     <target name="clean">
10         <delete dir="./build/package" />
11         <delete dir="./build/export" />
12         <delete file="./${package_name}-${version}.tgz" />
13         
14         <mkdir dir="./build/package" />
15     </target>
16         
17     <target name="export" depends="clean">
18         <echo msg="Exporting SVN files" />
19         <exec command="svn export ./src ./build/export" />
20         <exec command="svn export ./scripts ./build/export/scripts" />
21         
22         <copy todir="./build/package">
23             <filterchain>
24                 <replacetokens begintoken="@@" endtoken="@@">
25                     <token key="VERSION" value="${version}" />
26                 </replacetokens>
27             </filterchain>
28             <fileset dir="./build/export">
29                 <include name="PHPT*/**" />
30                 <include name="scripts*/**" />
31             </fileset>
32         </copy>
33     </target>
34     
35     <target name="build" depends="export">
36         <d51pearpkg2 dir="./build/package" baseinstalldir="/">
37             <name>${package_name}</name>
38             <summary>PHPT_Core provides the core of PHPT testing framework</summary>
39             <channel>${channel}</channel>
40             <description indentions_to_remove="16">
41                 <!--        Don't exceed this width         -->
42                 PHPT_Core provides the base parser and core set
43                 of Sections necessary to parse most .phpt test
44                 case files.  It provides:
45                 
46                 * ability to create custom sections
47                 * ability to create custom reporters
48             </description>
49             
50             <lead user="tswicegood" name="Travis Swicegood" email="developer@domain51.com" />
51             <license>LGPL/CDDL</license>
52             
53             <version release="${version}" api="1.0" />
54             <stability release="devel" api="devel" />
55             
56             <dependencies>
57                 <php minimum_version="5.2.0" />
58                 
59                 <pear minimum_version="1.6.0" />
60             </dependencies>
61             
62             <dirroles key="scripts">script</dirroles>
63             <replacement path="scripts/phpt.php" type="pear-config" from="@php_bin@" to="php_bin" />
64             <release>
65                 <install as="phpt" name="scripts/phpt.php" />
66             </release>
67             
68             <changelog version="0.1.2devel" date="2007-11-26">
69                 <!--        Don't exceed this width         -->
70                 Running changes for 0.1.2alpha as they exist in
71                 SVN:
73                 * Add test time to work Text reporter
74                 * Refactor CodeRunner_Driver_Proc
75             </changelog>
77             <changelog version="0.1.1devel" date="2007-10-29">
78                 Running changes for SVN
79             </changelog>
80             
81             <changelog version="0.1alpha" date="2007-10-19">
82                 This is the initial alpha release of this package
83             </changelog>
84         </d51pearpkg2>
85     </target>
86     
87     <target name="make" depends="build">
88         <echo msg="Creating PEAR archive file for ${package_name}" />
89         <mkdir dir="./build/package/${package_name}-${version}" />
90         <copy todir="./build/package/${package_name}-${version}">
91             <fileset dir="./build/package">
92                 <include name="PHPT/**/**" />
93                 <include name="scripts*/**" />
94             </fileset>
95         </copy>
96         <delete dir="./build/package/PHPT" />
97         <tar compression="gzip" destfile="${package_name}-${version}.tgz" basedir="./build/package" />
98     </target>
99     
100     <target name="docs" depends="export">
101         <echo msg="Creating documentation" />
102         <phpdoc title="${package_name} Docs" 
103             destdir="./apidocs"
104             sourcecode="./build"
105             output="HTML:frames:DOM/earthli"
106         >
107             <fileset dir="./build/export">
108                 <include name="**" />
109             </fileset>
110         </phpdoc>
111     </target>
112 </project>