Created
May 19, 2014 19:37
-
-
Save GaryRogers/3ebb37fc2c6107af359c to your computer and use it in GitHub Desktop.
ant build script for a PHAR Archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="myproject" default="build" basedir="."> | |
<property name="build" value="${basedir}/build"/> | |
<property name="build.src" value="${build}/src"/> | |
<target name="clean"> | |
<delete dir="${build}" /> | |
</target> | |
<target name="init"> | |
<mkdir dir="${build}" /> | |
</target> | |
<target name="build" depends="clean,init"> | |
<echo>Building PHAR archive for ${ant.project.name}</echo> | |
<exec dir="${basedir}" executable="php" failonerror="true"> | |
<arg value="createPhar.php" /> | |
</exec> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment