| 60 | | |
|---|
| 61 | | <target name="prepare"> |
|---|
| 62 | | <echo msg="Preparing build..." /> |
|---|
| 63 | | <mkdir dir="./build" /> |
|---|
| 64 | | </target> |
|---|
| 65 | | |
|---|
| 66 | | <target name="build" depends="prepare"> |
|---|
| 67 | | <echo>Building...</echo> |
|---|
| 68 | | <copy file="./src/File.php" to="./build/File.php"/> |
|---|
| 69 | | <copy file="./src/File2.php" to="./build/File2.php"/> |
|---|
| 70 | | </target> |
|---|
| 71 | | |
|---|
| 72 | | <target name="dist" depends="build"> |
|---|
| 73 | | <echo message="Creating archive..." /> |
|---|
| 74 | | <tar outfile="furbee.tar.gz" basedir="./build"/> |
|---|
| 75 | | </target> |
|---|
| 76 | | |
|---|
| 77 | | <target name="clean"> |
|---|
| 78 | | <echo msg="Cleaning up..."/> |
|---|
| 79 | | <delete file="./build"/> |
|---|
| 80 | | </target> |
|---|
| | 60 | <target name="prepare"> |
|---|
| | 61 | <echo msg="Making directory ./build" /> |
|---|
| | 62 | <mkdir dir="./build" /> |
|---|
| | 63 | </target> |
|---|
| | 64 | |
|---|
| | 65 | <target name="build" depends="prepare"> |
|---|
| | 66 | <echo msg="Copying files to build directory..." /> |
|---|
| | 67 | |
|---|
| | 68 | <echo msg="Copying ./about.php to ./build directory..." /> |
|---|
| | 69 | <copy file="./about.php" tofile="./build/about.php" /> |
|---|
| | 70 | |
|---|
| | 71 | <echo msg="Copying ./browsers.php to ./build directory..." /> |
|---|
| | 72 | <copy file="./browsers.php" tofile="./build/browsers.php" /> |
|---|
| | 73 | |
|---|
| | 74 | <echo msg="Copying ./contact.php to ./build directory..." /> |
|---|
| | 75 | <copy file="./contact.php" tofile="./build/contact.php" /> |
|---|
| | 76 | </target> |
|---|
| | 77 | |
|---|
| | 78 | <target name="dist" depends="build"> |
|---|
| | 79 | <echo msg="Creating archive..." /> |
|---|
| | 80 | |
|---|
| | 81 | <tar destfile="./build/build.tar.gz" compression="gzip"> |
|---|
| | 82 | <fileset dir="./build"> |
|---|
| | 83 | <include name="*" /> |
|---|
| | 84 | </fileset> |
|---|
| | 85 | </tar> |
|---|
| | 86 | |
|---|
| | 87 | <echo msg="Files copied and compressed in build directory OK!" /> |
|---|
| | 88 | </target> |
|---|
| 272 | | |
|---|
| 273 | | <property environment="env"/> |
|---|
| 274 | | |
|---|
| 275 | | <property file="${env.BCHOME}/build.properties"/> |
|---|
| 276 | | |
|---|
| 277 | | <property name="package" value="${phing.project.name}" override="true" /> |
|---|
| 278 | | <property name="builddir" value="${env.BCHOME}/build/testsite" override="true" /> |
|---|
| 279 | | <property name="srcdir" value="${project.basedir}" override="true" /> |
|---|
| 280 | | |
|---|
| 281 | | <!-- Fileset for all files --> |
|---|
| 282 | | <fileset dir="." id="allfiles"> |
|---|
| 283 | | <include name="**"> |
|---|
| 284 | | </fileset> |
|---|
| 285 | | |
|---|
| 286 | | <!-- Main Target --> |
|---|
| 287 | | <target name="main" description="main target"> |
|---|
| 288 | | <copy todir="${builddir}"> |
|---|
| 289 | | <fileset refid="allfiles" /> |
|---|
| 290 | | </copy> |
|---|
| 291 | | </target> |
|---|
| 292 | | |
|---|
| 293 | | |
|---|
| 294 | | <!-- Rebuild --> |
|---|
| 295 | | <target name="rebuild" description="rebuilds this package"> |
|---|
| 296 | | <delete dir="${builddir}" /> |
|---|
| 297 | | <phingcall target="main"/> |
|---|
| 298 | | </target> |
|---|
| | 280 | <property file="./build.properties" /> |
|---|
| | 281 | |
|---|
| | 282 | <property name="package" value="${phing.project.name}" override="true" /> |
|---|
| | 283 | <property name="builddir" value="./build/testsite" override="true" /> |
|---|
| | 284 | <property name="srcdir" value="${project.basedir}" override="true" /> |
|---|
| | 285 | |
|---|
| | 286 | <!-- Fileset for all files --> |
|---|
| | 287 | <fileset dir="." id="allfiles"> |
|---|
| | 288 | <include name="**" /> |
|---|
| | 289 | </fileset> |
|---|
| | 290 | |
|---|
| | 291 | <!-- Main Target --> |
|---|
| | 292 | <target name="main" description="main target"> |
|---|
| | 293 | <copy todir="${builddir}"> |
|---|
| | 294 | <fileset refid="allfiles" /> |
|---|
| | 295 | </copy> |
|---|
| | 296 | </target> |
|---|
| | 297 | |
|---|
| | 298 | <!-- Rebuild --> |
|---|
| | 299 | <target name="rebuild" description="rebuilds this package"> |
|---|
| | 300 | <delete dir="${builddir}" /> |
|---|
| | 301 | <phingcall target="main" /> |
|---|
| | 302 | </target> |
|---|