<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2011, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->

<project>

  <description>JBossWS test archive builder</description>

  <!-- ================================================================== -->
  <!-- Building                                                           -->
  <!-- ================================================================== -->

  <target name="build-samples-jaxws" description="Build the deployments.">

    <mkdir dir="${tests.output.dir}/test-libs"/>

	<!-- jaxws-samples-addressing -->
	<war warfile="${tests.output.dir}/test-libs/jaxws-samples-wsaddressing.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/addressing/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/addressing/StatefulEndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/addressing/StatefulEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/addressing/ServerHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/addressing/jaxws-handlers.xml"/>
      </classes>
    </war>
  	
    <!-- jaxws-samples-asynchronous -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-asynchronous.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/asynchronous/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/asynchronous/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/asynchronous/EndpointBean.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-context -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-context.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/context/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/context/EndpointJSE.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/context/WEB-INF">
        <include name="jboss-web.xml"/>
      </webinf>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.ws.common"/>
      </manifest>
    </war>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-context.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/context/EndpointEJB.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/context/META-INF">
        <include name="jboss.xml"/>
      </metainf>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.ws.common"/>
      </manifest>
    </jar>

    <!-- jaxws-samples-eardeployment -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment-pojo.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/eardeployment/SupportServlet.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF">
        <include name="jboss-web.xml"/>
        <include name="wsdl/**"/>
      </webinf>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.logging,org.jboss.ws.common"/>
      </manifest>
    </war>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment-ejb3.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF">
        <include name="wsdl/**"/>
      </metainf>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.logging"/>
      </manifest>
    </jar>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment.ear">
      <fileset dir="${tests.output.dir}/test-libs">
        <include name="jaxws-samples-eardeployment-ejb3.jar"/>
        <include name="jaxws-samples-eardeployment-pojo.war"/>
      </fileset>
    </jar>

    <!-- jaxws-samples-exception -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-exception.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/exception/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
      </classes>
    </war>
  	<jar destfile="${tests.output.dir}/test-libs/jaxws-samples-exception.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
      </fileset>
    </jar>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-exception-client.war" needxmlfile='false'>
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/exception/client/**"/>
      	<include name="org/jboss/test/ws/jaxws/samples/exception/ExceptionHelper.class"/>
      	<include name="org/jboss/test/helper/ClientHelper.class"/>
      	<include name="org/jboss/test/helper/TestServlet.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-handlerchain -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-handlerchain.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/handlerchain/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/handlerchain/EndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/handlerchain/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/handlerchain/*Handler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/handlerchain/jaxws-handlers-server.xml"/>
      </classes>
    </war>

    <!-- jaxws-samples-httpbinding -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-httpbinding-jaxb.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/jaxb/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/ProviderBeanJAXB.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/WebServiceEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/UserType.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/shared">
        <include name="wsdl/HttpBinding.wsdl"/>
      </webinf>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-httpbinding-payload.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/payload/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/ProviderBeanPayload.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/LogicalSourceHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/httpbinding/httpbinding-handlers.xml"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/shared">
        <include name="wsdl/HttpBinding.wsdl"/>
      </webinf>
    </war>
  	
  	<!-- jaxws-samples-jaxbintros -->
    <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-jaxbintros.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/EndpointBean.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/UserType.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/jaxbintros/META-INF">
        <include name="**/*" />
      </metainf>
    </jar>

    <!-- jaxws-samples-logicalhandler -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-logicalhandler-source.war"
      webxml="${tests.output.dir}/test-resources/jaxws/samples/logicalhandler/WEB-INF/web-source.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointSourceDocImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointSourceRpcImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalSourceHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ProtocolHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/PortHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/Echo.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/EchoResponse.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-source-handlers.xml"/>
      </classes>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-logicalhandler-jaxb.war"
      webxml="${tests.output.dir}/test-resources/jaxws/samples/logicalhandler/WEB-INF/web-jaxb.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointJAXBImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointJAXB.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalJAXBHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ProtocolHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/PortHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/Echo.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/EchoResponse.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ObjectFactory.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-jaxb-handlers.xml"/>
      </classes>
      <manifest>
        <attribute name="Dependencies" value="com.sun.xml.bind export services"/>
      </manifest>
    </war>

    <!-- jaxws-samples-oneway -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-oneway.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/oneway/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/oneway/PingEndpointImpl.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-provider -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-jaxb.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/jaxb/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanJAXB.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/provider/UserType.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/jaxb/WEB-INF">
        <include name="wsdl/Provider.wsdl"/>
      </webinf>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-message.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/message/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanMessage.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/message/WEB-INF">
        <include name="wsdl/Provider.wsdl"/>
      </webinf>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-payload.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/payload/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanPayload.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/provider/LogicalSourceHandler.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/provider/provider-handlers.xml"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/payload/WEB-INF">
        <include name="wsdl/Provider.wsdl"/>
      </webinf>
    </war>

    <!-- jaxws-samples-retail -->
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-retail.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/**/*.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/advanced/retail/META-INF">
        <include name="wsdl/*"/>
      </metainf>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.logging"/>
      </manifest>
    </jar>
  	
     <!-- jaxws-samples-securityDomain -->
     <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-securityDomain.jar">
       <fileset dir="${tests.output.dir}/test-classes">
         <include name="org/jboss/test/ws/jaxws/samples/securityDomain/SecureEndpointImpl.class"/>
       </fileset>
     </jar>

     <!-- jaxws-samples-serviceref -->
     <war warfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/serviceref/WEB-INF/web.xml">
        <classes dir="${tests.output.dir}/test-classes">
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointImpl.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/Endpoint.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointService.class"/>
        </classes>
     </war>
     <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref-appclient.jar">
        <fileset dir="${tests.output.dir}/test-classes">
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/ApplicationClient.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointService.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/Endpoint.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/servicref/ApplicationClient.class"/>
      </fileset>
      <manifest>
          <attribute name="main-class" value="org.jboss.test.ws.jaxws.samples.serviceref.ApplicationClient"/>
      </manifest>
        <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/serviceref/META-INF">
           <include name="application-client.xml"/>
           <include name="wsdl/**"/>
        </metainf>
     </jar>
     <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref-appclient.ear">
        <fileset dir="${tests.output.dir}/test-libs">
           <include name="jaxws-samples-serviceref-appclient.jar"/>
        </fileset>
     </jar>
     <war destfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref-servlet-client.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml">
        <classes dir="${tests.output.dir}/test-classes">
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointService.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/Endpoint.class"/>
        </classes>
        <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/serviceref/META-INF">
           <include name="wsdl/**"/>
        </webinf>
        <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/serviceref/servlet-client/WEB-INF">
           <include name="jboss-web.xml"/>
        </webinf>
     </war>
     <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref-ejbclient.jar">
        <fileset dir="${tests.output.dir}/test-classes">
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EJBClient.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EJBRemote.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/EndpointService.class"/>
           <include name="org/jboss/test/ws/jaxws/samples/serviceref/Endpoint.class"/>
        </fileset>
        <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/serviceref/META-INF">
           <include name="ejb-jar.xml"/>
           <include name="jboss.xml"/>
           <include name="wsdl/**"/>
        </metainf>
     </jar>

    <!-- jaxws-samples-soapbinding -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-soapbinding.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/soapbinding/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/jaxws/**"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocBare.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocWrapped.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/ExampleSEI.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocBareServiceImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocWrappedServiceImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/ExampleServiceImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/SubmitBareRequest.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/soapbinding/SubmitBareResponse.class"/>
      </classes>
    </war>

     <!-- jaxws-samples-swaref -->
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-swaref.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/swaref/jaxws/**"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/BareEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/BareEndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/RpcLitEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/RpcLitEndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/WrappedEndpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/WrappedEndpointImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/swaref/DocumentPayload*.class"/>
      </fileset>
    </jar>

    <!-- jaxws-samples-webmethod -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webmethod.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webmethod/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webmethod/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webmethod/EndpointImpl.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-webparam -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webparam.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webparam/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webparam/PingServiceImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webparam/PingDocument.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webparam/SecurityHeader.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-webresult -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webresult.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webresult/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webresult/CustomerServiceImpl.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webresult/CustomerRecord.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webresult/USAddress.class"/>
      </classes>
    </war>

    <!-- jaxws-samples-webservice -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice01-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF01/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean01.class"/>
      </classes>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice02-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF02/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean02.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF02">
        <include name="wsdl/**"/>
      </webinf>
    </war>
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice03-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF03/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/JSEBean03.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EndpointInterface03.class"/>
      </classes>
    </war>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice01-ejb3.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean01.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
      </fileset>
    </jar>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice02-ejb3.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean02.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/webservice/META-INF02">
        <include name="wsdl/**"/>
      </metainf>
    </jar>
    <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-webservice03-ejb3.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3Bean03.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EJB3RemoteInterface.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webservice/EndpointInterface03.class"/>
      </fileset>
    </jar>

     <!-- jaxws-samples-webserviceref -->
    <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EndpointImpl.class"/>
      </classes>
    </war>
    <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref-appclient.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EndpointClientOne.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EndpointService.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/Endpoint.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/META-INF">
        <include name="application-client.xml"/>
        <include name="jboss-client.xml"/>
        <include name="wsdl/**"/>
      </metainf>
      <manifest>
        <attribute name="main-class" value="org.jboss.test.ws.jaxws.samples.webserviceref.EndpointClientOne"/>
      </manifest>
    </jar>
    <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref-appclient.ear">
       <fileset dir="${tests.output.dir}/test-libs">
          <include name="jaxws-samples-webserviceref-appclient.jar"/>
       </fileset>
    </jar>
    <war destfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref-servlet-client.war"
      webxml="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/WEB-INF-client/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EndpointService.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EchoResponse.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/Echo.class"/>
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/META-INF">
        <include name="wsdl/**"/>
      </webinf>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/WEB-INF-client">
        <include name="jboss-web.xml"/>
      </webinf>
    </war>
    <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-webserviceref-ejb3-client.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Remote.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EndpointService.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/Endpoint.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/EchoResponse.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/webserviceref/Echo.class"/>
      </fileset>
      <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/webserviceref/META-INF">
        <include name="jboss.xml"/>
        <include name="wsdl/**"/>
      </metainf>
    </jar>
  	
    <!-- jaxws-samples-webservicerefsec -->
	<jar destfile="${tests.output.dir}/test-libs/jaxws-samples-webservicerefsec.jar">
		<fileset dir="${tests.output.dir}/test-classes">
			<include name="org/jboss/test/ws/jaxws/samples/webservicerefsec/EndpointImpl.class" />
		</fileset>
	</jar>
    <war destfile="${tests.output.dir}/test-libs/jaxws-samples-webservicerefsec-servlet-client.war"
      webxml="${tests.output.dir}/test-resources/jaxws/samples/webservicerefsec/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
		<include name="org/jboss/test/ws/jaxws/samples/webservicerefsec/Client.class" />
		<include name="org/jboss/test/ws/jaxws/samples/webservicerefsec/Endpoint.class" />
		<include name="org/jboss/test/ws/jaxws/samples/webservicerefsec/EndpointService.class" />
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/webservicerefsec/WEB-INF">
      	<include name="wsdl/**"/>
        <include name="jboss-web.xml"/>
      </webinf>
    </war>

    <!-- jaxws-samples-xop-doclit -->
    <war jarfile="${tests.output.dir}/test-libs/jaxws-samples-xop-doclit.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/xop/doclit/WEB-INF/web.xml">
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/*.class"/>
        <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/jaxws/**"/>
        <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/jaxws-handlers-server.xml"/>
        <exclude name="org/jboss/test/ws/jaxws/samples/xop/doclit/*TestCase.class"/>
      </classes>
    </war>

    <!-- endpoint-publish.war -->  	
    <war warfile="${tests.output.dir}/test-libs/endpoint-publish.war" needxmlfile='false'>
      <classes dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/publish/**/*.class"/>
        <exclude name="org/jboss/test/ws/publish/*TestCase.class"/>
      </classes>
      <classes dir="${tests.output.dir}/test-classes/org/jboss/test/ws/publish" erroronmissingdir="false">
        <include name="WEB-INF/wsdl/**" />
      </classes>
      <webinf dir="${tests.output.dir}/test-resources/publish/WEB-INF" erroronmissingdir="false">
      	<include name="wsdl/**"/>
      </webinf>
    </war>
  	
    <!-- management-recording-as7.jar -->
    <jar destfile="${tests.output.dir}/test-libs/management-recording-as7.jar">
      <fileset dir="${tests.output.dir}/test-classes">
        <include name="org/jboss/test/ws/management/recording/Endpoint.class"/>
      	<include name="org/jboss/test/ws/management/recording/EndpointWithConfigImpl.class"/>
      </fileset>
      <manifest>
        <attribute name="Dependencies" value="org.jboss.logging"/>
      </manifest>
    </jar>
    
    <!-- saaj-jbws3084 -->
    <war
       warfile="${tests.output.dir}/test-libs/saaj-soap-connection.war"
       webxml="${tests.output.dir}/test-resources/saaj/jbws3084/WEB-INF/web.xml">
       <classes dir="${tests.output.dir}/test-classes">
          <include name="org/jboss/test/ws/saaj/jbws3084/ServiceImpl.class"/>
          <include name="org/jboss/test/ws/saaj/jbws3084/ServiceIface.class"/>
          <include name="org/jboss/test/ws/saaj/jbws3084/InputStreamDataSource.class"/>
       </classes>
       <zipfileset
          dir="${tests.output.dir}/test-resources/saaj/jbws3084/WEB-INF/wsdl" 
          prefix="WEB-INF/wsdl"/>
    </war>

    <!-- Please add alphabetically -->

  </target>

</project>
