<?xml version="1.0" encoding="UTF-8" ?>

<project name="SmartSprites Bamboo builds" default="help">
    <property file="${bamboo.build.properties}" />
    <property name="smartsprites.dir" location="${basedir}" />
    <property name="dist.dir" location="${smartsprites.dir}/tmp/dist" />

    <target name="clean" description="Clean build results">
        <ant dir="${smartsprites.dir}" antfile="build.xml" target="clean" inheritall="true" />
    </target>

    <target name="reports" description="Run SmartSprites unit tests and code quality reports">
        <ant dir="${smartsprites.dir}" antfile="build.xml" target="reports" inheritall="true" />
    </target>

    <target name="dist" description="Build SmartSprites distribution">
        <ant dir="${smartsprites.dir}" antfile="build.xml" target="dist" inheritall="true" />
    </target>

    <target name="maven" description="Build SmartSprites Maven2 artifacts">
        <ant dir="${smartsprites.dir}" antfile="build.xml" target="maven" inheritall="true" />
    </target>

    <target name="publish">
        <fail unless="publish.dir">Define: publish.dir property.</fail>

        <copy todir="${publish.dir}" overwrite="true">
          <fileset dir="${dist.dir}" />
        </copy>
    </target>

    <target name="help">
        <echo>This file is used to drive automated Bamboo builds.</echo>
    </target>
</project>

