<?xml version="1.0"?>
 
<!-- ======================================================== -->
<!--        Main WOLips plugins Ant build file                -->
<!-- Serves as a facade for different helper build files.     -->
<!-- ======================================================== -->
<project name="org.objectstyle.wolips.woproject.ant" default="" basedir=".">
 
    <property file="default.properties"/>

    <!-- ========================================== -->
    <!-- Build copy resources.                      -->
    <!-- ========================================== -->
    <target name="copy.resources">
        <ant dir="." antfile="../../../../${project.buildscripts.dir}/plugin-project.xml" target="copy.resources">
            <property name="param.plugin.dir" value="."/>
            <property name="param.build.output.build.dir" value="../../../../${build.output.build.dir}"/>
            <property name="param.plugin.name" value="${plugin.name}"/>
	    </ant>
    </target>

    <!-- ========================================== -->
    <!-- Build jar.                                 -->
    <!-- ========================================== -->
    <target name="jar">
	    <patternset id="param.classes.patternset.refid">
                <include name="**/org/objectstyle/woenvironment/**"/>
                <include name="**/org/objectstyle/woproject/**"/>
        </patternset>
            
	    <ant dir="." antfile="../../../../${project.buildscripts.dir}/plugin-project.xml" target="jar.from.project">
            <property name="param.project.dir" value="../../../../${project.woproject.dir}/src"/>
            <property name="param.classes.dir" value="../../../../${build.output.java.dir}"/>
            <property name="param.jar.file" value="woproject.jar"/>
            <property name="param.plugin.name" value="${plugin.name}"/>
            <reference refid="param.classes.patternset.refid"/>
            <property name="param.build.output.build.dir" value="../../../../${build.output.build.dir}"/>
        </ant>
    </target>

    <!-- ========================================== -->
    <!-- Build all.                                 -->
    <!-- ========================================== -->
    <target name="all" depends="copy.resources,jar">
    </target>
    
    <!-- ========================================== -->
    <!-- Build dist.                                -->
    <!-- ========================================== -->
    <target name="dist">
        <ant dir="." antfile="../../../../${project.buildscripts.dir}/plugin-project.xml" target="dist">
            <property name="param.plugin.name" value="${plugin.name}"/>
            <property name="param.build.output.build.dir" value="../../../../${build.output.build.dir}"/>
            <property name="param.build.dist.build.dir" value="../../../../${build.output.dist.dir}"/>
	    </ant>
    </target>

</project>
