<?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="Round3" default="main">
<property name="axis.home" location="../../../.." />
<property name="componentName" value="test/wsdl/interop3/import1" />
        &properties;
        &paths;
        &taskdefs;
        &taskdefs_post_compile;
        &targets;
  <property name="root.dir" value="../../../.."/>

  <path id="test-classpath">
    <pathelement location="${build.dest}" />
    <pathelement path="${java.class.path}" />
    <pathelement location="${java.home}/../lib/tools.jar"/>
    <fileset dir="${root.dir}/lib">
      <include name="*.jar"/>
    </fileset>
  </path>

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

  <target name="main">
    <property name="testname" value="import1"/>

    <!-- generate skeletons -->
    <wsdl2java url="http://www.whitemesa.com/r3/${testname}.wsdl"
               output="${root.dir}/build/work" skeletonDeploy="no"
               serverSide="yes"/>

    <mkdir dir="${build.dest}"/>

    <copy file="SoapInteropImport1BindingImpl.java" overwrite="true"
          todir="${root.dir}/build/work/test/wsdl/interop3/${testname}"/>

    <copy file="Import1TestCase.java"
          todir="${root.dir}/build/work/test/wsdl/interop3/${testname}"/>

    <!-- compile the skeletons -->
    <javac srcdir="${build.dir}/work" 
      destdir="${build.dest}" debug="on">
      <classpath refid="test-classpath" />
      <include name="test/wsdl/interop3/${testname}/*.java" />
    </javac>
  </target>

</project>
