<?xml version="1.0"?>
<!DOCTYPE project [
        <!ENTITY properties SYSTEM "file:../../../../xmls/properties.xml">
        <!ENTITY paths  SYSTEM "file:../../../../xmls/path_refs.xml">
        <!ENTITY taskdefs SYSTEM "file:../../../../xmls/taskdefs.xml">
        <!ENTITY taskdefs_post_compile SYSTEM "file:../../../../xmls/taskdefs_post_compile.xml">
        <!ENTITY targets SYSTEM "file:../../../../xmls/targets.xml">
]>

<!-- ===================================================================
<description>
   Test/Sample Component file for Axis

Notes:
   This is a build file for use with the Jakarta Ant build tool.

Prerequisites:

   jakarta-ant from http://jakarta.apache.org

Build Instructions:
   To compile
        ant compile
   To execute
        ant run

Author:
  Matt Seibert mseibert@us.ibm.com

Copyright:
  Copyright (c) 2002-2003 Apache Software Foundation.
</description>
==================================================================== -->

<!--

Build file for code/WSDL generation necessary for interop3/groupE tests.

Notes:
   This is a build file for use with the Jakarta Ant build tool.

Prerequisites:
   A successful Axis build configuration.

Author:
  Glyn Normington <glyn@apache.org>

Copyright:
  Copyright (c) 2002 Apache Software Foundation.

-->

<project name="Interop3GroupE" default="Interop3GroupE.main">
<property name="axis.home" location="../../../.." />
<property name="componentName" value="test/wsdl/interop3/groupE" />
        &properties;
        &paths;
        &taskdefs;
        &taskdefs_post_compile;
        &targets;
  <property name="root.dir" value="../../../.."/>

  <path id="test-classpath">
    <pathelement location="${xerces.jar}"/>
    <pathelement location="${regexp.jar}"/>
    <pathelement location="${junit.jar}"/>
    <pathelement location="${j2ee.jar}"/>
    <pathelement location="${jsse.jar}"/>
    <pathelement location="${jimi.jar}"/>
    <pathelement location="${tools.jar}"/>
    <pathelement location="${xmlsec.jar}"/>
    <fileset dir="${lib.dir}">
        <include name="*.jar"/>
    </fileset>
    <pathelement path="${java.class.path}"/>
    <pathelement location="${build.dest}" />
    <pathelement location="${build.dir}/tools" />
  </path>

    <taskdef name="wsdl2java" classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask">
        <classpath refid="test-classpath" />
    </taskdef>

    <taskdef name="java2wsdl" classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask">
        <classpath refid="test-classpath" />
    </taskdef>

    <target name="Interop3GroupE.main">

        <!-- Use this to check the classpath if the ANT Task fails... -->
        <!--
        <property name="test-classpath.property" refid="test-classpath"/>
        <echo message="Classpath for Interop3GroupE : ${test-classpath.property}"/>
        -->

        <!-- Copy files to work directory -->
        <copy todir="${build.dir}/work/test/wsdl/interop3/groupE" overwrite="yes">
            <fileset dir="${test.dir}/wsdl/interop3/groupE">
                <include name="**.java"/>
                <include name="**.wsdd"/>
            </fileset>
        </copy>

        <!-- Compile Java -->
        <javac srcdir="${build.dir}/work" destdir="${build.dest}"
               debug="${debug}">
            <classpath refid="test-classpath" />
            <include name="test/wsdl/interop3/groupE/**.java" />
            <exclude name="test/wsdl/interop3/groupE/*TestCase.java" />
            <exclude name="test/wsdl/interop3/groupE/*Impl.java" />
            <exclude name="test/wsdl/interop3/groupE/PackageTests.java" />
        </javac>

        <!-- Now create WSDL files from the Java classes -->
        <echo message="${axis.home}/test/wsdl/interop3/groupE/InteropTestDocLit is rpc/enc and should be doc/lit"/>
        <java2wsdl output="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestDocLit.wsdl"
            className="test.wsdl.interop3.groupE.InteropTestDocLit"
            namespace="http://soapinterop.org/WSDLInteropTestDocLit"
            location="http://localhost:8080/axis/services/InteropTestDocLit">
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE"/>
        </java2wsdl>
        <java2wsdl output="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestRpcEnc.wsdl"
            className="test.wsdl.interop3.groupE.InteropTestRpcEnc"
            namespace="http://soapinterop.org/WSDLInteropTestRpcEnc"
            location="http://localhost:8080/axis/services/InteropTestRpcEnc">
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE"/>
        </java2wsdl>
        <java2wsdl output="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestList.wsdl"
            className="test.wsdl.interop3.groupE.InteropTestList"
            namespace="http://soapinterop.org/WSDLInteropTestList"
            location="http://localhost:8080/axis/services/InteropTestList">
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE"/>
        </java2wsdl>

        <!-- Create Java files from the WSDL -->
        <wsdl2java url="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestDocLit.wsdl"
                   output="${axis.home}/build/work"
                   deployscope="session"
                   noimports="no"
                   verbose="no"
                   testcase="no">
            <mapping namespace="http://soapinterop.org/WSDLInteropTestDocLit"
                     package="test.wsdl.interop3.groupE.client"/>
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE.client"/>
        </wsdl2java>
        <wsdl2java url="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestRpcEnc.wsdl"
                   output="${axis.home}/build/work"
                   deployscope="session"
                   noimports="no"
                   verbose="no"
                   testcase="no">
            <mapping namespace="http://soapinterop.org/WSDLInteropTestRpcEnc"
                     package="test.wsdl.interop3.groupE.client"/>
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE.client"/>
        </wsdl2java>
        <wsdl2java url="${axis.home}/build/work/test/wsdl/interop3/groupE/InteropTestList.wsdl"
                   output="${axis.home}/build/work"
                   deployscope="session"
                   noimports="no"
                   verbose="no"
                   testcase="no">
            <mapping namespace="http://soapinterop.org/WSDLInteropTestList"
                     package="test.wsdl.interop3.groupE.client"/>
            <mapping namespace="http://soapinterop.org/xsd"
                     package="test.wsdl.interop3.groupE.client"/>
        </wsdl2java>

        <!-- Copy files to work directory -->
        <copy todir="${build.dir}/work/test/wsdl/interop3/groupE/client" overwrite="yes">
            <fileset dir="${test.dir}/wsdl/interop3/groupE/client">
                <include name="**.java"/>
            </fileset>
        </copy>

        <!-- Compile Java -->
        <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}">
            <classpath refid="test-classpath" />
            <include name="test/wsdl/interop3/groupE/**.java" />
            <include name="test/wsdl/interop3/groupE/client/**.java" />
        </javac>

        <echo message="end of InteropTestSuite.main"/>
        <echo message=""/>
    </target>
</project>
