<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Id -->
<project name="anttasks">

    <property environment="env"/>

    <!-- The following file contains the properties required for proper execution.  Please ensure that the properties
         in the file are correct. -->
    <property file="ant-oracle.properties"/>

    <property name="ORACLE_HOME" value="${oracle.home}"/>
    <property name="JAVA_HOME" value="${java.home}"/>
    <property name="OJDK_HOME" value="${ORACLE_HOME}/jdk"/>
    <property name="TOPLINK_HOME" value="${env.TOPLINK_HOME}"/>
    <property name="J2EE_HOME" value="${ORACLE_HOME}/j2ee/home"/>


    <!-- Runtime classpath for J2EE based applications -->
    <path id="common.j2ee.class.path">
        <pathelement location="."/>
        <pathelement location="${ORACLE_HOME}/jdbc/lib/ojdbc14dms.jar"/>
        <pathelement location="${J2EE_HOME}/oc4j.jar"/>
        <pathelement location="${J2EE_HOME}/lib/ejb.jar"/>
        <pathelement location="${J2EE_HOME}/lib/servlet.jar"/>
        <pathelement location="${J2EE_HOME}/lib/jta.jar"/>
        <pathelement location="${J2EE_HOME}/lib/jms.jar"/>
        <pathelement location="${J2EE_HOME}/lib/javax88.jar"/>
        <pathelement location="${J2EE_HOME}/lib/javax77.jar"/>
        <pathelement location="${J2EE_HOME}/lib/jmxri.jar"/>
        <pathelement location="${J2EE_HOME}/lib/jmx_remote_api.jar"/>
        <pathelement location="./build"/>
    </path>
    <property name="common.j2ee.class.path" refid="common.j2ee.class.path"/>

    <!-- Runtime classpath for webservices applications. -->
    <path id="common.webservices.class.path">
        <pathelement location="${J2EE_HOME}/lib/jax-qname-namespace.jar"/>
        <pathelement location="${J2EE_HOME}/lib/activation.jar"/>
        <pathelement location="${J2EE_HOME}/lib/mail.jar"/>
        <pathelement location="${J2EE_HOME}/lib/http_client.jar"/>
        <pathelement location="${ORACLE_HOME}/lib/xmlparserv2.jar"/>
        <pathelement location="${ORACLE_HOME}/jlib/ojpwss.jar"/>
        <pathelement location="${ORACLE_HOME}/jlib/ojpxml.jar"/>
        <pathelement location="${ORACLE_HOME}/jlib/ojpse.jar"/>
        <pathelement location="${ORACLE_HOME}/jlib/ojpsaml.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/wsserver.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/wsclient.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/wssecurity.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/dom4j.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/commons-logging.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/jaxrpc-api.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/jaxrpc.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/saaj-api.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/orasaaj.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/xsdlib.jar"/>
    </path>
    <property name="common.webservices.class.path" refid="common.webservices.class.path"/>

    <!-- OC4J tasks classpath.  -->
    <path id="common.tasks.class.path">
        <pathelement location="${ORACLE_HOME}/j2ee/utilities/ant-oracle-classes.jar"/>
        <pathelement location="${J2EE_HOME}/lib/javax88.jar"/>
        <pathelement location="${J2EE_HOME}/admin_client.jar"/>
        <pathelement location="${J2EE_HOME}/oc4jclient.jar"/>
        <pathelement location="${ORACLE_HOME}/webservices/lib/wsa.jar"/>
        <pathelement location="${J2EE_HOME}/lib/bcel.jar"/>
    </path>
    <property name="common.tasks.class.path" refid="common.tasks.class.path"/>

    <!-- Target for displaying build information. -->
    <target name="common">
        <echo message="BuildName:  ${ant.project.name}"/>
        <echo message="BuildHome:  ${basedir}"/>
        <echo message="BuildFile:  ${ant.file}"/>
        <echo message="BuildJVM:   ${ant.java.version}"/>
        <echo message="OracleHome: ${oracle.home}"/>
    </target>

    <!-- Task definitions for oc4j webservices tasks -->
    <taskdef resource="oracle/antlib.xml" uri="antlib:oracle" loaderRef="oracle.tasks.loader">
        <classpath>
            <pathelement path="${common.tasks.class.path}"/>
        </classpath>
    </taskdef>
</project>
