[jboss-cvs] JBossAS SVN: r70779 - trunk/thirdparty/src/main/resources/jboss/jbossws/resources.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 12 12:15:38 EDT 2008


Author: pgier
Date: 2008-03-12 12:15:37 -0400 (Wed, 12 Mar 2008)
New Revision: 70779

Added:
   trunk/thirdparty/src/main/resources/jboss/jbossws/resources/jbossws-deploy-macros.xml
Log:
Adding new jbossws resource file.

Added: trunk/thirdparty/src/main/resources/jboss/jbossws/resources/jbossws-deploy-macros.xml
===================================================================
--- trunk/thirdparty/src/main/resources/jboss/jbossws/resources/jbossws-deploy-macros.xml	                        (rev 0)
+++ trunk/thirdparty/src/main/resources/jboss/jbossws/resources/jbossws-deploy-macros.xml	2008-03-12 16:15:37 UTC (rev 70779)
@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!--                                                                        -->
+<!--  JBoss, the OpenSource J2EE webOS                                      -->
+<!--                                                                        -->
+<!--  Distributable under LGPL license.                                     -->
+<!--  See terms of license at http://www.gnu.org.                           -->
+<!--                                                                        -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+
+<project>
+  
+  <!-- 
+    These patterns should be common for all supported containers.
+    All jars must also be declared in component-info.xml to ensure 
+    that the AS build uses the same version.
+  -->
+  <patternset id="jbossws.bin.patternset">
+    <include name="**/wsconsume.bat"/>
+    <include name="**/wsconsume.sh"/>
+    <include name="**/wsprovide.bat"/>
+    <include name="**/wsprovide.sh"/>
+    <include name="**/wsrunclient.bat"/>
+    <include name="**/wsrunclient.sh"/>
+    <include name="**/wstools.bat"/>
+    <include name="**/wstools.sh"/>
+  </patternset>
+  
+  <patternset id="jbossws.client.patternset">
+    <include name="**/jbossws-client.jar"/>
+    <include name="**/jbossws-common.jar"/>
+    <include name="**/jbossws-framework.jar"/>
+    <include name="**/jbossws-spi.jar"/>
+    <include name="**/jaxb-api.jar"/>
+    <include name="**/jaxb-impl.jar"/>
+    <include name="**/jaxb-xjc.jar"/>
+    <include name="**/jaxws-tools.jar"/>
+    <include name="**/jaxws-rt.jar"/>
+    <include name="**/jboss-jaxrpc.jar"/>
+    <include name="**/jboss-jaxws.jar"/>
+    <include name="**/jboss-jaxws-ext.jar"/>
+    <include name="**/jboss-saaj.jar"/>
+    <include name="**/policy.jar"/>
+    <include name="**/stax-api.jar"/>
+    <include name="**/stax-ex.jar"/>
+    <include name="**/streambuffer.jar"/>
+    <include name="**/wsdl4j.jar"/>
+    <include name="**/wstx.jar"/>
+  </patternset>
+  
+  <patternset id="jbossws.lib.patternset">
+    <include name="**/jaxb-api.jar"/>
+    <include name="**/jaxb-impl.jar"/>
+  </patternset>
+  
+  <patternset id="jbossws.lib.endorsed.patternset">
+    <include name="**/jboss-jaxrpc.jar"/>
+    <include name="**/jboss-jaxws.jar"/>
+    <include name="**/jboss-jaxws-ext.jar"/>
+    <include name="**/jboss-saaj.jar"/>
+    <include name="**/jaxb-api.jar"/>
+  </patternset>
+  
+  <patternset id="jbossws.server.lib.patternset">
+    <include name="**/jbossws-common.jar"/>
+    <include name="**/jbossws-framework.jar"/>
+    <include name="**/jbossws-spi.jar"/>
+    <include name="**/jboss-jaxrpc.jar"/>
+    <include name="**/jboss-jaxws.jar"/>
+    <include name="**/jboss-jaxws-ext.jar"/>
+    <include name="**/jboss-saaj.jar"/>
+  </patternset>
+  
+  <patternset id="jbossws.service.lib.patternset">
+    <include name="**/jboss-jaxb-intros.jar"/>
+    <include name="**/jbossws-core.jar"/>
+    <include name="**/policy.jar"/>
+    <include name="**/wsdl4j.jar"/>
+    <include name="**/xmlsec.jar"/>
+  </patternset>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy Bin                                                         -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-bin">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.bin.patternset"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy Lib                                                         -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-lib">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.lib.patternset"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy Lib Endorsed                                                -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-endorsed">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.lib.endorsed.patternset"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy Client                                                      -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-client">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.client.patternset"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy Server Lib                                                  -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-server-lib">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.server.lib.patternset"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy JBossWS Service                                             -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-deploy-jbossws-native42-sar">
+    <attribute name="thirdpartydir"/>
+    <attribute name="resourcesdir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.service.lib.patternset"/>
+          <include name="**/jbossws-deploy.conf"/>
+          <include name="**/jaxb-api.jar"/>
+          <include name="**/jaxb-impl.jar"/>
+          <include name="**/stax-api.jar"/>
+          <include name="**/wstx.jar"/>
+        </fileset>
+      </copy>
+      <unzip dest="@{targetdir}/jbossws-context.war" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <include name="**/jbossws-context.war"/>
+        </fileset>
+      </unzip>
+      <copy todir="@{targetdir}/jbossws.beans/META-INF" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <include name="**/jbossws-native42-beans.xml"/>
+        </fileset>
+      </copy>
+      <move file="@{targetdir}/jbossws.beans/META-INF/jbossws-native42-beans.xml" tofile="@{targetdir}/jbossws.beans/META-INF/jboss-beans.xml"/>
+      <copy todir="@{targetdir}/META-INF" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <include name="**/standard-jaxrpc-*-config.xml"/>
+          <include name="**/standard-jaxws-*-config.xml"/>
+        </fileset>
+        <fileset dir="@{resourcesdir}/META-INF"/>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <macrodef name="macro-deploy-jbossws-native50-sar">
+    <attribute name="thirdpartydir"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <mkdir dir="@{targetdir}"/>
+      <copy todir="@{targetdir}" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <patternset refid="jbossws.service.lib.patternset"/>
+          <include name="**/jbossws-deploy.conf"/>
+        </fileset>
+      </copy>
+      <unzip dest="@{targetdir}/jbossws-context.war" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <include name="**/jbossws-context.war"/>
+        </fileset>
+      </unzip>
+      <copy todir="@{targetdir}/META-INF" flatten="true" overwrite="true">
+        <fileset dir="@{thirdpartydir}">
+          <include name="**/standard-jaxrpc-*-config.xml"/>
+          <include name="**/standard-jaxws-*-config.xml"/>
+          <include name="**/jbossws-native50-beans.xml"/>
+        </fileset>
+      </copy>
+    </sequential>
+  </macrodef>
+  
+  <!-- ================================================================== -->
+  <!-- Deploy JBossWS                                                     -->
+  <!-- ================================================================== -->
+  
+  <!-- JDK Detection -->
+  <available classname="java.io.Console" property="HAVE_JDK_1.6"/>
+  
+  <target name="deploy-jbossws-native42" depends="deploy-jbossws-endorsed">
+    <macro-deploy-jbossws-bin targetdir="${installserver}/../../bin" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-lib targetdir="${installserver}/../../lib" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-client targetdir="${installserver}/../../client" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-server-lib targetdir="${installserver}/lib" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-native42-sar targetdir="${installserver}/deploy/jbossws.sar" thirdpartydir="${thirdpartydir}" resourcesdir="${resourcesdir}"/>
+  </target>
+  
+  <target name="deploy-jbossws-native50" depends="deploy-jbossws-endorsed">
+    <macro-deploy-jbossws-bin targetdir="${installserver}/../../bin" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-lib targetdir="${installserver}/../../lib" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-client targetdir="${installserver}/../../client" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-server-lib targetdir="${installserver}/lib" thirdpartydir="${thirdpartydir}"/>
+    <macro-deploy-jbossws-native50-sar targetdir="${installserver}/deploy/jbossws.sar" thirdpartydir="${thirdpartydir}"/>
+  </target>
+  
+  <target name="deploy-jbossws-endorsed" if="HAVE_JDK_1.6">
+    <macro-deploy-jbossws-endorsed targetdir="${installserver}/../../lib/endorsed" thirdpartydir="${thirdpartydir}"/>
+  </target>
+  
+  <!-- ================================================================== -->
+  <!-- Undeploy JBossWS                                                   -->
+  <!-- ================================================================== -->
+  
+  <macrodef name="macro-undeploy-jbossws">
+    <attribute name="defaultconf"/>
+    <attribute name="targetdir"/>
+    <sequential>
+      <loadfile property="jbossws.deploy.conf" srcfile="@{targetdir}/jbossws-deploy.conf" failonerror="false"/>
+      <loadfile property="jbossws.deploy.conf" srcfile="@{defaultconf}" failonerror="false"/>
+      
+      <property name="jboss.undeploy.home" value="@{targetdir}/../../../.."/>
+      <available property="jboss.undeploy.client" file="${jboss.undeploy.home}/client"/>
+      <fail message="Cannot find ${jboss.undeploy.home}/client" unless="jboss.undeploy.client"/>
+      
+      <delete>
+        <fileset dir="${jboss.undeploy.home}" includes="${jbossws.deploy.conf}"/>
+      </delete>
+      <delete dir="@{targetdir}"/>
+    </sequential>
+  </macrodef>
+  
+</project>
\ No newline at end of file


Property changes on: trunk/thirdparty/src/main/resources/jboss/jbossws/resources/jbossws-deploy-macros.xml
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native




More information about the jboss-cvs-commits mailing list