[jboss-svn-commits] JBL Code SVN: r20672 - labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/demo.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jun 20 15:59:49 EDT 2008
Author: jeffdelong
Date: 2008-06-20 15:59:49 -0400 (Fri, 20 Jun 2008)
New Revision: 20672
Added:
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/demo/build.xml
Log:
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/demo/build.xml
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/demo/build.xml (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/demo/build.xml 2008-06-20 19:59:49 UTC (rev 20672)
@@ -0,0 +1,308 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt in the distribution for a full listing
+ of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU General Public License, v. 2.0.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+
+<!-- $Id: xts-build.xml,v 1.12.4.1 2005/11/22 10:42:05 kconner Exp $ -->
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- Copyright (c) 2003, Arjuna Technologies Limited. -->
+<!-- -->
+<!-- WS-Transaction / XTS demo application -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="xts-demo" default="build" basedir=".">
+
+ <!-- ================================================================== -->
+
+ <!-- n.b. run this via the build.sh script to ensure that the property -->
+ <!-- settings in jboss.properties are set automatically -->
+
+ <!-- The properties to override are the following: -->
+ <!-- hostname (defaults to localhost) -->
+ <!-- port (defaults to 8080 for jboss) -->
+ <!-- urlstub (defaults to xtsdemowebservices for JBoss) -->
+
+ <!-- the demo needs to be linked against the client libraries -->
+ <!-- installed jboss directory -->
+
+ <property environment="env"/>
+ <property name="jboss.home" value="../../../.."/>
+
+ <!-- deploy.dir The deployment directory for the ear -->
+
+ <property name="deploy.dir" location="${jboss.home}/server/production/deploy"/>
+
+ <!-- default target build will build an ear file for the demo app for -->
+ <!-- use in a JBoss server with XTS deployed as a JBoss service -->
+ <!-- archive. The demo client communicates with demo services deployed -->
+ <!-- as JaxWS endpoints -->
+
+ <!-- target sa-build will build an ear file for the demo app for use -->
+ <!-- with a remote coordinator. this contains the XTS code and config -->
+ <!-- files bundled into an ear file to provide the client side -->
+ <!-- services. -->
+
+ <!-- target buildrpc will build an ear file for the demo app using -->
+ <!-- JaxRPC to communicate between the demo client and services -->
+
+ <!-- target sa-buildrpc will build an ear file for the demo app for -->
+ <!-- with a remote coordinator using JaxRPC to communicate between the -->
+ <!-- demo client and services -->
+
+ <!-- ================================================================== -->
+
+ <xmlproperty file="${xmlpropertyfile}" keeproot="false"/>
+
+ <property name="xts.home" value=".."/>
+ <property name="conf.dir" location="${xts.home}/conf"/>
+
+ <!--property name="lib.dir" location="${xts.home}/lib"/-->
+ <property name="lib.dir" location="../lib"/>
+ <property name="ext.dir" location="${lib.dir}/ext"/>
+ <property name="jboss.client.lib.dir" location="${jboss.home}/client"/>
+
+ <property name="lib.libs" value="wstx.jar ws-t.jar ws-c.jar"/>
+ <property name="ext.libs" value="jbossjta.jar jbossesb-rosetta.jar jbossesb-soap.jar"/>
+ <property name="jboss.client.libs" value="jbossall-client.jar jboss-jaxws.jar"/>
+ <property name="ext.compile" value="${ext.libs} jaxrpc.jar servlet.jar"/>
+
+ <property name="ext.package" value="${ext.libs} jbossts-common.jar commons-logging-1.1.jar wstx-asl-2.0.3.jar stax-api-1.0.jar"/>
+
+ <!-- ================================================================== -->
+
+ <property name="build.dir" location="build"/>
+ <property name="src.dir" location="src"/>
+ <property name="dd.dir" location="dd"/>
+ <property name="jboss.dd.dir" location="${dd.dir}/jboss"/>
+ <property name="build.config" location="${build.dir}/config"/>
+ <property name="build.soapconfig" location="${build.dir}/soapconfig"/>
+
+ <property name="web.dir" location="web"/>
+
+ <property name="javac.debug" value="on"/>
+ <property name="javac.optimize" value="off"/>
+
+ <path id="lib.path">
+ <fileset dir="${lib.dir}" includes="${lib.libs}"/>
+ </path>
+ <path id="ext.path">
+ <fileset dir="${ext.dir}" includes="${ext.compile}"/>
+ </path>
+
+ <path id="jboss.client.path">
+ <fileset dir="${jboss.client.lib.dir}" includes="${jboss.client.libs}"/>
+ </path>
+
+ <filterset id="webxml.filter">
+ <filter token="restaurantATURL" value="${restaurantATURL}"/>
+ <filter token="restaurantBAURL" value="${restaurantBAURL}"/>
+ <filter token="taxiATURL" value="${taxiATURL}"/>
+ <filter token="taxiBAURL" value="${taxiBAURL}"/>
+ <filter token="theatreATURL" value="${theatreATURL}"/>
+ <filter token="theatreBAURL" value="${theatreBAURL}"/>
+ <filter token="nightoutURL" value="${nightoutURL}"/>
+ <filter token="hostname" value="${hostname}"/>
+ <filter token="port" value="${port}"/>
+ <filter token="urlstub" value="${urlstub}"/>
+ </filterset>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ <delete>
+ <fileset dir="." includes="**/*.bak" defaultexcludes="no"/>
+ <fileset dir="." includes="**/*~" defaultexcludes="no"/>
+ <fileset dir="." includes="**/#*#" defaultexcludes="no"/>
+ <fileset dir="." includes="**/.#*" defaultexcludes="no"/>
+ </delete>
+ </target>
+
+ <target name="init-properties">
+ <property name="hostname" value="localhost"/>
+ <property name="port" value="8080"/>
+ <property name="urlstub" value="xts-demo-webservices"/>
+ <path id="compile.path">
+ <path refid="lib.path"/>
+ <path refid="jboss.client.path"/>
+ <path refid="ext.path"/>
+ </path>
+ </target>
+
+ <target name="init" depends="init-properties">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.dir}/classes"/>
+ <mkdir dir="${build.config}"/>
+ <mkdir dir="${build.soapconfig}"/>
+ </target>
+
+
+ <target name="compile" depends="init">
+ <javac destdir="${build.dir}/classes" debug="${javac.debug}"
+ optimize="${javac.optimize}" deprecation="${javac.deprecation}" >
+ <classpath>
+ <path refid="compile.path"/>
+ </classpath>
+ <src path="${src.dir}"/>
+ <patternset>
+ <!-- client app -->
+ <include name="com/jboss/jbosstm/xts/demo/client/**/*"/>
+ <!-- server impl -->
+ <include name="com/jboss/jbosstm/xts/demo/services/**"/>
+ <!-- generated server interfaces and service classes -->
+ <include name="com/jboss/jbosstm/xts/demo/restaurant/**"/>
+ <include name="com/jboss/jbosstm/xts/demo/taxi/**"/>
+ <include name="com/jboss/jbosstm/xts/demo/theatre/**"/>
+ <include name="com/jboss/jbosstm/xts/demo/nightout/**"/>
+ </patternset>
+ </javac>
+ </target>
+
+ <!-- the server side elements -->
+ <target name="jboss-webservices" depends="compile">
+ <copy tofile="${build.dir}/classes/com/jboss/jbosstm/xts/demo/services/context-handlers.xml"
+ file="${jboss.dd.dir}/context-handlers.xml"/>
+ <war destfile="${build.dir}/xts-demo-webservices.war" webxml="${jboss.dd.dir}/service-web-app.xml" >
+ <webinf dir="${jboss.dd.dir}" includes="wsdl/*.wsdl"/>
+ <classes dir="${build.dir}/classes">
+ <include name="com/jboss/jbosstm/xts/demo/services/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/restaurant/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/theatre/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/taxi/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/nightout/**/*"/>
+
+ </classes>
+ <manifest>
+ <attribute name="Class-Path" value="${lib.libs}"/>
+ </manifest>
+ </war>
+ </target>
+
+ <target name="config" depends="insertcfg">
+ <filter token="hostname" value="${hostname}"/>
+ <filter token="port" value="${port}"/>
+ <copy todir="${build.config}" filtering="true">
+ <fileset dir="${conf.dir}" includes="wscf.xml wstx.xml wst.xml"/>
+ </copy>
+ <jar destfile="${build.dir}/config.jar" basedir="${build.config}"/>
+ </target>
+
+ <target name="jboss-sa-webservices" depends="compile">
+ <copy tofile="${build.dir}/classes/com/jboss/jbosstm/xts/demo/services/context-handlers.xml"
+ file="${jboss.dd.dir}/context-handlers.xml"/>
+ <war destfile="${build.dir}/xts-sa-demo-webservices.war" webxml="${jboss.dd.dir}/service-web-app.xml" >
+ <webinf dir="${jboss.dd.dir}" includes="webservices.xml wsdl/*.wsdl"/>
+ <classes dir="${build.dir}/classes">
+ <include name="com/jboss/jbosstm/xts/demo/services/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/restaurant/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/theatre/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/taxi/**/*"/>
+ <include name="com/jboss/jbosstm/xts/demo/nightout/**/*"/>
+ </classes>
+ <manifest>
+ <attribute name="Class-Path" value="${lib.libs} ${ext.package}"/>
+ </manifest>
+ </war>
+ </target>
+
+
+
+
+ <!-- the client side elements -->
+ <target name="jboss-webapp" depends="compile">
+ <copy tofile="${build.dir}/client-web-app.xml" file="${jboss.dd.dir}/client-web-app.xml">
+ <filterset refid="webxml.filter"/>
+ </copy>
+
+ <war warfile="${build.dir}/xts-demo.war" webxml="${build.dir}/client-web-app.xml">
+ <classes dir="${build.dir}/classes">
+ <exclude name="com/jboss/jbosstm/xts/demo/services/**/*"/>
+ </classes>
+ <fileset dir="${web.dir}"/>
+ <webinf dir="${jboss.dd.dir}" includes="wsdl/**"/>
+ </war>
+ </target>
+
+ <target name="jboss-sa-webapp" depends="compile">
+ <copy tofile="${build.dir}/client-web-app.xml" file="${jboss.dd.dir}/client-web-app.xml">
+ <filterset refid="webxml.filter"/>
+ </copy>
+
+ <war warfile="${build.dir}/xts-sa-demo.war" webxml="${build.dir}/client-web-app.xml">
+ <classes dir="${build.dir}/classes">
+ <exclude name="com/jboss/jbosstm/xts/demo/services/**/*"/>
+ </classes>
+ <fileset dir="${web.dir}"/>
+ <manifest>
+ <attribute name="Class-Path" value="${ext.package}"/>
+ </manifest>
+ <webinf dir="${jboss.dd.dir}" includes="wsdl/**"/>
+ </war>
+ </target>
+
+
+
+ <target name="build" depends="jboss-webapp, jboss-webservices"/>
+
+ <target name="sa-build" depends="jboss-sa-webapp, jboss-sa-webservices"/>
+
+ <target name="insertcfg" depends="init">
+ <filter token="hostname" value="${hostname}"/>
+ <filter token="port" value="${port}"/>
+ <filter token="urlstub" value="${urlstub}"/>
+
+ <unjar src="${xts.home}/webapps/ws-c.war" dest="${build.dir}/tmp/ws-c"/>
+
+ <copy file="${xts.home}/coordinator/dd/ws-c_web-app.xml"
+ tofile="${build.dir}/tmp/ws-c/WEB-INF/web.xml" filtering="true" overwrite="true"/>
+
+ <jar destfile="${build.dir}/ws-c.war" basedir="${build.dir}/tmp/ws-c" manifest="${build.dir}/tmp/ws-c/META-INF/MANIFEST.MF"/>
+
+ <delete dir="${build.dir}/tmp/ws-c"/>
+
+ <unjar src="${xts.home}/webapps/ws-t.war" dest="${build.dir}/tmp/ws-t"/>
+
+ <copy file="${xts.home}/coordinator/dd/ws-t_web-app.xml"
+ tofile="${build.dir}/tmp/ws-t/WEB-INF/web.xml" filtering="true" overwrite="true"/>
+
+ <jar destfile="${build.dir}/ws-t.war" basedir="${build.dir}/tmp/ws-t" manifest="${build.dir}/tmp/ws-t/META-INF/MANIFEST.MF"/>
+
+ <delete dir="${build.dir}/tmp/ws-t"/>
+ </target>
+
+ <!--
+ <target name="deploy" depends="build, undeploy">
+ <copy file="${build.dir}/xts-demo.ear" tofile="${deploy.dir}/xts-demo.ear"/>
+ </target>
+
+ <target name="undeploy">
+ <delete file="${deploy.dir}/xts-demo.ear"/>
+ </target>
+
+ <target name="sa-deploy" depends="sa-build, undeploy">
+ <copy file="${build.dir}/xts-sa-demo.ear" tofile="${deploy.dir}/xts-sa-demo.ear"/>
+ </target>
+
+ <target name="sa-undeploy">
+ <delete file="${deploy.dir}/xts-sa-demo.ear"/>
+ </target>
+-->
+
+</project>
More information about the jboss-svn-commits
mailing list