Skip to content

Instantly share code, notes, and snippets.

Embed
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>
<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