Skip to content

Instantly share code, notes, and snippets.

@GaryRogers
Created May 19, 2014 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaryRogers/3ebb37fc2c6107af359c to your computer and use it in GitHub Desktop.
Save GaryRogers/3ebb37fc2c6107af359c to your computer and use it in GitHub Desktop.
ant build script for a PHAR Archive
<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