Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 name="init">
<mkdir dir="${build}" />
<target name="build" depends="clean,init">
<echo>Building PHAR archive for ${}</echo>
<exec dir="${basedir}" executable="php" failonerror="true">
<arg value="createPhar.php" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment