Author: thomas.diesler(a)jboss.com
Date: 2008-03-13 09:43:06 -0400 (Thu, 13 Mar 2008)
New Revision: 5962
Added:
stack/metro/trunk/ant-import/build-prepare-deploy.xml
stack/metro/trunk/ant-import/jbossws-deploy-macros.xml
Removed:
stack/metro/trunk/ant-import/build-testsuite.xml
stack/metro/trunk/ant-import/macros-deploy-metro.xml
stack/metro/trunk/src/main/distro/bin-dist-deploy.xml
Modified:
stack/metro/trunk/ant-import-tests/build-testsuite.xml
stack/metro/trunk/ant-import/build-deploy.xml
stack/metro/trunk/build.xml
stack/metro/trunk/src/main/distro/ant.properties.example
stack/metro/trunk/src/main/distro/bin-dist-build.xml
Log:
Align deploy steps with native
Modified: stack/metro/trunk/ant-import/build-deploy.xml
===================================================================
--- stack/metro/trunk/ant-import/build-deploy.xml 2008-03-13 13:35:12 UTC (rev 5961)
+++ stack/metro/trunk/ant-import/build-deploy.xml 2008-03-13 13:43:06 UTC (rev 5962)
@@ -12,58 +12,123 @@
<!-- $Id$ -->
<project>
-
- <import file="${int.metro.dir}/ant-import/macros-deploy-metro.xml"/>
- <property name="deploy.dir"
value="${int.metro.dir}/output/deploy"/>
- <property name="jbossws.default.undeploy.files"
value="${int.metro.dir}/ant-import/jbossws-default-deploy.conf"/>
-
<!-- ================================================================== -->
- <!-- Deployment JBoss422 -->
+ <!-- Prepare Deployment Structure JBoss-4.2.x -->
<!-- ================================================================== -->
-
- <target name="deploy-jboss422"
depends="jars-jboss42,undeploy-jboss422" description="Deploy jbossws/metro
to jboss42">
- <macro-deploy-metro422 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
+
+ <target name="deploy-structure-jboss42"
depends="prepare-deploy">
+ <delete dir="${deploy.structure.jboss42}"/>
+ <antcall target="deploy-jbossws-metro42"
inheritall="false">
+ <param name="installserver"
value="${deploy.structure.jboss42}/server/${jboss.server.instance}"/>
+ <param name="resourcesdir"
value="${deploy.artifacts.dir}/resources/jbossws-jboss42.sar"/>
+ <param name="thirdpartydir"
value="${deploy.artifacts.dir}"/>
+ </antcall>
+ <macro-create-deploy-conf
deploystructure="${deploy.structure.jboss42}"/>
</target>
+
+ <!-- ================================================================== -->
+ <!-- Deployment JBoss422 -->
+ <!-- ================================================================== -->
- <target name="undeploy-jboss422" depends="prepare"
description="Remove jbossws/metro from jboss42">
- <macro-undeploy-metro422/>
+ <target name="deploy-jboss422"
depends="undeploy-jboss422,deploy-structure-jboss42" description="Deploy
jbossws to jboss422">
+ <fail message="Not available: ${jboss422.available.file}"
unless="jboss422.available"/>
+ <copy todir="${jboss422.home}" overwrite="true">
+ <fileset dir="${deploy.structure.jboss42}"/>
+ </copy>
+ <unzip dest="${jboss422.server.deploy}/juddi-service.sar"
src="${deploy.artifacts.dir}/lib/juddi-service.sar"/>
+ <chmod dir="${jboss422.home}/bin" perm="+x"
includes="*.sh"/>
</target>
+
+ <target name="undeploy-jboss422" depends="prepare"
description="Remove jbossws from jboss422">
+ <fail message="Not available: ${jboss422.available.file}"
unless="jboss422.available"/>
+ <macro-undeploy-jbossws
targetdir="${jboss422.server.deploy}/jbossws.sar"
defaultconf="${jbossws.default.deploy.conf}"/>
+ <delete dir="${jboss422.server.deploy}/juddi-service.sar"/>
+ </target>
<!-- ================================================================== -->
- <!-- Deployment JBoss423 -->
+ <!-- Deployment JBoss423 -->
<!-- ================================================================== -->
- <target name="deploy-jboss423"
depends="jars-jboss42,undeploy-jboss423" description="Deploy jbossws/metro
to jboss42">
- <macro-deploy-metro423 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
+ <target name="deploy-jboss423"
depends="undeploy-jboss423,deploy-structure-jboss42" description="Deploy
jbossws to jboss423">
+ <fail message="Not available: ${jboss423.available.file}"
unless="jboss423.available"/>
+ <copy todir="${jboss423.home}" overwrite="true">
+ <fileset dir="${deploy.structure.jboss42}"/>
+ </copy>
+ <unzip dest="${jboss423.server.deploy}/juddi-service.sar"
src="${deploy.artifacts.dir}/lib/juddi-service.sar"/>
+ <chmod dir="${jboss423.home}/bin" perm="+x"
includes="*.sh"/>
</target>
-
- <target name="undeploy-jboss423" depends="prepare"
description="Remove jbossws/metro from jboss42">
- <macro-undeploy-metro423/>
+
+ <target name="undeploy-jboss423" depends="prepare"
description="Remove jbossws from jboss423">
+ <fail message="Not available: ${jboss423.available.file}"
unless="jboss423.available"/>
+ <macro-undeploy-jbossws
targetdir="${jboss423.server.deploy}/jbossws.sar"
defaultconf="${jbossws.default.deploy.conf}"/>
+ <delete dir="${jboss423.server.deploy}/juddi-service.sar"/>
</target>
-
+
<!-- ================================================================== -->
- <!-- Deployment JBoss500 -->
+ <!-- Prepare Deployment Structure JBoss-5.0.x -->
<!-- ================================================================== -->
-
- <target name="deploy-jboss500"
depends="jars-jboss50,undeploy-jboss500" description="Deploy jbossws/metro
to jboss50">
- <macro-deploy-metro500 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
+
+ <target name="deploy-structure-jboss50"
depends="prepare-deploy">
+ <delete dir="${deploy.structure.jboss50}"/>
+ <antcall target="deploy-jbossws-metro50"
inheritall="false">
+ <param name="installserver"
value="${deploy.structure.jboss50}/server/${jboss.server.instance}"/>
+ <param name="thirdpartydir"
value="${deploy.artifacts.dir}"/>
+ </antcall>
+ <macro-create-deploy-conf
deploystructure="${deploy.structure.jboss50}"/>
</target>
+
+ <!-- ================================================================== -->
+ <!-- Deployment JBoss500 -->
+ <!-- ================================================================== -->
- <target name="undeploy-jboss500" depends="prepare"
description="Remove jbossws/metro from jboss50">
- <macro-undeploy-metro500/>
+ <target name="deploy-jboss500"
depends="undeploy-jboss500,deploy-structure-jboss50" description="Deploy
jbossws to jboss500">
+ <fail message="Not available: ${jboss500.available.file}"
unless="jboss500.available"/>
+ <copy todir="${jboss500.home}" overwrite="true">
+ <fileset dir="${deploy.structure.jboss50}"/>
+ </copy>
+ <unzip dest="${jboss500.server.deploy}/juddi-service.sar"
src="${deploy.artifacts.dir}/lib/juddi-service.sar"/>
+ <chmod dir="${jboss500.home}/bin" perm="+x"
includes="*.sh"/>
</target>
-
+
+ <target name="undeploy-jboss500" depends="prepare"
description="Remove jbossws from jboss500">
+ <fail message="Not available: ${jboss500.available.file}"
unless="jboss500.available"/>
+ <macro-undeploy-jbossws
targetdir="${jboss500.server.deploy}/jbossws.sar"
defaultconf="${jbossws.default.deploy.conf}"/>
+ <delete dir="${jboss500.server.deploy}/juddi-service.sar"/>
+ </target>
+
<!-- ================================================================== -->
- <!-- Deployment JBoss501 -->
+ <!-- Deployment JBoss501 -->
<!-- ================================================================== -->
- <target name="deploy-jboss501"
depends="jars-jboss50,undeploy-jboss501" description="Deploy jbossws/metro
to jboss50">
- <macro-deploy-metro501 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
+ <target name="deploy-jboss501"
depends="undeploy-jboss501,deploy-structure-jboss50" description="Deploy
jbossws to jboss501">
+ <fail message="Not available: ${jboss501.available.file}"
unless="jboss501.available"/>
+ <copy todir="${jboss501.home}" overwrite="true">
+ <fileset dir="${deploy.structure.jboss50}"/>
+ </copy>
+ <unzip dest="${jboss501.server.deploy}/juddi-service.sar"
src="${deploy.artifacts.dir}/lib/juddi-service.sar"/>
+ <chmod dir="${jboss501.home}/bin" perm="+x"
includes="*.sh"/>
</target>
-
- <target name="undeploy-jboss501" depends="prepare"
description="Remove jbossws/metro from jboss50">
- <macro-undeploy-metro501/>
+
+ <target name="undeploy-jboss501" depends="prepare"
description="Remove jbossws from jboss501">
+ <fail message="Not available: ${jboss501.available.file}"
unless="jboss501.available"/>
+ <macro-undeploy-jbossws
targetdir="${jboss501.server.deploy}/jbossws.sar"
defaultconf="${jbossws.default.deploy.conf}"/>
+ <delete dir="${jboss501.server.deploy}/juddi-service.sar"/>
</target>
-
+
+ <!-- ================================================================== -->
+ <!-- Create jbossws-deploy.conf -->
+ <!-- ================================================================== -->
+
+ <macrodef name="macro-create-deploy-conf">
+ <attribute name="deploystructure"/>
+ <sequential>
+ <fileset id="jbossws.deploy.fileset"
dir="@{deploystructure}" excludes="**/jbossws.sar/**"/>
+ <property name="jbossws.deploy.fileset"
refid="jbossws.deploy.fileset"/>
+ <property name="jbossws.sar.dir"
value="(a){deploystructure}/server/${jboss.server.instance}/deploy/jbossws.sar"/>
+ <echo file="${jbossws.sar.dir}/jbossws-deploy.conf"
message="${jbossws.deploy.fileset}"/>
+ <replace file="${jbossws.sar.dir}/jbossws-deploy.conf"
token=";" value=" "/>
+ </sequential>
+ </macrodef>
+
</project>
Added: stack/metro/trunk/ant-import/build-prepare-deploy.xml
===================================================================
--- stack/metro/trunk/ant-import/build-prepare-deploy.xml (rev 0)
+++ stack/metro/trunk/ant-import/build-prepare-deploy.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -0,0 +1,59 @@
+<?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>
+
+ <!-- ================================================================== -->
+ <!-- Prepare Deployment Source -->
+ <!-- ================================================================== -->
+
+ <target name="prepare-deploy" depends="jars">
+
+ <delete dir="${deploy.artifacts.dir}"/>
+
+ <unzip dest="${deploy.artifacts.dir}/bin"
src="${thirdparty.dir}/jbossws-framework-scripts.zip"/>
+ <copy todir="${deploy.artifacts.dir}/lib">
+ <fileset dir="${thirdparty.dir}">
+ <patternset refid="jbossws.client.patternset"/>
+ <patternset refid="jbossws.lib.patternset"/>
+ <patternset refid="jbossws.lib.endorsed.patternset"/>
+ <patternset refid="jbossws.server.lib.patternset"/>
+ <patternset refid="jbossws.service.lib.patternset"/>
+ <include name="juddi-service.sar"/>
+ </fileset>
+ <fileset dir="${metro.output.lib.dir}">
+ <patternset refid="jbossws.client.patternset"/>
+ <patternset refid="jbossws.lib.patternset"/>
+ <patternset refid="jbossws.lib.endorsed.patternset"/>
+ <patternset refid="jbossws.server.lib.patternset"/>
+ <patternset refid="jbossws.service.lib.patternset"/>
+ </fileset>
+ <fileset dir="glassfish-metro/output">
+ <patternset refid="jbossws.client.patternset"/>
+ <patternset refid="jbossws.lib.patternset"/>
+ <patternset refid="jbossws.lib.endorsed.patternset"/>
+ <patternset refid="jbossws.server.lib.patternset"/>
+ <patternset refid="jbossws.service.lib.patternset"/>
+ </fileset>
+ </copy>
+ <copy todir="${deploy.artifacts.dir}/resources">
+ <fileset dir="${metro.output.resources.dir}">
+ <include name="jbossws-metro42-beans.xml"/>
+ <include name="jbossws-metro50-beans.xml"/>
+ <include name="jbossws-jboss42.sar/**"/>
+ <include name="jbossws-metro.sar/**"/>
+ </fileset>
+ </copy>
+ </target>
+
+</project>
Property changes on: stack/metro/trunk/ant-import/build-prepare-deploy.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: stack/metro/trunk/ant-import/build-testsuite.xml
===================================================================
--- stack/metro/trunk/ant-import/build-testsuite.xml 2008-03-13 13:35:12 UTC (rev 5961)
+++ stack/metro/trunk/ant-import/build-testsuite.xml 2008-03-13 13:43:06 UTC (rev 5962)
@@ -1,80 +0,0 @@
-<?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>
-
- <property name="tests.output.dir"
value="${int.metro.dir}/output/tests"/>
-
- <import
file="${int.metro.dir}/src/test-framework/ant-import/build-testsuite.xml"/>
-
- <!-- Define excludesfile -->
- <property name="excludesfile"
value="${int.metro.dir}/src/test/resources/test-excludes-${jbossws.integration.target}.txt"/>
-
- <!-- ================================================================== -->
- <!-- Initialization -->
- <!-- ================================================================== -->
-
- <target name="tests-init" depends="tests-classpath">
-
- <path id="ws.stack.classpath">
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-common.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-spi.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/FastInfoset.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/http.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jaxrpc-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jaxws-api.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/jaxws-rt.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jaxws-tools.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jsr173_api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jsr181-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jsr250-api.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/resolver.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/saaj-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/saaj-impl.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/sjsxp.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/stax-ex.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/streambuffer.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/wstx.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/wsdl4j.jar"/>
- </path>
-
- <path id="tests.extra.classpath">
- <pathelement
location="${int.metro.dir}/output/lib/jbossws-metro-client.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-framework.jar"/>
- </path>
-
- </target>
-
- <!-- ================================================================== -->
- <!-- Compiling -->
- <!-- ================================================================== -->
-
- <target name="tests-compile" depends="tests-init"
description="Compile sources">
- <macro-compile-classes srcdir="${int.metro.dir}/src/test-framework/java"
excludesfile="${excludesfile}"/>
- <macro-compile-classes srcdir="${int.metro.dir}/src/test/java"
excludesfile="${excludesfile}"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
-
- <!-- Copy resources -->
- <target name="tests-copy-resources" depends="tests-init"
description="Copy the deployment resources.">
- <macro-copy-resources srcdir="${int.metro.dir}/src/test-framework"/>
- <macro-copy-resources srcdir="${int.metro.dir}/src/test"/>
- </target>
-
- <target name="tests-jars"
depends="tests-compile,tests-copy-resources" description="Build the
deployments.">
- <ant
antfile="${int.metro.dir}/src/test-framework/ant-import/build-jars-jaxws.xml"
target="build-jars-jaxws"/>
- </target>
-
- <target name="tests-main" depends="tests-jars"
description="Build the deployments."/>
-
-</project>
Added: stack/metro/trunk/ant-import/jbossws-deploy-macros.xml
===================================================================
--- stack/metro/trunk/ant-import/jbossws-deploy-macros.xml (rev
0)
+++ stack/metro/trunk/ant-import/jbossws-deploy-macros.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -0,0 +1,298 @@
+<?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"/>
+ </patternset>
+
+ <patternset id="jbossws.client.patternset">
+ <include name="**/jbossws-common.jar"/>
+ <include name="**/jbossws-framework.jar"/>
+ <include name="**/jbossws-metro-client.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="**/jaxws-api.jar"/>
+ <include name="**/jboss-wsit-rt.jar"/>
+ <include name="**/jboss-wsit-tools.jar"/>
+ <include name="**/streambuffer.jar"/>
+ <include name="**/stax-ex.jar"/>
+ <include name="**/jsr181-api.jar"/>
+ <include name="**/saaj-api.jar"/>
+ <include name="**/saaj-impl.jar"/>
+ <include name="**/stax-api.jar"/>
+ <include name="**/wsdl4j.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="**/jaxws-api.jar"/>
+ <include name="**/jsr181-api.jar"/>
+ <include name="**/saaj-api.jar"/>
+ </patternset>
+
+ <patternset id="jbossws.service.lib.patternset">
+ <include name="**/FastInfoset.jar"/>
+ <include name="**/http.jar"/>
+ <include name="**/jaxb-api.jar"/>
+ <include name="**/jaxb-impl.jar"/>
+ <include name="**/jaxrpc-api.jar"/>
+ <include name="**/jaxws-api.jar"/>
+ <include name="**/jaxws-local-transport.jar"/>
+ <include name="**/jaxws-rt.jar"/>
+ <include name="**/jaxws-tools.jar"/>
+ <include name="**/jboss-wsit-rt.jar"/>
+ <include name="**/jboss-wsit-tools.jar"/>
+ <include name="**/jbossws-metro.jar"/>
+ <include name="**/jsr181-api.jar"/>
+ <include name="**/jsr173_api.jar"/>
+ <include name="**/jsr250-api.jar"/>
+ <include name="**/mimepull.jar"/>
+ <include name="**/resolver.jar"/>
+ <include name="**/saaj-api.jar"/>
+ <include name="**/saaj-impl.jar"/>
+ <include name="**/sjsxp.jar"/>
+ <include name="**/stax-api.jar"/>
+ <include name="**/stax-ex.jar"/>
+ <include name="**/stax-utils.jar"/>
+ <include name="**/streambuffer.jar"/>
+ <include name="**/txnannprocessor.jar"/>
+ <include name="**/wsdl4j.jar"/>
+ <include name="**/wstx-asl-3.2.1.jar"/>
+ <include name="**/xmldsig.jar"/>
+ <include name="**/xws-security.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-metro42-sar">
+ <attribute name="thirdpartydir"/>
+ <attribute name="resourcesdir"/>
+ <attribute name="targetdir"/>
+ <sequential>
+ <mkdir dir="@{targetdir}"/>
+ <copy todir="@{targetdir}" flatten="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"/>
+ </fileset>
+ </copy>
+ <unzip dest="(a){targetdir}/jbossws-context.war">
+ <fileset dir="@{thirdpartydir}">
+ <include name="**/jbossws-context.war"/>
+ </fileset>
+ </unzip>
+ <copy todir="(a){targetdir}/jbossws.beans/META-INF"
flatten="true">
+ <fileset dir="@{thirdpartydir}">
+ <include name="**/jbossws-metro42-beans.xml"/>
+ </fileset>
+ </copy>
+ <move
file="(a){targetdir}/jbossws.beans/META-INF/jbossws-metro42-beans.xml"
tofile="(a){targetdir}/jbossws.beans/META-INF/jboss-beans.xml"/>
+ <copy todir="@{targetdir}/META-INF">
+ <fileset dir="@{resourcesdir}/META-INF"/>
+ </copy>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="macro-deploy-jbossws-metro50-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="(a){targetdir}/jbossws-context.war"
overwrite="true">
+ <fileset dir="@{thirdpartydir}">
+ <include name="**/jbossws-context.war"/>
+ </fileset>
+ </unzip>
+ <copy todir="(a){targetdir}/jbossws.beans/META-INF"
flatten="true">
+ <fileset dir="@{thirdpartydir}">
+ <include name="**/jbossws-metro50-beans.xml"/>
+ </fileset>
+ </copy>
+ <move
file="(a){targetdir}/jbossws.beans/META-INF/jbossws-metro50-beans.xml"
tofile="(a){targetdir}/jbossws.beans/META-INF/jboss-beans.xml"/>
+ </sequential>
+ </macrodef>
+
+ <!-- ================================================================== -->
+ <!-- Deploy JBossWS -->
+ <!-- ================================================================== -->
+
+ <!-- JDK Detection -->
+ <available classname="java.io.Console"
property="HAVE_JDK_1.6"/>
+
+ <target name="deploy-jbossws-metro42"
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-metro42-sar
targetdir="${installserver}/deploy/jbossws.sar"
thirdpartydir="${thirdpartydir}" resourcesdir="${resourcesdir}"/>
+ </target>
+
+ <target name="deploy-jbossws-metro50"
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-metro50-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="(a){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: stack/metro/trunk/ant-import/jbossws-deploy-macros.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: stack/metro/trunk/ant-import/macros-deploy-metro.xml
===================================================================
--- stack/metro/trunk/ant-import/macros-deploy-metro.xml 2008-03-13 13:35:12 UTC (rev
5961)
+++ stack/metro/trunk/ant-import/macros-deploy-metro.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -1,295 +0,0 @@
-<?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
- Exceptions must be defined in the individual deploy macros.
- -->
- <patternset id="client.patternset">
- <include name="jbossws-common.jar"/>
- <include name="jbossws-framework.jar"/>
- <include name="jbossws-metro-client.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="jaxws-api.jar"/>
- <include name="streambuffer.jar"/>
- <include name="stax-ex.jar"/>
- <include name="jsr181-api.jar"/>
- <include name="saaj-api.jar"/>
- <include name="saaj-impl.jar"/>
- </patternset>
-
- <patternset id="lib.patternset">
- <include name="jaxb-api.jar"/>
- <include name="jaxb-impl.jar"/>
- </patternset>
-
- <patternset id="server.lib.patternset">
- <include name="jbossws-common.jar"/>
- <include name="jbossws-framework.jar"/>
- <include name="jbossws-spi.jar"/>
- <include name="jaxws-api.jar"/>
- <include name="jsr181-api.jar"/>
- <include name="saaj-api.jar"/>
- </patternset>
-
- <!-- ================================================================== -->
- <!-- Deploy Framework -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-framework">
- <attribute name="thirdpartylibs"/>
- <sequential>
-
- <!-- BIN SCRIPTS -->
- <unzip dest="${deploy.dir}/bin"
src="(a){thirdpartylibs}/jbossws-framework-scripts.zip"/>
-
- <!-- CLIENT JARS-->
- <copy todir="${deploy.dir}/client">
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="client.patternset"/>
- </fileset>
- </copy>
-
- <!-- SERVER LIB JARS-->
- <copy todir="${deploy.dir}/server/${jboss.server.instance}/lib">
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="server.lib.patternset"/>
- </fileset>
- </copy>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deploy JBossWS -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-jbossws">
- <attribute name="jbosshome"/>
- <attribute name="sarname"/>
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
-
- <!-- Deploy the sars -->
- <mkdir
dir="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"/>
- <unjar
dest="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"
src="@{stacklibs}/@{sarname}"/>
- <mkdir
dir="(a){jbosshome}/server/${jboss.server.instance}/deploy/juddi-service.sar"/>
- <unzip
dest="(a){jbosshome}/server/${jboss.server.instance}/deploy/juddi-service.sar"
src="(a){thirdpartylibs}/juddi-service.sar"/>
-
- <!-- Deploy the jars -->
- <fileset id="jbossws.deploy.files" dir="${deploy.dir}"
excludes="jbossws-deploy.conf"/>
- <copy todir="@{jbosshome}" overwrite="true">
- <fileset refid="jbossws.deploy.files"/>
- </copy>
- <chmod dir="@{jbosshome}/bin" perm="+x"
includes="*.sh"/>
-
- <!-- Write jbossws-deploy.conf -->
- <property name="jbossws.deploy.files"
refid="jbossws.deploy.files"/>
- <echo file="${deploy.dir}/jbossws-deploy.conf"
message="${jbossws.deploy.files}"/>
- <replace file="${deploy.dir}/jbossws-deploy.conf" token=";"
value=" "/>
- <copy
todir="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"
file="${deploy.dir}/jbossws-deploy.conf" overwrite="true"/>
-
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Undeploy JBossWS -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-undeploy-jbossws">
- <attribute name="jbosshome"/>
- <sequential>
-
- <delete dir="${deploy.dir}"/>
-
- <loadfile property="jbossws.undeploy.files"
srcfile="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar/jbossws-deploy.conf"
failonerror="false"/>
- <loadfile property="jbossws.undeploy.files"
srcfile="${jbossws.default.undeploy.files}" failonerror="false"/>
- <property name="jbossws.undeploy.files"
value="nothing.to.undeploy"/>
- <delete
dir="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"/>
- <delete
dir="(a){jbosshome}/server/${jboss.server.instance}/deploy/juddi-service.sar"/>
- <delete>
- <fileset dir="@{jbosshome}"
includes="${jbossws.undeploy.files}"/>
- </delete>
-
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-4.2.x -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro42x">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
-
- <!-- CLIENT JARS -->
- <mkdir dir="${deploy.dir}/client"/>
- <copy todir="${deploy.dir}/client" overwrite="true">
- <fileset dir="@{stacklibs}">
- <patternset refid="client.patternset"/>
- </fileset>
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="client.patternset"/>
- </fileset>
- </copy>
-
- <!-- LIB JARS -->
- <mkdir dir="${deploy.dir}/lib"/>
- <copy todir="${deploy.dir}/lib" overwrite="true">
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="lib.patternset"/>
- </fileset>
- </copy>
-
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-4.2.2 -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro422">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
- <fail message="Not available: ${jboss422.available.file}"
unless="jboss422.available"/>
- <macro-deploy-framework thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-metro42x stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-jbossws jbosshome="${jboss422.home}"
sarname="jbossws-metro42.sar" stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- </sequential>
- </macrodef>
-
- <!-- Remove jbossws/metro from jboss422 -->
- <macrodef name="macro-undeploy-metro422">
- <sequential>
- <fail message="Not available: ${jboss422.available.file}"
unless="jboss422.available"/>
- <macro-undeploy-jbossws jbosshome="${jboss422.home}"/>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-4.2.3 -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro423">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
- <fail message="Not available: ${jboss423.available.file}"
unless="jboss423.available"/>
- <macro-deploy-framework thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-metro42x stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-jbossws jbosshome="${jboss423.home}"
sarname="jbossws-metro42.sar" stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- </sequential>
- </macrodef>
-
- <!-- Remove jbossws/metro from jboss423 -->
- <macrodef name="macro-undeploy-metro423">
- <sequential>
- <fail message="Not available: ${jboss423.available.file}"
unless="jboss423.available"/>
- <macro-undeploy-jbossws jbosshome="${jboss423.home}"/>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-5.0.x -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro50x">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
-
- <!-- CLIENT JARS -->
- <mkdir dir="${deploy.dir}/client"/>
- <copy todir="${deploy.dir}/client" overwrite="true">
- <fileset dir="@{stacklibs}">
- <patternset refid="client.patternset"/>
- </fileset>
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="client.patternset"/>
- </fileset>
- </copy>
-
- <!-- LIB JARS -->
- <mkdir dir="${deploy.dir}/lib"/>
- <copy todir="${deploy.dir}/lib" overwrite="true">
- <fileset dir="@{thirdpartylibs}">
- <patternset refid="lib.patternset"/>
- </fileset>
- </copy>
-
- <!-- SERVER JARS -->
- <copy todir="${deploy.dir}/server/${jboss.server.instance}/lib"
overwrite="true">
- <fileset dir="@{stacklibs}">
- <patternset refid="server.lib.patternset"/>
- </fileset>
- </copy>
-
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-5.0.0 -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro500">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
- <fail message="Not available: ${jboss500.available.file}"
unless="jboss500.available"/>
- <macro-deploy-framework thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-metro50x stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-jbossws jbosshome="${jboss500.home}"
sarname="jbossws-metro50.sar" stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- </sequential>
- </macrodef>
-
- <!-- Remove jbossws/metro from jboss500 -->
- <macrodef name="macro-undeploy-metro500">
- <sequential>
- <fail message="Not available: ${jboss500.available.file}"
unless="jboss500.available"/>
- <macro-undeploy-jbossws jbosshome="${jboss500.home}"/>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-5.0.1 -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-deploy-metro501">
- <attribute name="stacklibs"/>
- <attribute name="thirdpartylibs"/>
- <sequential>
- <fail message="Not available: ${jboss501.available.file}"
unless="jboss501.available"/>
- <macro-deploy-framework thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-metro50x stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- <macro-deploy-jbossws jbosshome="${jboss501.home}"
sarname="jbossws-metro50.sar" stacklibs="@{stacklibs}"
thirdpartylibs="@{thirdpartylibs}"/>
- </sequential>
- </macrodef>
-
- <!-- Remove jbossws/metro from jboss501 -->
- <macrodef name="macro-undeploy-metro501">
- <sequential>
- <fail message="Not available: ${jboss501.available.file}"
unless="jboss501.available"/>
- <macro-undeploy-jbossws jbosshome="${jboss501.home}"/>
- </sequential>
- </macrodef>
-
-</project>
\ No newline at end of file
Modified: stack/metro/trunk/ant-import-tests/build-testsuite.xml
===================================================================
--- stack/metro/trunk/ant-import-tests/build-testsuite.xml 2008-03-13 13:35:12 UTC (rev
5961)
+++ stack/metro/trunk/ant-import-tests/build-testsuite.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -9,120 +9,114 @@
<!-- $Id$ -->
<project>
-
- <property name="tests.output.dir"
value="${metro.dir}/output/tests"/>
-
- <import
file="${metro.dir}/src/test-framework/ant-import/build-testsuite.xml"/>
-
- <!-- Define excluded tests -->
- <property name="excludes-short-name"
value="test-excludes-${jbossws.integration.target}.txt"/>
- <property name="excludesfile"
value="${metro.dir}/src/test/resources/test-excludes-${jbossws.integration.target}.txt"/>
-
- <property name="tests.dir" value="${metro.dir}/src/test"/>
- <property name="tests.java.dir" value="${tests.dir}/java"/>
- <property name="tests.resources.dir"
value="${tests.dir}/resources"/>
-
- <!--
- Init the various classpaths
- -->
- <target name="tests-init"
depends="thirdparty-classpath,tests-classpath">
+
+ <property name="tests.output.dir"
value="${metro.dir}/output/tests"/>
+
+ <import
file="${metro.dir}/src/test-framework/ant-import/build-testsuite.xml"/>
+
+ <!-- Define excluded tests -->
+ <property name="excludes-short-name"
value="test-excludes-${jbossws.integration.target}.txt"/>
+ <property name="excludesfile"
value="${metro.dir}/src/test/resources/test-excludes-${jbossws.integration.target}.txt"/>
+
+ <property name="tests.dir" value="${metro.dir}/src/test"/>
+ <property name="tests.java.dir" value="${tests.dir}/java"/>
+ <property name="tests.resources.dir"
value="${tests.dir}/resources"/>
+
+ <!--
+ Init the various classpaths
+ -->
+ <target name="tests-init"
depends="thirdparty-classpath,tests-classpath">
+
+ <path id="ws.stack.classpath">
+ <pathelement
location="${int.metro.dir}/thirdparty/jbossws-common.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/jbossws-spi.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/FastInfoset.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/http.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/jaxws-api.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/jaxws-rt.jar"/>
- <path id="ws.stack.classpath">
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-common.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-spi.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/FastInfoset.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/http.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jaxws-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jaxws-rt.jar"/>
-
- <pathelement
location="${int.metro.dir}/thirdparty/jaxws-tools.jar"/>
- <pathelement
location="${int.metro.dir}/glassfish-metro/output/jboss-wsit-tools.jar"/>
- <pathelement
location="${int.metro.dir}/glassfish-metro/output/jboss-wsit-rt.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/mimepull.jar"/>
-
- <!--pathelement
location="${int.metro.dir}/thirdparty/jsr173_api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jsr181-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jsr250-api.jar"/-->
- <pathelement
location="${int.metro.dir}/thirdparty/resolver.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/saaj-api.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/saaj-impl.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/sjsxp.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/stax-ex.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/streambuffer.jar"/>
- <pathelement location="${int.metro.dir}/thirdparty/wstx.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/wsdl4j.jar"/>
-
- <pathelement
location="${int.metro.dir}/glassfish-metro/output/xws-security.jar"/>
- </path>
-
- <path id="tests.extra.classpath">
- <pathelement
location="${int.metro.dir}/output/lib/jbossws-metro-client.jar"/>
- <pathelement
location="${int.metro.dir}/thirdparty/jbossws-framework.jar"/>
- </path>
-
- <taskdef name="wsimport"
classname="com.sun.tools.ws.ant.WsImport">
- <classpath refid="ws.stack.classpath"/>
- </taskdef>
+ <pathelement
location="${int.metro.dir}/thirdparty/jaxws-tools.jar"/>
+ <pathelement
location="${int.metro.dir}/glassfish-metro/output/jboss-wsit-tools.jar"/>
+ <pathelement
location="${int.metro.dir}/glassfish-metro/output/jboss-wsit-rt.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/mimepull.jar"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Generating sources -->
- <!-- ================================================================== -->
-
- <target name="wsimport" depends="tests-init"
description="Consume JAX-WS contracts">
-
- <mkdir dir="${tests.output.dir}/wsimport"/>
-
- <wsimport
- wsdl="${tests.resources.dir}/wsit/rm/WEB-INF/wsdl/Calc.wsdl"
- destdir="${tests.output.dir}/wsimport"
- sourcedestdir="${tests.output.dir}/wsimport"
- keep="true"
- verbose="false"
- package="org.jboss.test.ws.wsit.rm"
- target="2.0"/>
-
- </target>
-
- <!--
- Generate JAX-WS sources
- -->
- <target name="wsgen" depends="tests-compile"
description="Provide the JAX-WS contracts.">
-
- <!-- placeholder for jaxws tools extension points -->
-
- </target>
-
- <target name="tests-compile-generated-resources"
depends="wsgen">
-
- </target>
-
- <!-- ================================================================== -->
- <!-- Compiling -->
- <!-- ================================================================== -->
-
- <target name="tests-compile" depends="wsimport,tests-classpath"
description="Compile sources">
- <macro-compile-classes srcdir="${tests.output.dir}/wsimport"
excludesfile="${excludesfile}"/>
- <macro-compile-classes srcdir="${metro.dir}/src/test-framework/java"
excludesfile="${excludesfile}"/>
- <macro-compile-classes srcdir="${metro.dir}/src/test/java"
excludesfile="${excludesfile}"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
-
- <!-- Copy resources -->
- <target name="tests-copy-resources" depends="tests-init"
description="Copy the deployment resources.">
- <macro-copy-resources srcdir="${metro.dir}/src/test-framework"/>
- <macro-copy-resources srcdir="${metro.dir}/src/test"/>
- </target>
-
- <target name="tests-jars"
depends="wsimport,tests-compile,tests-copy-resources,tests-compile-generated-resources"
description="Build the deployments.">
- <ant antfile="${metro.dir}/ant-import-tests/build-jars-jaxws.xml"
target="build-jars-jaxws"/>
- <ant
antfile="${int.metro.dir}/src/test-framework/ant-import/build-jars-jaxws.xml"
target="build-jars-jaxws"/>
- </target>
-
- <target name="tests-main" depends="tests-jars"
description="Build the deployments."/>
-
-</project>
+ <!--pathelement
location="${int.metro.dir}/thirdparty/jsr173_api.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/jsr181-api.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/jsr250-api.jar"/-->
+ <pathelement location="${int.metro.dir}/thirdparty/resolver.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/saaj-api.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/saaj-impl.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/sjsxp.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/stax-ex.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/streambuffer.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/wstx.jar"/>
+ <pathelement location="${int.metro.dir}/thirdparty/wsdl4j.jar"/>
+
+ <pathelement
location="${int.metro.dir}/glassfish-metro/output/xws-security.jar"/>
+ </path>
+
+ <path id="tests.extra.classpath">
+ <pathelement
location="${int.metro.dir}/output/lib/jbossws-metro-client.jar"/>
+ <pathelement
location="${int.metro.dir}/thirdparty/jbossws-framework.jar"/>
+ </path>
+
+ <taskdef name="wsimport"
classname="com.sun.tools.ws.ant.WsImport">
+ <classpath refid="ws.stack.classpath"/>
+ </taskdef>
+
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Generating sources -->
+ <!-- ================================================================== -->
+
+ <target name="wsimport" depends="tests-init"
description="Consume JAX-WS contracts">
+
+ <mkdir dir="${tests.output.dir}/wsimport"/>
+
+ <wsimport wsdl="${tests.resources.dir}/wsit/rm/WEB-INF/wsdl/Calc.wsdl"
destdir="${tests.output.dir}/wsimport"
sourcedestdir="${tests.output.dir}/wsimport" keep="true"
+ verbose="false" package="org.jboss.test.ws.wsit.rm"
target="2.0"/>
+
+ </target>
+
+ <!--
+ Generate JAX-WS sources
+ -->
+ <target name="wsgen" depends="tests-compile"
description="Provide the JAX-WS contracts.">
+
+ <!-- placeholder for jaxws tools extension points -->
+
+ </target>
+
+ <target name="tests-compile-generated-resources"
depends="wsgen">
+
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compiling -->
+ <!-- ================================================================== -->
+
+ <target name="tests-compile" depends="wsimport,tests-classpath"
description="Compile sources">
+ <macro-compile-classes srcdir="${tests.output.dir}/wsimport"
excludesfile="${excludesfile}"/>
+ <macro-compile-classes srcdir="${metro.dir}/src/test-framework/java"
excludesfile="${excludesfile}"/>
+ <macro-compile-classes srcdir="${metro.dir}/src/test/java"
excludesfile="${excludesfile}"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
+
+ <!-- Copy resources -->
+ <target name="tests-copy-resources" depends="tests-init"
description="Copy the deployment resources.">
+ <macro-copy-resources srcdir="${metro.dir}/src/test-framework"/>
+ <macro-copy-resources srcdir="${metro.dir}/src/test"/>
+ </target>
+
+ <target name="tests-jars"
depends="wsimport,tests-compile,tests-copy-resources,tests-compile-generated-resources"
description="Build the deployments.">
+ <ant antfile="${metro.dir}/ant-import-tests/build-jars-jaxws.xml"
target="build-jars-jaxws"/>
+ <ant
antfile="${int.metro.dir}/src/test-framework/ant-import/build-jars-jaxws.xml"
target="build-jars-jaxws"/>
+ </target>
+
+ <target name="tests-main" depends="tests-jars"
description="Build the deployments."/>
+
+</project>
\ No newline at end of file
Modified: stack/metro/trunk/build.xml
===================================================================
--- stack/metro/trunk/build.xml 2008-03-13 13:35:12 UTC (rev 5961)
+++ stack/metro/trunk/build.xml 2008-03-13 13:43:06 UTC (rev 5962)
@@ -12,304 +12,230 @@
<!-- $Id$ -->
<project default="main" basedir="."
name="JBossWS-Metro">
-
- <property name="int.metro.dir" value="${basedir}"/>
-
- <import file="${basedir}/ant-import/build-setup.xml"/>
- <import file="${basedir}/ant-import/build-bin-dist.xml"/>
- <import file="${basedir}/ant-import/build-deploy.xml"/>
- <import file="${basedir}/ant-import/build-release.xml"/>
- <import file="${basedir}/ant-import/build-thirdparty.xml"/>
-
- <!-- ================================================================== -->
- <!-- Setup -->
- <!-- ================================================================== -->
-
- <property name="metro.dir" value="${int.metro.dir}"/>
- <property name="metro.src.dir"
value="${metro.dir}/src/main"/>
- <property name="metro.distro.dir"
value="${metro.src.dir}/distro"/>
- <property name="metro.etc.dir"
value="${metro.src.dir}/etc"/>
- <property name="metro.java.dir"
value="${metro.src.dir}/java"/>
- <property name="metro.resources.dir"
value="${metro.src.dir}/resources"/>
- <property name="metro.output.dir"
value="${metro.dir}/output"/>
- <property name="metro.output.apidocs.dir"
value="${metro.output.dir}/apidocs"/>
- <property name="metro.output.classes.dir"
value="${metro.output.dir}/classes"/>
- <property name="metro.output.deploy.dir"
value="${metro.output.dir}/deploy"/>
- <property name="metro.output.etc.dir"
value="${metro.output.dir}/etc"/>
- <property name="metro.output.lib.dir"
value="${metro.output.dir}/lib"/>
-
-
- <import file="${basedir}/ant-import-tests/build-testsuite.xml"/>
- <import file="${basedir}/ant-import/build-metro.xml"/>
-
- <!-- ================================================================== -->
- <!-- Initialization -->
- <!-- ================================================================== -->
-
- <target name="init" depends="prepare,thirdparty">
- <mkdir dir="${metro.output.apidocs.dir}"/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Compile -->
- <!-- ================================================================== -->
-
- <!--
- | Compile everything.
- |
- | This target should depend on other compile-* targets for each
- | different type of compile that needs to be performed, short of
- | documentation compiles.
- -->
-
- <target name="compile"
depends="init,compile-classes,compile-etc" description="Compile all source
files."/>
-
- <!-- Compile java sources -->
- <target name="compile-classes"
depends="compile-classes-metro"/>
- <target name="compile-classes-metro" depends="init">
- <mkdir dir="${metro.output.classes.dir}"/>
- <javac srcdir="${metro.java.dir}" sourcepath=""
destdir="${metro.output.classes.dir}" encoding="utf-8"
debug="${javac.debug}" verbose="${javac.verbose}"
- deprecation="${javac.deprecation}"
failonerror="${javac.fail.onerror}">
- <include name="org/jboss/wsf/stack/metro/**"/>
- <classpath refid="metro.integration.classpath"/>
- </javac>
- </target>
-
- <!-- Compile etc files (manifests and such) -->
- <target name="compile-etc" depends="init">
- <mkdir dir="${metro.output.etc.dir}"/>
- <copy todir="${metro.output.etc.dir}" filtering="yes"
overwrite="true">
- <fileset dir="${metro.etc.dir}">
- <include name="component-info.xml"/>
- <include name="default.mf"/>
- </fileset>
- <filterset>
- <filter token="java.vm.version"
value="${java.vm.version}"/>
- <filter token="java.vm.vendor"
value="${java.vm.vendor}"/>
- <filter token="build.id" value="${build.id}"/>
- <filter token="implementation.version"
value="jbossws-${version.id}"/>
- <filtersfile file="${int.metro.dir}/version.properties"/>
- </filterset>
- </copy>
- </target>
-
- <!-- ================================================================== -->
- <!-- Archives -->
- <!-- ================================================================== -->
-
- <!--
- | Build all jar files.
- -->
- <target name="jars"
depends="build.metro,compile,jars-jboss42,jars-jboss50" description="Builds
all jar files.">
- </target>
-
- <target name="jars-common" depends="build.metro,compile">
-
- <!-- Build jbossws-metro.jar -->
- <mkdir dir="${metro.output.lib.dir}"/>
- <jar jarfile="${metro.output.lib.dir}/jbossws-metro.jar"
manifest="${metro.output.etc.dir}/default.mf">
- <fileset dir="${metro.output.classes.dir}">
- <include name="org/jboss/wsf/stack/metro/injection/**"/>
- <include name="org/jboss/wsf/stack/metro/client/**"/>
- <include name="org/jboss/wsf/stack/metro/metadata/**"/>
- <include name="org/jboss/wsf/stack/metro/log/**"/>
- <include name="org/jboss/wsf/stack/metro/*"/>
- </fileset>
- <metainf
dir="${metro.resources.dir}/jbossws-metro.jar/META-INF"/>
- </jar>
-
- <!-- jbossws-metro-client.jar -->
- <jar jarfile="${metro.output.lib.dir}/jbossws-metro-client.jar"
manifest="${metro.output.etc.dir}/default.mf">
- <fileset dir="${metro.output.classes.dir}">
- <include name="org/jboss/wsf/stack/metro/client/**"/>
- <include name="org/jboss/wsf/stack/metro/tools/**"/>
- </fileset>
- <metainf
dir="${metro.resources.dir}/jbossws-metro-client.jar/META-INF"/>
- </jar>
-
- <!-- Build jbossws-context.war -->
- <copy todir="${metro.output.lib.dir}/jbossws-context.war"
filtering="true">
- <fileset dir="${metro.resources.dir}/jbossws-context.war">
- <include name="index.html"/>
- <include name="styles.css"/>
- <include name="WEB-INF/**"/>
- </fileset>
- <filterset>
- <filter token="build.id" value="${build.id}"/>
- <filter token="implementation.version"
value="jbossws-${version.id}"/>
- <filtersfile file="${metro.dir}/version.properties"/>
- </filterset>
- </copy>
+
+ <property name="int.metro.dir" value="${basedir}"/>
+
+ <import file="${basedir}/ant-import/build-setup.xml"/>
+ <import file="${basedir}/ant-import/build-bin-dist.xml"/>
+ <import file="${basedir}/ant-import/build-prepare-deploy.xml"/>
+ <import file="${basedir}/ant-import/build-deploy.xml"/>
+ <import file="${basedir}/ant-import/build-release.xml"/>
+ <import file="${basedir}/ant-import/build-thirdparty.xml"/>
+ <import file="${basedir}/ant-import/jbossws-deploy-macros.xml"/>
+
+ <!-- ================================================================== -->
+ <!-- Setup -->
+ <!-- ================================================================== -->
+
+ <property name="metro.dir" value="${int.metro.dir}"/>
+ <property name="metro.src.dir"
value="${metro.dir}/src/main"/>
+ <property name="metro.distro.dir"
value="${metro.src.dir}/distro"/>
+ <property name="metro.etc.dir"
value="${metro.src.dir}/etc"/>
+ <property name="metro.java.dir"
value="${metro.src.dir}/java"/>
+ <property name="metro.resources.dir"
value="${metro.src.dir}/resources"/>
+ <property name="metro.output.dir"
value="${metro.dir}/output"/>
+ <property name="metro.output.apidocs.dir"
value="${metro.output.dir}/apidocs"/>
+ <property name="metro.output.classes.dir"
value="${metro.output.dir}/classes"/>
+ <property name="metro.output.deploy.dir"
value="${metro.output.dir}/deploy"/>
+ <property name="metro.output.etc.dir"
value="${metro.output.dir}/etc"/>
+ <property name="metro.output.lib.dir"
value="${metro.output.dir}/lib"/>
+ <property name="metro.output.resources.dir"
value="${metro.output.dir}/resources"/>
+
+ <property name="deploy.artifacts.dir"
value="${metro.output.deploy.dir}-artifacts"/>
+ <property name="deploy.structure.jboss42"
value="${metro.output.deploy.dir}-jboss42"/>
+ <property name="deploy.structure.jboss50"
value="${metro.output.deploy.dir}-jboss50"/>
+ <property name="jbossws.default.deploy.conf"
value="${metro.dir}/ant-import/jbossws-default-deploy.conf"/>
+
+ <import file="${basedir}/ant-import-tests/build-testsuite.xml"/>
+ <import file="${basedir}/ant-import/build-metro.xml"/>
+
+ <!-- ================================================================== -->
+ <!-- Initialization -->
+ <!-- ================================================================== -->
+
+ <target name="init" depends="prepare,thirdparty">
+ <mkdir dir="${metro.output.apidocs.dir}"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compile -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Compile everything.
+ |
+ | This target should depend on other compile-* targets for each
+ | different type of compile that needs to be performed, short of
+ | documentation compiles.
+ -->
+
+ <target name="compile"
depends="init,compile-classes,compile-etc,compile-resources"
description="Compile all source files."/>
+
+ <!-- Compile java sources -->
+ <target name="compile-classes"
depends="compile-classes-metro"/>
+ <target name="compile-classes-metro" depends="init">
+ <mkdir dir="${metro.output.classes.dir}"/>
+ <javac srcdir="${metro.java.dir}" sourcepath=""
destdir="${metro.output.classes.dir}" encoding="utf-8"
debug="${javac.debug}" verbose="${javac.verbose}"
+ deprecation="${javac.deprecation}"
failonerror="${javac.fail.onerror}">
+ <include name="org/jboss/wsf/stack/metro/**"/>
+ <classpath refid="metro.integration.classpath"/>
+ </javac>
+ </target>
+
+ <!-- Compile etc files (manifests and such) -->
+ <target name="compile-etc" depends="init">
+ <mkdir dir="${metro.output.etc.dir}"/>
+ <copy todir="${metro.output.etc.dir}" filtering="yes"
overwrite="true">
+ <fileset dir="${metro.etc.dir}">
+ <include name="component-info.xml"/>
+ <include name="default.mf"/>
+ </fileset>
+ <filterset>
+ <filter token="java.vm.version"
value="${java.vm.version}"/>
+ <filter token="java.vm.vendor"
value="${java.vm.vendor}"/>
+ <filter token="build.id" value="${build.id}"/>
+ <filter token="implementation.version"
value="jbossws-${version.id}"/>
+ <filtersfile file="${int.metro.dir}/version.properties"/>
+ </filterset>
+ </copy>
+ </target>
+
+ <!-- Compile resource files -->
+ <target name="compile-resources" depends="init">
+
+ <!-- Concat jbossws-metro50-beans.xml -->
+ <mkdir dir="${metro.output.resources.dir}"/>
+ <concat
destfile="${metro.output.resources.dir}/jbossws-metro50-beans.xml">
+ <header trimleading="yes">
+ <deployment xmlns="urn:jboss:bean-deployer:2.0">
+ </header>
+ <fileset file="${metro.resources.dir}/jbossws-metro-config.xml"/>
+ <footer trimleading="yes">
+ </deployment>
+ </footer>
+ </concat>
+
+ <!-- Concat jboss-beans.xml -->
+ <unzip dest="${metro.output.dir}/resources"
src="${thirdparty.dir}/jbossws-jboss42-resources.zip"/>
+ <concat
destfile="${metro.output.resources.dir}/jbossws-metro42-beans.xml">
+ <header trimleading="yes">
+ <deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer">
+ </header>
+ <fileset file="${metro.resources.dir}/jbossws-metro-config.xml"/>
+ <fileset
file="${metro.output.resources.dir}/jbossws-jboss42-config.xml"/>
+ <footer trimleading="yes">
+ </deployment>
+ </footer>
+ </concat>
+
+ <copy todir="${metro.output.resources.dir}">
+ <fileset dir="${metro.resources.dir}">
+ <include name="jbossws-metro.jar/**"/>
+ <include name="jbossws-metro.sar/**"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Archives -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Build all jar files.
+ -->
+ <target name="jars" depends="build.metro,compile"
description="Builds all jar files.">
+
+ <!-- Build jbossws-metro.jar -->
+ <mkdir dir="${metro.output.lib.dir}"/>
+ <jar jarfile="${metro.output.lib.dir}/jbossws-metro.jar"
manifest="${metro.output.etc.dir}/default.mf">
+ <fileset dir="${metro.output.classes.dir}">
+ <include name="org/jboss/wsf/stack/metro/injection/**"/>
+ <include name="org/jboss/wsf/stack/metro/client/**"/>
+ <include name="org/jboss/wsf/stack/metro/metadata/**"/>
+ <include name="org/jboss/wsf/stack/metro/log/**"/>
+ <include name="org/jboss/wsf/stack/metro/*"/>
+ </fileset>
+ <metainf dir="${metro.resources.dir}/jbossws-metro.jar/META-INF"/>
+ </jar>
+
+ <!-- jbossws-metro-client.jar -->
+ <jar jarfile="${metro.output.lib.dir}/jbossws-metro-client.jar"
manifest="${metro.output.etc.dir}/default.mf">
+ <fileset dir="${metro.output.classes.dir}">
+ <include name="org/jboss/wsf/stack/metro/client/**"/>
+ <include name="org/jboss/wsf/stack/metro/tools/**"/>
+ </fileset>
+ <metainf
dir="${metro.resources.dir}/jbossws-metro-client.jar/META-INF"/>
+ </jar>
+
+ <!-- Build jbossws-context.war -->
+ <copy todir="${metro.output.lib.dir}/jbossws-context.war"
filtering="true">
+ <fileset dir="${metro.resources.dir}/jbossws-context.war">
+ <include name="index.html"/>
+ <include name="styles.css"/>
+ <include name="WEB-INF/**"/>
+ </fileset>
+ <filterset>
+ <filter token="build.id" value="${build.id}"/>
+ <filter token="implementation.version"
value="jbossws-${version.id}"/>
+ <filtersfile file="${metro.dir}/version.properties"/>
+ </filterset>
+ </copy>
+
+ <!-- Build jbossws-metro-src.zip -->
+ <zip zipfile="${metro.output.lib.dir}/jbossws-metro-src.zip">
+ <fileset dir="${metro.java.dir}"/>
+ </zip>
+ </target>
+
+ <!-- Generate the JavaDoc -->
+ <target name="javadoc" depends="init" description="Generate
the Javadoc" if="javadoc">
+
+ <!-- expand the metro sources -->
+ <mkdir dir="${metro.output.dir}/thirdparty-sources"/>
+ <unzip src="${thirdparty.dir}/jaxws-ri-src.jar"
dest="${metro.output.dir}/thirdparty-sources"/>
+
+ <javadoc destdir="${metro.output.apidocs.dir}" author="true"
version="true" use="true" windowtitle="JBossWS API">
+ <classpath>
+ <pathelement path="${metro50.integration.classpath}"/>
+ <pathelement path="${metro.integration.classpath}"/>
+ </classpath>
- <!-- Build jbossws-metro-src.zip -->
- <zip zipfile="${metro.output.lib.dir}/jbossws-metro-src.zip" >
- <fileset dir="${metro.java.dir}"/>
- </zip>
- </target>
-
- <target name="jars-jboss50" depends="jars-common">
-
- <!-- Concat jbossws-beans.xml -->
- <concat
destfile="${metro.output.lib.dir}/jbossws-metro50/jbossws-beans.xml">
- <header trimleading="yes">
- <deployment xmlns="urn:jboss:bean-deployer:2.0">
- </header>
- <fileset
file="${metro.resources.dir}/jbossws-metro-config.xml"/>
- <footer trimleading="yes">
- </deployment>
- </footer>
- </concat>
-
- <!-- Build jbossws-metro50.sar -->
- <jar jarfile="${metro.output.lib.dir}/jbossws-metro50.sar"
manifest="${metro.output.etc.dir}/default.mf">
-
- <fileset dir="${metro.output.lib.dir}">
- <include name="jbossws-context.war/**"/>
- <include name="jbossws-context.war"/>
- </fileset>
-
- <fileset dir="${thirdparty.dir}">
- <include name="FastInfoset.jar"/>
- <include name="http.jar"/>
- <include name="jaxrpc-api.jar"/>
- <include name="jaxws-api.jar"/>
- <include name="jaxws-rt.jar"/>
- <include name="saaj-api.jar"/>
- <include name="saaj-impl.jar"/>
- <include name="sjsxp.jar"/>
- <include name="stax-ex.jar"/>
- <include name="streambuffer.jar"/>
- <include name="mimepull.jar"/>
-
- <include name="jsr173_api.jar"/>
- <include name="jsr181-api.jar"/>
- <include name="jsr250-api.jar"/>
-
- </fileset>
-
- <!-- Any extra metro jar, including metro-rt.jar -->
- <fileset dir="glassfish-metro/output">
- <include name="*.jar"/>
- </fileset>
-
- <fileset dir="${metro.output.lib.dir}">
- <include name="jbossws-metro.jar"/>
- </fileset>
- <metainf dir="${metro.output.lib.dir}/jbossws-metro50">
- <include name="jbossws-beans.xml"/>
- </metainf>
- </jar>
- </target>
-
- <target name="jars-jboss42" depends="jars-common">
-
- <unzip dest="${metro.output.dir}/resources"
src="${thirdparty.dir}/jbossws-jboss42-resources.zip"/>
-
- <!-- Concat jboss-beans.xml -->
- <concat
destfile="${metro.output.lib.dir}/jbossws-metro42/jbossws.beans/META-INF/jboss-beans.xml">
- <header trimleading="yes">
- <deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
xmlns="urn:jboss:bean-deployer">
- </header>
- <fileset
file="${metro.resources.dir}/jbossws-metro-config.xml"/>
- <fileset
file="${metro.output.dir}/resources/jbossws-jboss42-config.xml"/>
- <footer trimleading="yes">
- </deployment>
- </footer>
- </concat>
-
- <!-- Build jbossws-metro42.sar -->
- <jar jarfile="${metro.output.lib.dir}/jbossws-metro42.sar"
manifest="${metro.output.etc.dir}/default.mf">
- <fileset dir="${metro.output.lib.dir}">
- <include name="jbossws-context.war/**"/>
- <include name="jbossws-context.war"/>
- </fileset>
- <fileset dir="${metro.output.lib.dir}">
- <include name="jbossws-metro.jar"/>
- </fileset>
- <fileset dir="${thirdparty.dir}">
- <include name="FastInfoset.jar"/>
- <include name="http.jar"/>
- <include name="jboss-wsit-tools.jar"/>
- <include name="jaxb-api.jar"/>
- <include name="jaxb-impl.jar"/>
- <include name="jaxrpc-api.jar"/>
- <include name="jaxws-api.jar"/>
- <include name="jaxws-rt.jar"/>
- <include name="jaxws-tools.jar"/>
- <include name="jsr181-api.jar"/>
- <include name="jsr173_api.jar"/>
- <include name="jsr250-api.jar"/>
- <include name="mimepull.jar"/>
- <include name="saaj-api.jar"/>
- <include name="saaj-impl.jar"/>
- <include name="sjsxp.jar"/>
- <include name="stax-ex.jar"/>
- <include name="streambuffer.jar"/>
- <include name="mimepull.jar"/>
- </fileset>
-
- <!-- Any extra metro jar, including metro-rt.jar -->
- <fileset dir="glassfish-metro/output">
- <include name="*.jar"/>
- </fileset>
-
-
- <fileset dir="${metro.output.lib.dir}/jbossws-metro42">
- <include name="jbossws.beans/**"/>
- </fileset>
- <metainf
dir="${metro.output.dir}/resources/jbossws-jboss42.sar/META-INF">
- <include name="jboss-service.xml"/>
- </metainf>
- </jar>
- </target>
-
- <!-- Generate the JavaDoc -->
- <target name="javadoc" depends="init"
description="Generate the Javadoc" if="javadoc">
-
- <!-- expand the metro sources -->
- <mkdir dir="${metro.output.dir}/thirdparty-sources"/>
- <unzip src="${thirdparty.dir}/jaxws-ri-src.jar"
dest="${metro.output.dir}/thirdparty-sources"/>
-
- <javadoc destdir="${metro.output.apidocs.dir}" author="true"
version="true" use="true" windowtitle="JBossWS API">
- <classpath>
- <pathelement path="${metro50.integration.classpath}"/>
- <pathelement path="${metro.integration.classpath}"/>
- </classpath>
-
- <packageset dir="${metro.java.dir}"
defaultexcludes="yes">
- <include name="org/jboss/wsf/**"/>
- </packageset>
- <packageset dir="${metro.output.dir}/thirdparty-sources"
defaultexcludes="yes">
- <include name="com/sun/**"/>
- </packageset>
-
- <doctitle><![CDATA[<h1>JBoss Web Service Framework ${version.id}
- Stack integration Sun-RI</h1>]]></doctitle>
- <tag name="todo" scope="all" description="To
do:"/>
- <!--group title="Native SOAP stack"
packages="org.jboss.ws,org.jboss.ws.core*, org.jboss.ws.metadata*,
org.jboss.ws.extensions*, org.jboss.ws.tools*, org.jboss.ws.annotation*,
org.jboss.ws.jaxrpc*, org.jboss.ws.soap*"/-->
- <group title="Stack integration"
packages="org.jboss.wsf.stack*"/>
- <group title="SPI" packages="org.jboss.wsf.spi*,
org.jboss.ws.integration*"/>
- <group title="Container integration"
packages="org.jboss.wsf.container*"/>
-
- </javadoc>
- </target>
-
- <!-- ================================================================== -->
- <!-- Miscellaneous -->
- <!-- ================================================================== -->
-
- <target name="clean" depends="prepare" description="Cleans
up most generated files.">
- <delete dir="glassfish-metro"/>
- <delete dir="output"/>
- </target>
-
- <target name="clobber" depends="clean" description="Cleans
up all generated files.">
- <delete dir="${int.metro.dir}/thirdparty"/>
- </target>
-
- <target name="main" description="Executes the default target
(most)." depends="most"/>
-
- <target name="most" description="Builds almost everything."
depends="jars,tests-main"/>
-
- <target name="all" description="Create a distribution zip file"
depends="most,build-bin-dist"/>
-
+ <packageset dir="${metro.java.dir}"
defaultexcludes="yes">
+ <include name="org/jboss/wsf/**"/>
+ </packageset>
+ <packageset dir="${metro.output.dir}/thirdparty-sources"
defaultexcludes="yes">
+ <include name="com/sun/**"/>
+ </packageset>
+
+ <doctitle><![CDATA[<h1>JBoss Web Service Framework ${version.id} -
Stack integration Sun-RI</h1>]]>
+ </doctitle>
+ <tag name="todo" scope="all" description="To
do:"/>
+
+ <!--group title="Native SOAP stack"
packages="org.jboss.ws,org.jboss.ws.core*, org.jboss.ws.metadata*,
org.jboss.ws.extensions*, org.jboss.ws.tools*, org.jboss.ws.annotation*,
org.jboss.ws.jaxrpc*, org.jboss.ws.soap*"/-->
+ <group title="Stack integration"
packages="org.jboss.wsf.stack*"/>
+ <group title="SPI" packages="org.jboss.wsf.spi*,
org.jboss.ws.integration*"/>
+ <group title="Container integration"
packages="org.jboss.wsf.container*"/>
+
+ </javadoc>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Miscellaneous -->
+ <!-- ================================================================== -->
+
+ <target name="clean" depends="prepare" description="Cleans
up most generated files.">
+ <delete dir="glassfish-metro"/>
+ <delete dir="output"/>
+ </target>
+
+ <target name="clobber" depends="clean" description="Cleans
up all generated files.">
+ <delete dir="${int.metro.dir}/thirdparty"/>
+ </target>
+
+ <target name="main" description="Executes the default target
(most)." depends="most"/>
+
+ <target name="most" description="Builds almost everything."
depends="jars,tests-main"/>
+
+ <target name="all" description="Create a distribution zip file"
depends="most,build-bin-dist"/>
+
</project>
Modified: stack/metro/trunk/src/main/distro/ant.properties.example
===================================================================
--- stack/metro/trunk/src/main/distro/ant.properties.example 2008-03-13 13:35:12 UTC (rev
5961)
+++ stack/metro/trunk/src/main/distro/ant.properties.example 2008-03-13 13:43:06 UTC (rev
5962)
@@ -4,11 +4,12 @@
# $Id: ant.properties.example 3137 2007-05-18 13:41:57Z thomas.diesler(a)jboss.com $
# Optional JBoss Home
-jboss500.home=(a)jboss500.home@
jboss422.home=(a)jboss422.home@
jboss423.home=(a)jboss423.home@
+jboss500.home=(a)jboss500.home@
+jboss501.home=(a)jboss501.home@
-# The JBoss server under test. This can be [jboss422|jboss423|jboss500]
+# The JBoss server under test. This can be [jboss422|jboss423|jboss500|jboss501]
jbossws.integration.target=jboss422
# The JBoss settings
Modified: stack/metro/trunk/src/main/distro/bin-dist-build.xml
===================================================================
--- stack/metro/trunk/src/main/distro/bin-dist-build.xml 2008-03-13 13:35:12 UTC (rev
5961)
+++ stack/metro/trunk/src/main/distro/bin-dist-build.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -18,14 +18,15 @@
<!-- ================================================================== -->
<property name="build.dir" value="${basedir}/build"/>
- <property name="bin.dir" value="${basedir}/bin"/>
- <property name="deploy.dir"
value="${basedir}/output/deploy"/>
<property name="docs.dir" value="${basedir}/docs"/>
- <property name="lib.dir" value="${basedir}/lib"/>
+ <property name="thirdparty.dir"
value="${basedir}/deploy/lib"/>
<property name="tests.dir" value="${basedir}/tests"/>
<property name="tests.output.dir"
value="${basedir}/output"/>
- <property name="jbossws.default.undeploy.files"
value="${build.dir}/jbossws.default.undeploy.files"/>
+ <property name="deploy.artifacts.dir"
value="${basedir}/deploy"/>
+ <property name="deploy.structure.jboss42"
value="${basedir}/output/deploy-jboss42"/>
+ <property name="deploy.structure.jboss50"
value="${basedir}/output/deploy-jboss50"/>
+ <property name="jbossws.default.deploy.conf"
value="${build.dir}/jbossws-default-deploy.conf"/>
<property file="${basedir}/ant.properties"/>
<property file="${basedir}/version.properties"/>
@@ -89,7 +90,7 @@
<fail message="JDK1.5 or above is required"
unless="HAVE_JDK_1.5"/>
<import file="${basedir}/build/build-deploy.xml"/>
- <import file="${basedir}/build/macros-deploy-metro.xml"/>
+ <import file="${basedir}/build/jbossws-deploy-macros.xml"/>
<import file="${basedir}/tests/ant-import/build-testsuite.xml"/>
<!-- ================================================================== -->
@@ -117,32 +118,32 @@
<target name="tests-init" depends="prepare,tests-classpath">
<path id="ws.stack.classpath">
- <pathelement location="${lib.dir}/jbossws-common.jar"/>
- <pathelement location="${lib.dir}/jbossws-spi.jar"/>
- <pathelement location="${lib.dir}/FastInfoset.jar"/>
- <pathelement location="${lib.dir}/http.jar"/>
- <pathelement location="${lib.dir}/jaxrpc-api.jar"/>
- <pathelement location="${lib.dir}/jaxws-api.jar"/>
- <pathelement location="${lib.dir}/jaxws-rt.jar"/>
- <pathelement location="${lib.dir}/jaxws-tools.jar"/>
- <pathelement location="${lib.dir}/jsr173_api.jar"/>
- <pathelement location="${lib.dir}/jsr181-api.jar"/>
- <pathelement location="${lib.dir}/jsr250-api.jar"/>
- <pathelement location="${lib.dir}/mimepull.jar"/>
- <pathelement location="${lib.dir}/resolver.jar"/>
- <pathelement location="${lib.dir}/saaj-api.jar"/>
- <pathelement location="${lib.dir}/saaj-impl.jar"/>
- <pathelement location="${lib.dir}/sjsxp.jar"/>
- <pathelement location="${lib.dir}/stax-ex.jar"/>
- <pathelement location="${lib.dir}/streambuffer.jar"/>
- <pathelement location="${lib.dir}/wstx.jar"/>
- <pathelement location="${lib.dir}/wsdl4j.jar"/>
+ <pathelement location="${thirdparty.dir}/jbossws-common.jar"/>
+ <pathelement location="${thirdparty.dir}/jbossws-spi.jar"/>
+ <pathelement location="${thirdparty.dir}/FastInfoset.jar"/>
+ <pathelement location="${thirdparty.dir}/http.jar"/>
+ <pathelement location="${thirdparty.dir}/jaxrpc-api.jar"/>
+ <pathelement location="${thirdparty.dir}/jaxws-api.jar"/>
+ <pathelement location="${thirdparty.dir}/jaxws-rt.jar"/>
+ <pathelement location="${thirdparty.dir}/jaxws-tools.jar"/>
+ <pathelement location="${thirdparty.dir}/jsr173_api.jar"/>
+ <pathelement location="${thirdparty.dir}/jsr181-api.jar"/>
+ <pathelement location="${thirdparty.dir}/jsr250-api.jar"/>
+ <pathelement location="${thirdparty.dir}/mimepull.jar"/>
+ <pathelement location="${thirdparty.dir}/resolver.jar"/>
+ <pathelement location="${thirdparty.dir}/saaj-api.jar"/>
+ <pathelement location="${thirdparty.dir}/saaj-impl.jar"/>
+ <pathelement location="${thirdparty.dir}/sjsxp.jar"/>
+ <pathelement location="${thirdparty.dir}/stax-ex.jar"/>
+ <pathelement location="${thirdparty.dir}/streambuffer.jar"/>
+ <pathelement location="${thirdparty.dir}/wstx.jar"/>
+ <pathelement location="${thirdparty.dir}/wsdl4j.jar"/>
</path>
<path id="tests.extra.classpath">
- <pathelement location="${lib.dir}/jbossws-metro-client.jar"/>
- <pathelement location="${lib.dir}/jbossws-framework.jar"/>
- <pathelement location="${lib.dir}/jaxws-tools.jar"/>
+ <pathelement
location="${thirdparty.dir}/jbossws-metro-client.jar"/>
+ <pathelement location="${thirdparty.dir}/jbossws-framework.jar"/>
+ <pathelement location="${thirdparty.dir}/jaxws-tools.jar"/>
<pathelement location="${basedir}/tools/lib/junit.jar"/>
</path>
@@ -171,9 +172,8 @@
<target name="tests-main" depends="tests-jars"
description="Build the test deployments."/>
- <!-- dummy jar targets -->
- <target name="jars-jboss50" depends="prepare"/>
- <target name="jars-jboss42" depends="prepare"/>
+ <!-- dummy targets -->
+ <target name="prepare-deploy" depends="prepare"/>
<!-- ================================================================== -->
<!-- Miscellaneous -->
Deleted: stack/metro/trunk/src/main/distro/bin-dist-deploy.xml
===================================================================
--- stack/metro/trunk/src/main/distro/bin-dist-deploy.xml 2008-03-13 13:35:12 UTC (rev
5961)
+++ stack/metro/trunk/src/main/distro/bin-dist-deploy.xml 2008-03-13 13:43:06 UTC (rev
5962)
@@ -1,84 +0,0 @@
-<?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: bin-dist-deploy.xml 3576 2007-06-14 09:23:52Z thomas.diesler(a)jboss.com $
-->
-
-<project>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-4.2.2 -->
- <!-- ================================================================== -->
-
- <!-- Deploy jbossws/metro to jboss422 -->
- <target name="deploy-jboss422"
depends="undeploy-jboss422,deploy-jboss422-endorsed" description="Deploy
jbossws/metro to jboss422">
- <macro-deploy-metro422 stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
- </target>
- <target name="deploy-jboss422-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-deploy-endorsed jbosshome="${jboss422.home}"
thirdpartylibs="${lib.dir}"/>
- </target>
-
- <!-- Remove jbossws/metro from jboss422 -->
- <target name="undeploy-jboss422" depends="prepare"
description="Remove jbossws/metro from jboss422">
- <macro-undeploy-metro422/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-4.2.3 -->
- <!-- ================================================================== -->
-
- <!-- Deploy jbossws/metro to jboss423 -->
- <target name="deploy-jboss423"
depends="undeploy-jboss423,deploy-jboss423-endorsed" description="Deploy
jbossws/metro to jboss423">
- <macro-deploy-metro423 stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
- </target>
- <target name="deploy-jboss423-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-deploy-endorsed jbosshome="${jboss423.home}"
thirdpartylibs="${lib.dir}"/>
- </target>
-
- <!-- Remove jbossws/metro from jboss423 -->
- <target name="undeploy-jboss423" depends="prepare"
description="Remove jbossws/metro from jboss423">
- <macro-undeploy-metro423/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-5.0.0 -->
- <!-- ================================================================== -->
-
- <!-- Deploy jbossws/metro to jboss500 -->
- <target name="deploy-jboss500"
depends="undeploy-jboss500,deploy-jboss500-endorsed" description="Deploy
jbossws/metro to jboss500">
- <macro-deploy-metro500 stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
- </target>
- <target name="deploy-jboss500-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-deploy-endorsed jbosshome="${jboss500.home}"
thirdpartylibs="${lib.dir}"/>
- </target>
-
- <!-- Remove jbossws/metro from jboss500 -->
- <target name="undeploy-jboss500" depends="prepare"
description="Remove jbossws/metro from jboss500">
- <macro-undeploy-metro500/>
- </target>
-
- <!-- ================================================================== -->
- <!-- Deployment JBoss-5.0.1 -->
- <!-- ================================================================== -->
-
- <!-- Deploy jbossws/metro to jboss501 -->
- <target name="deploy-jboss501"
depends="undeploy-jboss501,deploy-jboss501-endorsed" description="Deploy
jbossws/metro to jboss501">
- <macro-deploy-metro501 stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
- </target>
- <target name="deploy-jboss501-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-deploy-endorsed jbosshome="${jboss501.home}"
thirdpartylibs="${lib.dir}"/>
- </target>
-
- <!-- Remove jbossws/metro from jboss501 -->
- <target name="undeploy-jboss501" depends="prepare"
description="Remove jbossws/metro from jboss501">
- <macro-undeploy-metro501/>
- </target>
-
-</project>
\ No newline at end of file