<?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 name="hello" default="build" basedir=".">
    <property environment="env"/>
    <property name="ECLIPSE_HOME" value="/eclipse-3.1"/>
    <property name="JUNIT_HOME" value="/eclipse-3.1/plugins/org.junit_3.8.1"/>
    <property name="resource_loc:/hello/build.xml" value="/projects/hello/build.xml"/>
    <property name="project_name" value="hello2"/>
    <property name="env_var:ANT_HOME" value="env.ANT_HOME"/>
    <property name="ANT_HOME" value="/ant-1.6.2"/>
    <property name="junit.output.dir" value="junit"/>
    <property name="debuglevel" value="source,lines,vars"/>
    <property name="target" value="1.2"/>
    <property name="source" value="1.3"/>
    <path id="MyLib.userclasspath">
        <pathelement location="../../../../freeware/dev/java/db/oracle-jdbc/oracle-thin_jdbc-classes12.jar/"/>
    </path>
    <path id="MyLib2.bootclasspath">
        <pathelement location="../../../../freeware/dev/java/api/javamail/javamail1.1.2.zip/"/>
    </path>
    <path id="hello.classpath">
        <pathelement location="sub/toplevel"/>
        <pathelement location="classes2"/>
        <pathelement location="classes3"/>
        <pathelement location="classes"/>
        <pathelement location="lib/log4j-1.2.7.jar"/>
        <path refid="MyLib.userclasspath"/>
        <pathelement location="lib/tomcat/servlet.jar"/>
        <pathelement location="${ECLIPSE_HOME}/startup.jar"/>
        <pathelement location="${JUNIT_HOME}/junit.jar"/>
    </path>
    <path id="run.HelloDefault.bootclasspath"/>
    <path id="run.SimpleTest.classpath">
        <path refid="hello.classpath"/>
        <pathelement location="lib/log4j-1.2.7.jar"/>
    </path>
    <path id="run.SimpleTest.bootclasspath">
        <pathelement location="/eclipse-Automated-Tests-3.1/eclipse-testing/eclipse-junit-tests-I20050627-1435/plugins/org.eclipse.jdt.core.tests.model_3.1.0/jdtcoretestsmodel.jar"/>
    </path>
    <path id="run.MyApplet.classpath">
        <path refid="hello.classpath"/>
        <pathelement location="/eclipse-Automated-Tests-3.1/eclipse-testing/eclipse-junit-tests-I20050627-1435/plugins/org.eclipse.jdt.core.tests.model_3.1.0/jdtcoretestsmodel.jar"/>
    </path>
    <path id="run.MyApplet.bootclasspath">
        <pathelement location="lib/log4j-1.2.7.jar"/>
    </path>
    <path id="hello2.classpath">
        <pathelement location="${hello2.location}/bin"/>
        <pathelement location="${hello2.location}/."/>
        <path refid="hello.classpath"/>
        <pathelement location="${JUNIT_HOME}/junit.jar"/>
    </path>
    <path id="run.Hello.classpath">
        <path refid="hello.classpath"/>
        <pathelement location="${ECLIPSE_HOME}/startup.jar"/>
        <path refid="hello2.classpath"/>
        <pathelement location="${project_name}"/>
        <pathelement location="${env_var:ANT_HOME}/lib"/>
    </path>
    <path id="run.Hello.bootclasspath">
        <pathelement location="../../../../freeware/dev/java/jdbc/oracle-thin_jdbc-classes12.jar/"/>
        <pathelement location="${ANT_HOME}/lib/ant-javamail.jar"/>
    </path>
    <target name="init">
        <mkdir dir="sub/toplevel"/>
        <mkdir dir="classes2"/>
        <mkdir dir="classes3"/>
        <mkdir dir="classes"/>
        <copy todir="sub/toplevel" includeemptydirs="false">
            <fileset dir="src/toplevel" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy todir="classes2" includeemptydirs="false">
            <fileset dir="src2" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy todir="classes3" includeemptydirs="false">
            <fileset dir="src3" excludes="**/*.launch, **/*.java"/>
        </copy>
        <copy todir="classes" includeemptydirs="false">
            <fileset dir="src" excludes="**/*.launch, **/*.java"/>
        </copy>
    </target>
    <target name="clean">
        <delete dir="sub/toplevel"/>
        <delete dir="classes2"/>
        <delete dir="classes3"/>
        <delete dir="classes"/>
    </target>
    <target name="cleanall" depends="clean"/>
    <target name="build" depends="build-subprojects,build-project"/>
    <target name="build-subprojects"/>
    <target name="build-project" depends="init">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac destdir="sub/toplevel" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
            <src path="src/toplevel"/>
            <classpath refid="hello.classpath"/>
            <bootclasspath>
                <path refid="MyLib2.bootclasspath"/>
            </bootclasspath>
        </javac>
        <javac destdir="classes2" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
            <src path="src2"/>
            <include name="test2/Hello**.java"/>
            <exclude name="test2/Hello2.java"/>
            <classpath refid="hello.classpath"/>
            <bootclasspath>
                <path refid="MyLib2.bootclasspath"/>
            </bootclasspath>
        </javac>
        <javac destdir="classes3" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
            <src path="src3"/>
            <classpath refid="hello.classpath"/>
            <bootclasspath>
                <path refid="MyLib2.bootclasspath"/>
            </bootclasspath>
        </javac>
        <javac destdir="classes" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
            <src path="src"/>
            <exclude name="test/exclude/ExcludedClass.java"/>
            <exclude name="toplevel/"/>
            <classpath refid="hello.classpath"/>
            <bootclasspath>
                <path refid="MyLib2.bootclasspath"/>
            </bootclasspath>
        </javac>
    </target>
    <target name="init-eclipse-compiler" description="copy Eclipse compiler jars to ant lib directory">
        <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 name="build-eclipse-compiler" description="compile project with Eclipse compiler">
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        <antcall target="build"/>
    </target>
    <target name="HelloDefault">
        <java fork="yes" classname="test.Hello" failonerror="true">
            <classpath refid="hello.classpath"/>
            <bootclasspath>
                <path refid="run.HelloDefault.bootclasspath"/>
                <fileset dir="${java.home}/lib" includes="*.jar"/>
            </bootclasspath>
        </java>
    </target>
    <target name="SimpleTest">
        <mkdir dir="junit"/>
        <junit fork="yes" printsummary="withOutAndErr" dir="../../../../../tmp">
            <formatter type="xml"/>
            <test name="test.SimpleTest" todir="${junit.output.dir}"/>
            <classpath refid="run.SimpleTest.classpath"/>
            <bootclasspath>
                <path refid="run.SimpleTest.bootclasspath"/>
                <fileset dir="${java.home}/lib" includes="*.jar"/>
            </bootclasspath>
        </junit>
    </target>
    <target name="MyApplet">
        <java fork="yes" classname="sun.applet.AppletViewer" failonerror="true" dir="../../../../../htmlunit-1.4/">
            <jvmarg value="-Dapplet=vmarg"/>
            <arg value="MyApplet.html"/>
            <classpath refid="run.MyApplet.classpath"/>
            <bootclasspath>
                <path refid="run.MyApplet.bootclasspath"/>
                <fileset dir="${java.home}/lib" includes="*.jar"/>
            </bootclasspath>
        </java>
    </target>
    <target name="Hello">
        <java fork="yes" classname="test.Hello" failonerror="true">
            <arg value="${resource_loc:/hello/build.xml}"/>
            <arg value="x"/>
            <classpath refid="run.Hello.classpath"/>
            <bootclasspath>
                <path refid="run.Hello.bootclasspath"/>
                <fileset dir="${java.home}/lib" includes="*.jar"/>
            </bootclasspath>
        </java>
    </target>
    <target name="junitreport">
        <junitreport todir="${junit.output.dir}">
            <fileset dir="${junit.output.dir}">
                <include name="TEST-*.xml"/>
            </fileset>
            <report format="frames" todir="junit"/>
        </junitreport>
    </target>
</project>