Author: thomas.diesler(a)jboss.com
Date: 2008-02-27 11:59:27 -0500 (Wed, 27 Feb 2008)
New Revision: 5825
Modified:
stack/metro/trunk/ant-import/build-bin-dist.xml
stack/metro/trunk/ant-import/build-deploy.xml
stack/metro/trunk/ant-import/macros-deploy-metro.xml
stack/metro/trunk/src/main/distro/bin-dist-build.xml
stack/metro/trunk/src/main/distro/bin-dist-deploy.xml
Log:
Fix bin-dist deployment.
Fix chmod of deployed *.sh files
Modified: stack/metro/trunk/ant-import/build-bin-dist.xml
===================================================================
--- stack/metro/trunk/ant-import/build-bin-dist.xml 2008-02-27 16:51:51 UTC (rev 5824)
+++ stack/metro/trunk/ant-import/build-bin-dist.xml 2008-02-27 16:59:27 UTC (rev 5825)
@@ -47,7 +47,7 @@
<!-- build -->
<copy todir="${bindist.build.dir}">
<fileset dir="${metro.dir}/ant-import">
- <include name="macros-deploy-framework.xml"/>
+ <include name="jbossws.default.undeploy.files"/>
<include name="macros-deploy-metro.xml"/>
</fileset>
</copy>
Modified: stack/metro/trunk/ant-import/build-deploy.xml
===================================================================
--- stack/metro/trunk/ant-import/build-deploy.xml 2008-02-27 16:51:51 UTC (rev 5824)
+++ stack/metro/trunk/ant-import/build-deploy.xml 2008-02-27 16:59:27 UTC (rev 5825)
@@ -14,13 +14,15 @@
<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.undeploy.files"/>
<!-- ================================================================== -->
<!-- Deployment JBoss422 -->
<!-- ================================================================== -->
<target name="deploy-jboss422"
depends="jars-jboss42,undeploy-jboss422" description="Deploy jbossws/metro
to jboss42">
- <macro-deploy-framework
thirdpartylibs="${int.metro.dir}/thirdparty"/>
<macro-deploy-metro422 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
</target>
@@ -33,7 +35,6 @@
<!-- ================================================================== -->
<target name="deploy-jboss423"
depends="jars-jboss42,undeploy-jboss423" description="Deploy jbossws/metro
to jboss42">
- <macro-deploy-framework
thirdpartylibs="${int.metro.dir}/thirdparty"/>
<macro-deploy-metro423 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
</target>
@@ -46,7 +47,6 @@
<!-- ================================================================== -->
<target name="deploy-jboss500"
depends="jars-jboss50,undeploy-jboss500" description="Deploy jbossws/metro
to jboss50">
- <macro-deploy-framework
thirdpartylibs="${int.metro.dir}/thirdparty"/>
<macro-deploy-metro500 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
</target>
@@ -59,7 +59,6 @@
<!-- ================================================================== -->
<target name="deploy-jboss501"
depends="jars-jboss50,undeploy-jboss501" description="Deploy jbossws/metro
to jboss50">
- <macro-deploy-framework
thirdpartylibs="${int.metro.dir}/thirdparty"/>
<macro-deploy-metro501 stacklibs="${int.metro.dir}/output/lib"
thirdpartylibs="${int.metro.dir}/thirdparty"/>
</target>
Modified: stack/metro/trunk/ant-import/macros-deploy-metro.xml
===================================================================
--- stack/metro/trunk/ant-import/macros-deploy-metro.xml 2008-02-27 16:51:51 UTC (rev
5824)
+++ stack/metro/trunk/ant-import/macros-deploy-metro.xml 2008-02-27 16:59:27 UTC (rev
5825)
@@ -52,18 +52,17 @@
<sequential>
<!-- BIN SCRIPTS -->
- <unzip dest="${metro.output.deploy.dir}/bin"
src="(a){thirdpartylibs}/jbossws-framework-scripts.zip"/>
- <chmod dir="${metro.output.deploy.dir}/bin" perm="+x"
includes="*.sh"/>
+ <unzip dest="${deploy.dir}/bin"
src="(a){thirdpartylibs}/jbossws-framework-scripts.zip"/>
<!-- CLIENT JARS-->
- <copy todir="${metro.output.deploy.dir}/client">
+ <copy todir="${deploy.dir}/client">
<fileset dir="@{thirdpartylibs}">
<patternset refid="client.patternset"/>
</fileset>
</copy>
<!-- SERVER LIB JARS-->
- <copy
todir="${metro.output.deploy.dir}/server/${jboss.server.instance}/lib">
+ <copy todir="${deploy.dir}/server/${jboss.server.instance}/lib">
<fileset dir="@{thirdpartylibs}">
<patternset refid="server.lib.patternset"/>
</fileset>
@@ -89,16 +88,17 @@
<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="${metro.output.deploy.dir}"
excludes="jbossws.deployed.files"/>
+ <fileset id="jbossws.deploy.files" dir="${deploy.dir}"
excludes="jbossws.deployed.files"/>
<copy todir="@{jbosshome}" overwrite="true">
<fileset refid="jbossws.deploy.files"/>
</copy>
+ <chmod dir="@{jbosshome}/bin" perm="+x"
includes="*.sh"/>
<!-- Write jbossws.deployed.files -->
<property name="jbossws.deploy.files"
refid="jbossws.deploy.files"/>
- <echo file="${metro.output.deploy.dir}/jbossws.deployed.files"
message="${jbossws.deploy.files}"/>
- <replace file="${metro.output.deploy.dir}/jbossws.deployed.files"
token=";" value=" "/>
- <copy
todir="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"
file="${metro.output.deploy.dir}/jbossws.deployed.files"
overwrite="true"/>
+ <echo file="${deploy.dir}/jbossws.deployed.files"
message="${jbossws.deploy.files}"/>
+ <replace file="${deploy.dir}/jbossws.deployed.files"
token=";" value=" "/>
+ <copy
todir="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar"
file="${deploy.dir}/jbossws.deployed.files" overwrite="true"/>
</sequential>
</macrodef>
@@ -111,10 +111,10 @@
<attribute name="jbosshome"/>
<sequential>
- <delete dir="${metro.output.deploy.dir}"/>
+ <delete dir="${deploy.dir}"/>
<loadfile property="jbossws.undeploy.files"
srcfile="(a){jbosshome}/server/${jboss.server.instance}/deploy/jbossws.sar/jbossws.deployed.files"
failonerror="false"/>
- <loadfile property="jbossws.undeploy.files"
srcfile="${int.metro.dir}/ant-import/jbossws.default.undeploy.files"
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"/>
@@ -135,8 +135,8 @@
<sequential>
<!-- CLIENT JARS -->
- <mkdir dir="${metro.output.deploy.dir}/client"/>
- <copy todir="${metro.output.deploy.dir}/client"
overwrite="true">
+ <mkdir dir="${deploy.dir}/client"/>
+ <copy todir="${deploy.dir}/client" overwrite="true">
<fileset dir="@{stacklibs}">
<patternset refid="client.patternset"/>
</fileset>
@@ -146,8 +146,8 @@
</copy>
<!-- LIB JARS -->
- <mkdir dir="${metro.output.deploy.dir}/lib"/>
- <copy todir="${metro.output.deploy.dir}/lib"
overwrite="true">
+ <mkdir dir="${deploy.dir}/lib"/>
+ <copy todir="${deploy.dir}/lib" overwrite="true">
<fileset dir="@{thirdpartylibs}">
<patternset refid="lib.patternset"/>
</fileset>
@@ -165,6 +165,7 @@
<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>
@@ -187,6 +188,7 @@
<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>
@@ -210,8 +212,8 @@
<sequential>
<!-- CLIENT JARS -->
- <mkdir dir="${metro.output.deploy.dir}/client"/>
- <copy todir="${metro.output.deploy.dir}/client"
overwrite="true">
+ <mkdir dir="${deploy.dir}/client"/>
+ <copy todir="${deploy.dir}/client" overwrite="true">
<fileset dir="@{stacklibs}">
<patternset refid="client.patternset"/>
</fileset>
@@ -221,15 +223,15 @@
</copy>
<!-- LIB JARS -->
- <mkdir dir="${metro.output.deploy.dir}/lib"/>
- <copy todir="${metro.output.deploy.dir}/lib"
overwrite="true">
+ <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="${metro.output.deploy.dir}/server/${jboss.server.instance}/lib"
overwrite="true">
+ <copy todir="${deploy.dir}/server/${jboss.server.instance}/lib"
overwrite="true">
<fileset dir="@{stacklibs}">
<patternset refid="server.lib.patternset"/>
</fileset>
@@ -247,6 +249,7 @@
<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>
@@ -269,6 +272,7 @@
<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>
Modified: stack/metro/trunk/src/main/distro/bin-dist-build.xml
===================================================================
--- stack/metro/trunk/src/main/distro/bin-dist-build.xml 2008-02-27 16:51:51 UTC (rev
5824)
+++ stack/metro/trunk/src/main/distro/bin-dist-build.xml 2008-02-27 16:59:27 UTC (rev
5825)
@@ -19,11 +19,14 @@
<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="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 file="${basedir}/ant.properties"/>
<property file="${basedir}/version.properties"/>
@@ -74,8 +77,8 @@
</condition>
<condition property="jbossws.integration.jboss50"
value="true">
<or>
- <equals arg1="${jbossws.integration.target}"
arg2="jboss500"/>
- <equals arg1="${jbossws.integration.target}"
arg2="jboss501"/>
+ <equals arg1="${jbossws.integration.target}"
arg2="jboss500"/>
+ <equals arg1="${jbossws.integration.target}"
arg2="jboss501"/>
</or>
</condition>
@@ -86,7 +89,6 @@
<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-framework.xml"/>
<import file="${basedir}/build/macros-deploy-metro.xml"/>
<import file="${basedir}/tests/ant-import/build-testsuite.xml"/>
Modified: stack/metro/trunk/src/main/distro/bin-dist-deploy.xml
===================================================================
--- stack/metro/trunk/src/main/distro/bin-dist-deploy.xml 2008-02-27 16:51:51 UTC (rev
5824)
+++ stack/metro/trunk/src/main/distro/bin-dist-deploy.xml 2008-02-27 16:59:27 UTC (rev
5825)
@@ -20,20 +20,15 @@
<!-- 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}"/>
- <macro-deploy-framework thirdpartylibs="${lib.dir}"
jbosshome="${jboss422.home}"/>
</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,undeploy-jboss422-endorsed" description="Remove
jbossws/metro from jboss422">
+ <target name="undeploy-jboss422" depends="prepare"
description="Remove jbossws/metro from jboss422">
<macro-undeploy-metro422/>
- <macro-undeploy-framework jbosshome="${jboss422.home}"/>
</target>
- <target name="undeploy-jboss422-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-undeploy-endorsed jbosshome="${jboss422.home}"/>
- </target>
<!-- ================================================================== -->
<!-- Deployment JBoss-4.2.3 -->
@@ -42,20 +37,15 @@
<!-- 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}"/>
- <macro-deploy-framework thirdpartylibs="${lib.dir}"
jbosshome="${jboss423.home}"/>
</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,undeploy-jboss423-endorsed" description="Remove
jbossws/metro from jboss423">
+ <target name="undeploy-jboss423" depends="prepare"
description="Remove jbossws/metro from jboss423">
<macro-undeploy-metro423/>
- <macro-undeploy-framework jbosshome="${jboss423.home}"/>
</target>
- <target name="undeploy-jboss423-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
- <macro-undeploy-endorsed jbosshome="${jboss423.home}"/>
- </target>
<!-- ================================================================== -->
<!-- Deployment JBoss-5.0.0 -->
@@ -64,7 +54,6 @@
<!-- 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}"/>
- <macro-deploy-framework thirdpartylibs="${lib.dir}"
jbosshome="${jboss500.home}"/>
</target>
<target name="deploy-jboss500-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
<macro-deploy-endorsed jbosshome="${jboss500.home}"
thirdpartylibs="${lib.dir}"/>
@@ -73,7 +62,6 @@
<!-- Remove jbossws/metro from jboss500 -->
<target name="undeploy-jboss500" depends="prepare"
description="Remove jbossws/metro from jboss500">
<macro-undeploy-metro500/>
- <macro-undeploy-framework jbosshome="${jboss500.home}"/>
</target>
<!-- ================================================================== -->
@@ -83,7 +71,6 @@
<!-- 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}"/>
- <macro-deploy-framework thirdpartylibs="${lib.dir}"
jbosshome="${jboss501.home}"/>
</target>
<target name="deploy-jboss501-endorsed" depends="prepare"
if="HAVE_JDK_1.6">
<macro-deploy-endorsed jbosshome="${jboss501.home}"
thirdpartylibs="${lib.dir}"/>
@@ -92,7 +79,6 @@
<!-- Remove jbossws/metro from jboss501 -->
<target name="undeploy-jboss501" depends="prepare"
description="Remove jbossws/metro from jboss501">
<macro-undeploy-metro501/>
- <macro-undeploy-framework jbosshome="${jboss501.home}"/>
</target>
</project>
\ No newline at end of file