<?xml version="1.0" encoding="UTF-8"?>
<!-- WARNING: Eclipse autogenerated file.
              Any modifications will be overwritten.
              To include a user specific buildfile here, simply create one in same
              directory with a comment as first child with this text: eclipse.import
              and export buildfile again. -->
<project basedir="." default="build" name="eclipse2ant">
    <property environment="env"/>
    <property name="ANT_HOME" value="/ant-1.6.2"/>
    <property name="ECLIPSE_HOME" value="/eclipse-3.1"/>
    <property name="debuglevel" value="source,lines,vars"/>
    <property name="target" value="1.2"/>
    <property name="source" value="1.3"/>
    <path id="Plug-in Dependencies.pluginclasspath">
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-antlr.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-bcel.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-bsf.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-log4j.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-oro.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-regexp.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-apache-resolver.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-commons-logging.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-commons-net.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-icontract.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-jai.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-javamail.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-jdepend.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-jmf.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-jsch.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-junit.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-launcher.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-netrexx.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-nodeps.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-starteam.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-stylebook.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-swing.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-trax.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-vaj.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-weblogic.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-xalan1.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.apache.ant_1.6.5/lib/ant-xslp.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.ant.ui_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.core.resources_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.core.runtime_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.osgi_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.jdt.core_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.jdt.launching_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.debug.core_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.ui_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.swt_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.swt.win32.win32.x86_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.jface_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.core.commands_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.ui.workbench_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.ui.ide_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.core.variables_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.team.core_3.1.0.jar"/>
        <pathelement location="${ECLIPSE_HOME}/plugins/org.junit_3.8.1/junit.jar"/>
    </path>
    <path id="eclipse2ant.classpath">
        <pathelement location="classes"/>
        <path refid="Plug-in Dependencies.pluginclasspath"/>
        <pathelement location="classes_test"/>
        <pathelement location="${ANT_HOME}/lib/clover-1.3.9.jar"/>
    </path>
    <target name="init">
        <mkdir dir="classes"/>
        <mkdir dir="classes_test"/>
        <copy includeemptydirs="false" todir="classes">
            <fileset dir="src" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy includeemptydirs="false" todir="classes_test">
            <fileset dir="test" excludes="**/*.launch, **/*.java"/>
        </copy>
    </target>
    <target name="clean">
        <delete dir="classes"/>
        <delete dir="classes_test"/>
    </target>
    <target depends="clean" name="cleanall"/>
    <target depends="build-subprojects,build-project" name="build"/>
    <target name="build-subprojects"/>
    <target depends="init" name="build-project">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac debug="true" debuglevel="${debuglevel}" destdir="classes" source="${source}" target="${target}">
            <src path="src"/>
            <classpath refid="eclipse2ant.classpath"/>
        </javac>
        <javac debug="true" debuglevel="${debuglevel}" destdir="classes_test" source="${source}" target="${target}">
            <src path="test"/>
            <classpath refid="eclipse2ant.classpath"/>
        </javac>
    </target>
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
        <copy todir="${ant.library.dir}">
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
        </copy>
        <unzip dest="${ant.library.dir}">
            <patternset includes="jdtCompilerAdapter.jar"/>
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
        </unzip>
    </target>
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        <antcall target="build"/>
    </target>
</project>