<?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/docLitParam" />
        &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>

  <target name="clean">
        <echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" />
        <delete dir="${build.dir}/classes/${componentName}"/>
        <delete dir="${build.dir}/work/${componentName}"/>
  </target>
  

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

    <!-- generate skeletons -->
    <!-- The white mesa WSDL has the same port name for this test as for the
         docLit test, which means Axis gets two services with the same name -->
    <!-- url="http://www.whitemesa.com/r3/InteropTestDocLitParameters.wsdl" -->
    <wsdl2java url="${axis.home}/test/wsdl/interop3/${testname}/interoptestdoclitparameters.wsdl"
               output="${axis.home}/build/work" skeletonDeploy="no"
               serverSide="yes"/>

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

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

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

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

</project>
