<?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>
==================================================================== -->

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

  <target name="check">
    <echo message="${build.dest}"/>
  </target>

  <path id="test-classpath">
    <pathelement location="${build.dest}" />
    <pathelement path="${java.class.path}" />
    <pathelement location="${java.home}/../lib/tools.jar"/>
    <fileset dir="lib">
     <include name="*.jar"/>
    </fileset>
  </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="main">
    <property file="axis.properties"/>

    <!-- EmptySA -->
    <!-- Steps 1, 2 and 4: -->
    <wsdl2java url="http://www.whitemesa.com/r3/emptysa.wsdl"
               output="${basedir}/build/work"
               skeleton="yes">
        <mapping namespace="http://soapinterop/" package="test.wsdl.interop3.emptysa"/>
    </wsdl2java>
    <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="on">
      <classpath refid="test-classpath" />
      <include name="test/wsdl/interop3/emptysa/*.java" />
    </javac>

    <!-- Step 3:  see test/wsdl/interop3/Import1TestCase.java -->
    <!-- Step 5:  see test/wsdl/interop3/Import1TestCase.java -->

    <!-- Step 6:  -->
    <java2wsdl output="${basedir}/build/work/test/wsdl/interop3/emptysa.wsdl"
               className= "test.wsdl.interop3.emptysa.SoapInteropEmptySAPortType"
               namespace="http://soapinterop/"
           location="http://localhost:8080/axis/services/EmptySA">
        <mapping namespace="http://soapinterop/" package="test.wsdl.interop3.emptysa"/>
    </java2wsdl>

    <wsdl2java url="${basedir}/build/work/test/wsdl/interop3/emptysa.wsdl"
               output="${basedir}/build/work"
               skeleton="yes">
        <mapping namespace="http://soapinterop/" package="test.wsdl.interop3.emptysa.step6"/>
    </wsdl2java>

    <copy file="test/wsdl/interop3/EmptySATestCase.java" todir="build/work/test/wsdl/interop3"/>

    <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}">
        <classpath refid="test-classpath"/>
        <include name="test/wsdl/interop3/emptysa/step6/*.java" />
        <include name="test/wsdl/interop3/EmptySATestCase.java"/>
    </javac>

    <!-- Step 7:  see test/wsdl/interop3/Import1TestCase.java -->
    <!-- Step 8:  see test/wsdl/interop3/Import1TestCase.java -->
    </target>
</project>
