<?xml version="1.0" ?>
<project name="WebServices" default="build" xmlns:artifact="urn:maven-artifact-ant">
   <echo message="Processing ws"/>
<!--   <target name="dependencies"> -->
     <path id="maven.classpath">
       <pathelement location="ws/lib/maven-artifact-ant-2.0-dep/maven-artifact-ant-2.0-dep.jar"/>
     </path>

     <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant">
       <classpath refid="maven.classpath"/>
     </typedef>
<!--
     <artifact:localRepository id="local.repository" location="${basedir}/target/local-repo" layout="default"/>

     <artifact:remoteRepository id="deploy.repository" url="file://localhost/${basedir}/target/deployment-repo" layout="legacy"/>
-->
     <echo message="Processing pom"/>
     <artifact:pom id="maven.project" file="pom.xml" />

     <echo message="build dependency classpath"/>
     <artifact:dependencies pathId="dependency.classpath">
       <dependency groupId="javax.servlet" artifactId="servlet-api" 
              version="2.4" scope="provided" />
       <dependency groupId="log4j" artifactId="log4j"
              version="1.2.9">
       </dependency>

    <dependency
      groupId="springframework"
      artifactId="spring"
      version="1.2.5" >
    </dependency>

    <dependency
      groupId="commons-httpclient"
      artifactId="commons-httpclient"
      version="3.0-rc4" >
    </dependency>

    <dependency
      groupId="axis"
      artifactId="axis-saaj"
      version="1.3" >
    </dependency>

    <dependency
      groupId="axis"
      artifactId="axis-wsdl4j"
      version="1.5.1" >
    </dependency>

    <dependency 
      groupId="geronimo-spec"
      artifactId="geronimo-spec-javamail"
      version="1.3.1-rc5">
    </dependency>

    <dependency
      groupId="axis"
      artifactId="axis-ant"
      version="1.2.1">
    </dependency>

    <dependency
      groupId="commons-discovery"
      artifactId="commons-discovery"
      version="0.2">
    </dependency>

     </artifact:dependencies>
<!--   </target> -->

   <property name="foo" value="test" />

   

   <target name="build">
<!--
    <script language="javascript"> <![CDATA[

      for (i=1; i<=10; i++) {
        echo = squares.createTask("echo");
        echo.setMessage(i*i);
        echo.perform();
      }

    ]]> </script>
-->
      <echo>${maven.project.version} </echo>
      <echo>Start services build </echo>
      <ant dir="test-build" target="build" inheritRefs="true" inheritAll="true"/>

   </target>
</project>

