Author: richard.opalka(a)jboss.com
Date: 2008-06-18 09:56:50 -0400 (Wed, 18 Jun 2008)
New Revision: 7640
Added:
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/zip-other-configs.xml
Modified:
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml
stack/cxf/branches/jbossws-cxf-3.0.2/src/main/distro/build-deploy.xml
Log:
[JBWS-2231] sync QA branch with trunk
Modified: stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/pom.xml 2008-06-18 13:56:39 UTC
(rev 7639)
+++ stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/pom.xml 2008-06-18 13:56:50 UTC
(rev 7640)
@@ -14,4 +14,28 @@
<relativePath>../../pom.xml</relativePath>
</parent>
+ <!-- plugins -->
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <ant antfile="src/main/scripts/zip-other-configs.xml">
+ <property name="project.build.finalName"
value="${project.build.finalName}"/>
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
Modified:
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml 2008-06-18
13:56:39 UTC (rev 7639)
+++
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml 2008-06-18
13:56:50 UTC (rev 7640)
@@ -217,13 +217,14 @@
<!-- ================================================================== -->
<macrodef name="macro-deploy-jbossws-cxf42-sar">
+ <attribute name="thirdpartydir"/>
<attribute name="artifactsdir"/>
<attribute name="targetdir"/>
<attribute name="jbossid"/>
<sequential>
<mkdir dir="@{targetdir}"/>
<copy todir="@{targetdir}" flatten="true">
- <fileset dir="@{artifactsdir}">
+ <fileset dir="@{thirdpartydir}">
<patternset refid="jbossws.service.lib.patternset"/>
<include name="**/jaxb-api.jar"/>
<include name="**/jaxb-impl.jar"/>
@@ -232,7 +233,7 @@
</fileset>
</copy>
<unzip dest="(a){targetdir}/jbossws-management.war">
- <fileset dir="@{artifactsdir}/lib">
+ <fileset dir="@{thirdpartydir}">
<include name="**/jbossws-cxf-management.war"/>
</fileset>
</unzip>
@@ -251,18 +252,19 @@
</macrodef>
<macrodef name="macro-deploy-jbossws-cxf50-sar">
+ <attribute name="thirdpartydir"/>
<attribute name="artifactsdir"/>
<attribute name="targetdir"/>
<attribute name="jbossid"/>
<sequential>
<mkdir dir="@{targetdir}"/>
<copy todir="@{targetdir}" flatten="true"
overwrite="true">
- <fileset dir="@{artifactsdir}">
+ <fileset dir="@{thirdpartydir}">
<patternset refid="jbossws.service.lib.patternset"/>
</fileset>
</copy>
<unzip dest="(a){targetdir}/jbossws-management.war">
- <fileset dir="@{artifactsdir}/lib">
+ <fileset dir="@{thirdpartydir}">
<include name="**/jbossws-cxf-management.war"/>
</fileset>
</unzip>
@@ -279,13 +281,14 @@
<!-- ================================================================== -->
<macrodef name="macro-deploy-jbossws-deployers50">
+ <attribute name="thirdpartydir"/>
<attribute name="artifactsdir"/>
<attribute name="targetdir"/>
<attribute name="jbossid"/>
<sequential>
<mkdir dir="@{targetdir}"/>
<copy todir="@{targetdir}" flatten="true"
overwrite="true">
- <fileset dir="@{artifactsdir}/lib">
+ <fileset dir="@{thirdpartydir}">
<include name="**/jbossws-common.jar"/>
<include name="**/jbossws-framework.jar"/>
<include name="**/jbossws-(a){jbossid}.jar"/>
@@ -308,13 +311,19 @@
<attribute name="targetdir"/>
<attribute name="jbossid"/>
<sequential>
- <mkdir dir="@{targetdir}"/>
- <unzip dest="(a){targetdir}/jbossws.sar"
src="@{thirdpartydir}/jbossws-(a){jbossid}-container.jar">
+ <copy todir="@{targetdir}" flatten="true"
overwrite="true">
+ <fileset dir="@{thirdpartydir}">
+ <include name="**/jbossws-(a){jbossid}-container.jar"/>
+ </fileset>
+ </copy>
+ <unzip dest="@{targetdir}"
src="@{targetdir}/jbossws-(a){jbossid}-container.jar">
<patternset>
<include name="META-INF/jbossws-container-beans.xml"/>
</patternset>
</unzip>
- <move
file="(a){targetdir}/jbossws.sar/META-INF/jbossws-container-beans.xml"
todir="@{targetdir}"/>
+ <move file="(a){targetdir}/META-INF/jbossws-container-beans.xml"
tofile="(a){targetdir}/jbossws-container-beans.xml"/>
+ <delete file="@{targetdir}/jbossws-(a){jbossid}-container.jar"/>
+ <delete dir="@{targetdir}/META-INF"/>
</sequential>
</macrodef>
@@ -325,28 +334,34 @@
<!-- JDK Detection -->
<available classname="java.io.Console"
property="HAVE_JDK_1.6"/>
- <target name="deploy-jbossws-cxf42"
depends="deploy-jbossws-endorsed">
+ <target name="deploy-jbossws-cxf42"
depends="check-parameters,deploy-jbossws-endorsed">
<macro-deploy-jbossws-bin targetdir="${installserver}/../../bin"
artifactsdir="${artifactsdir}"/>
- <macro-deploy-jbossws-client targetdir="${installserver}/../../client"
thirdpartydir="${artifactsdir}/lib" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-lib42 targetdir="${installserver}/../../lib"
thirdpartydir="${artifactsdir}/lib"/>
- <macro-deploy-jbossws-server-lib42 targetdir="${installserver}/lib"
thirdpartydir="${artifactsdir}/lib" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-cxf42-sar
targetdir="${installserver}/deploy/jbossws.sar"
artifactsdir="${artifactsdir}" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-client targetdir="${installserver}/../../client"
thirdpartydir="${thirdpartydir}" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-lib42 targetdir="${installserver}/../../lib"
thirdpartydir="${thirdpartydir}"/>
+ <macro-deploy-jbossws-server-lib42 targetdir="${installserver}/lib"
thirdpartydir="${thirdpartydir}" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-cxf42-sar
targetdir="${installserver}/deploy/jbossws.sar"
artifactsdir="${artifactsdir}" thirdpartydir="${thirdpartydir}"
jbossid="${jbossid}"/>
</target>
- <target name="deploy-jbossws-cxf50"
depends="deploy-jbossws-endorsed">
+ <target name="deploy-jbossws-cxf50"
depends="check-parameters,deploy-jbossws-endorsed">
<macro-deploy-jbossws-bin targetdir="${installserver}/../../bin"
artifactsdir="${artifactsdir}"/>
- <macro-deploy-jbossws-client targetdir="${installserver}/../../client"
thirdpartydir="${artifactsdir}/lib" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-lib50 targetdir="${installserver}/../../lib"
thirdpartydir="${artifactsdir}/lib"/>
- <macro-deploy-jbossws-server-lib50 targetdir="${installserver}/lib"
thirdpartydir="${artifactsdir}/lib" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-cxf50-sar
targetdir="${installserver}/deploy/jbossws.sar"
artifactsdir="${artifactsdir}" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-deployers50
targetdir="${installserver}/deployers/jbossws.deployer/"
artifactsdir="${artifactsdir}" jbossid="${jbossid}"/>
- <macro-deploy-jbossws-deploy50 targetdir="${installserver}/deploy"
thirdpartydir="${artifactsdir}/lib" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-client targetdir="${installserver}/../../client"
thirdpartydir="${thirdpartydir}" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-lib50 targetdir="${installserver}/../../lib"
thirdpartydir="${thirdpartydir}"/>
+ <macro-deploy-jbossws-server-lib50 targetdir="${installserver}/lib"
thirdpartydir="${thirdpartydir}" jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-cxf50-sar
targetdir="${installserver}/deploy/jbossws.sar"
artifactsdir="${artifactsdir}" thirdpartydir="${thirdpartydir}"
jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-deployers50
targetdir="${installserver}/deployers/jbossws.deployer/"
artifactsdir="${artifactsdir}" thirdpartydir="${thirdpartydir}"
jbossid="${jbossid}"/>
+ <macro-deploy-jbossws-deploy50 targetdir="${installserver}/deploy"
thirdpartydir="${thirdpartydir}" jbossid="${jbossid}"/>
</target>
<target name="deploy-jbossws-endorsed" if="HAVE_JDK_1.6">
- <macro-deploy-jbossws-endorsed
targetdir="${installserver}/../../lib/endorsed"
thirdpartydir="${artifactsdir}/lib"/>
+ <macro-deploy-jbossws-endorsed
targetdir="${installserver}/../../lib/endorsed"
thirdpartydir="${thirdpartydir}"/>
</target>
+ <target name="check-parameters">
+ <fail message="installserver must be specified"
unless="installserver"/>
+ <fail message="artifactsdir must be specified"
unless="artifactsdir"/>
+ <fail message="thirdpartydir must be specified"
unless="thirdpartydir"/>
+ </target>
+
<!-- ================================================================== -->
<!-- Undeploy JBossWS -->
<!-- ================================================================== -->
Added:
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/zip-other-configs.xml
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/zip-other-configs.xml
(rev 0)
+++
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/zip-other-configs.xml 2008-06-18
13:56:50 UTC (rev 7640)
@@ -0,0 +1,28 @@
+<?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 default="main">
+
+ <property name="target.dir" value="${basedir}/target"/>
+ <property name="source.jar"
value="${target.dir}/${project.build.finalName}-sources.jar"/>
+ <property name="binary.jar"
value="${target.dir}/${project.build.finalName}.jar"/>
+
+ <target name="main">
+ <copy todir="${target.dir}/classes/resources">
+ <fileset dir="${basedir}/../server/target/resources"/>
+ </copy>
+ <jar destfile="${source.jar}" basedir="${target.dir}/classes"
update="true"/>
+ <jar destfile="${binary.jar}" basedir="${target.dir}/classes"
update="true"/>
+ </target>
+
+</project>
Property changes on:
stack/cxf/branches/jbossws-cxf-3.0.2/modules/resources/src/main/scripts/zip-other-configs.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/cxf/branches/jbossws-cxf-3.0.2/src/main/distro/build-deploy.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.2/src/main/distro/build-deploy.xml 2008-06-18
13:56:39 UTC (rev 7639)
+++ stack/cxf/branches/jbossws-cxf-3.0.2/src/main/distro/build-deploy.xml 2008-06-18
13:56:50 UTC (rev 7640)
@@ -23,6 +23,7 @@
<param name="installserver"
value="${deploy.structure}/server/${jboss.server.instance}"/>
<param name="jbossid"
value="${jbossws.integration.target}"/>
<param name="artifactsdir"
value="${deploy.artifacts.dir}"/>
+ <param name="thirdpartydir"
value="${deploy.artifacts.dir}"/>
</antcall>
<macro-create-deploy-conf deploystructure="${deploy.structure}"/>
</target>
@@ -81,6 +82,7 @@
<param name="installserver"
value="${deploy.structure}/server/${jboss.server.instance}"/>
<param name="jbossid"
value="${jbossws.integration.target}"/>
<param name="artifactsdir"
value="${deploy.artifacts.dir}"/>
+ <param name="thirdpartydir"
value="${deploy.artifacts.dir}"/>
</antcall>
<macro-create-deploy-conf deploystructure="${deploy.structure}"/>
</target>