All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tutorial.jaxws-sample.clients.build.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0"?>
<!--
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - JOnAS
 - Copyright (C) 2009 Bull S.A.S.
 - Contact: [email protected]
 -
 - This library 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 any later version.
 -
 - This library 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 library; if not, write to the Free Software
 - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 - USA
 -
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - $Id: build.xml 16912 2009-03-19 07:55:23Z coqp $
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 -->

<project name="JAX-WS sample client" basedir="."
         xmlns:cxf="antlib:org.apache.cxf.ant.extensions"
         xmlns:jonas="http://jonas.ow2.org">

    <!-- Import common rules -->
    <import file="../../jonas-common.xml"/>


    <!-- setting for quoteSBclient.jar -->
    <property name="ejb.name" value="quoteEJB"/>
    <patternset id="ejb.patternset">
        <include name="org/ow2/jonas/tutorial/jaxws/client/*class"/>
    </patternset>

    <!-- setting for quoteReporterService -->
    <property name="webServicename" value="QuoteReporterService"/>
    <property name="wsdlURL" value="http://localhost:9000/quote/${webServicename}?WSDL"/>
    <property name="wsdlLocation" value="META-INF/wsdl/${webServicename}.wsdl"/>

    <!--  setting for app client -->
    <property name="client.name" value="quote-client"/>

    <target name="getWSDL" depends="init" description="copy wsdl under META-INF/wsdl">
        <get src="${wsdlURL}" dest="${build.generated.dir}/${webServicename}.wsdl"/>
    </target>

    <!--  build and deploy  quoteEJB ejbjar -->
    <target name="ejb" depends="getWSDL,wsdl2java,compile" description="Create quoteEJB ejbjar">
        <jar destfile="${ejb.dir}/${ejb.name}.jar">
            <fileset dir="${build.classes.dir}">
                <patternset>
                    <include name="org/ow2/jonas/tutorial/jaxws/**/*.class"/>
                </patternset>
            </fileset>
            <!-- The generated WSDL + XSD -->

            <metainf prefix="META-INF/wsdl" dir="${build.generated.dir}">
                <include name="*.wsdl"/>
                <include name="*.xsd"/>
            </metainf>

        </jar>
    </target>
    <!--    build quote-client application client -->
    <target name="appclient" description="Create appclient">
        <jar destfile="${build.generated.dir}/${client.name}.jar">
            <!--The bean's classes -->
            <fileset dir="${build.classes.dir}">
                <exclude name="**/quote/*.class"/>
                <exclude name="**/*Bean.class"/>
            </fileset>
            <manifest>
                <attribute name="Main-Class" value="org.ow2.jonas.tutorial.jaxws.client.QuoteMain"/>
            </manifest>

        </jar>

    </target>
</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy