<?xml version="1.0" encoding="UTF-8"?>
<project name="DMDirc Plugins" default="default" basedir=".">
    <description>Builds, packages and tests DMDirc plugins.</description>

    <!-- Resolve the relative directory -->
    <property name="dmdircOutput" location="${plugins.dmdirc.build.dir}"/>

    <target name="init-dependencies"/>

    <target name="compile">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="compile"/>
        </exec>
    </target>

    <target name="jar">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="jar"/>
        </exec>

        <mkdir dir="dist"/>
        <copy todir="dist" flatten="true">
            <fileset dir=".">
                <include name="*/build/libs/*.jar"/>
            </fileset>
        </copy>
    </target>

    <target name="clean">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="clean"/>
        </exec>
    </target>

    <target name="with.clover"/>

    <target name="compile-for-tests" depends="compile"/>

</project>

<?xml version="1.0" encoding="UTF-8"?>
<project name="DMDirc Plugins" default="default" basedir=".">
    <description>Builds, packages and tests DMDirc plugins.</description>

    <!-- Resolve the relative directory -->
    <property name="dmdircOutput" location="${plugins.dmdirc.build.dir}"/>

    <target name="init-dependencies"/>

    <target name="compile">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="compileJava"/>
        </exec>
    </target>

    <target name="jar">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="jar"/>
        </exec>

        <mkdir dir="dist"/>
        <copy todir="dist" flatten="true">
            <fileset dir=".">
                <include name="*/build/libs/*.jar"/>
            </fileset>
        </copy>
    </target>

    <target name="clean">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="clean"/>
        </exec>
    </target>

    <target name="with.clover"/>

    <target name="compile-for-tests" depends="compile">
        <exec executable="gradle" dir="." failonerror="true">
            <arg value="-PdmdircOutput=${dmdircOutput}"/>
            <arg value="--parallel"/>
            <arg value="compileTestJava"/>
        </exec>
    </target>

</project>

Use the right compile target.
Use the right compile target.

Change-Id: Ic0d37dd6504a431aa2c8d1c9c084198ce7685265
Reviewed-on: http://gerrit.dmdirc.com/3889
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <79e2475f81a6317276bf7cbb3958b20d289b78df@dmdirc.com>
