]> git.llucax.com Git - software/bife/bife-all.git/blob - base/build.xml
Base package is splited (again), so BIFE no longer depends on
[software/bife/bife-all.git] / base / build.xml
1 <?xml version="1.0"?>
2
3 <project name="BIFE" default="dist" basedir=".">
4
5     <property name="poner directorio build en propiedad"/>
6
7     <fileset dir="src/BIFE" id="files.src.core">
8         <include name="Parser.php"/>
9         <include name="Widget.php"/>
10         <include name="Container.php"/>
11         <include name="Fallback.php"/>
12         <include name="Root.php"/>
13     </fileset>
14
15     <fileset dir="build/BIFE" id="files.build.core">
16         <include name="Parser.php"/>
17         <include name="Widget.php"/>
18         <include name="Container.php"/>
19         <include name="Fallback.php"/>
20         <include name="Root.php"/>
21     </fileset>
22
23     <target name="prepare">
24         <echo msg="Preparing build..."/>
25         <mkdir dir="build/BIFE"/>
26     </target>
27
28     <target name="build" depends="prepare">
29         <echo msg="Building..."/>
30         <copy todir="build/BIFE">
31             <fileset refid="files.src.core"/>
32         </copy>
33         <chmod mode="644">
34             <fileset refid="files.build.core"/>
35         </chmod>
36     </target>
37  
38     <target name="dist" depends="build">
39         <echo msg="Creating archive..."/>
40         <tar name="bife.tar.gz" usegzip="true">
41             <fileset dir="build">
42                 <include name="**/**"/>
43             </fileset>
44         </tar>
45     </target>
46  
47     <target name="clean">
48         <echo msg="Cleaning up..."/>
49         <delete file="build"/>
50     </target>
51
52 </project>