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

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

The newest version!
<?xml version="1.0"?>

<!--
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - JOnAS: Java(TM) Open Application Server
 - Copyright (C) 1999-2009 Bull S.A.
 - 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 $
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 -->

<!--
 - JOnAS tutorial examples building directives for Ant
 -->

<project name="JAX-WS Tutorial Example" default="build-deploy" basedir=".">


    <target name="clean" description="Remove all the generated files or directories">
        <ant dir="service" target="clean"/>
        <ant dir="clients" target="clean"/>
    </target>

    <target name="build-deploy" description="Build deploy quote.war and quoteEJB.jar (JOnAS must be running)">
        <ant dir="service" target="war"/>
        <ant dir="clients" target="ejb"/>
        <ant dir="clients" target="appclient"/>
    </target>

    <target name="run-client" description="Execute the JAX-WS Client">

        <java fork="true"
              classpathref="client.path"
              classname="org.ow2.jonas.client.ClientContainer">

            <!-- Uncomment for debugging -->
            <!--jvmarg line="-Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=4142,suspend=y"/-->

            <!-- JVM Options -->
            <sysproperty key="java.security.auth.login.config"
                         value="${jonas.base}/conf/jaas.config"/>
            <sysproperty key="java.endorsed.dirs"
                         value="${jonas.root}/lib/endorsed"/>
            <sysproperty key="jonas.root"
                         value="${jonas.root}"/>
            <!-- The Application to execute -->
            <arg path="clients/build/generated/quote-client.jar"/>

        </java>
    </target>

</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy