2015-03-18 18:37:35 +00:00
|
|
|
<project name="FuzeWorks" default="build" basedir=".">
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${basedir}/build" />
|
|
|
|
<delete dir="${basedir}/source/.git" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="prepare">
|
|
|
|
<mkdir dir="${basedir}/build/logs" />
|
|
|
|
<mkdir dir="${basedir}/build/clover" />
|
2015-05-01 18:40:10 +00:00
|
|
|
<mkdir dir="${basedir}/build/phpdoc" />
|
2015-03-18 18:37:35 +00:00
|
|
|
</target>
|
|
|
|
|
2015-05-01 18:40:10 +00:00
|
|
|
<target name="phpdoc">
|
2015-03-18 18:37:35 +00:00
|
|
|
<exec dir="${basedir}" executable="php" failonerror="true">
|
2015-05-01 18:40:10 +00:00
|
|
|
<arg value="apigen.phar"/>
|
|
|
|
<arg line="generate --source .
|
|
|
|
--exclude 'tests/*'
|
|
|
|
--exclude 'Core/System/Smarty/*'
|
|
|
|
--title 'FuzeWorks Documentation build #${buildNumber}'
|
|
|
|
--destination build/phpdoc" />
|
2015-03-18 18:37:35 +00:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="zip">
|
|
|
|
<exec dir="${basedir}" executable="zip" failonerror="true">
|
2015-05-01 18:40:10 +00:00
|
|
|
<arg line="-r ${basedir}/build/fuzeworks-core.zip . -x build\* tests\* .git\*" />
|
2015-03-18 18:37:35 +00:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2015-05-01 18:40:10 +00:00
|
|
|
<target name="build" depends="clean,prepare,phpdoc,zip" />
|
2015-03-18 18:37:35 +00:00
|
|
|
</project>
|