[jboss-cvs] JBossAS SVN: r82490 - projects/aop/branches/Branch_2_0/asintegration-core/src/etc.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 00:34:01 EST 2008
Author: flavia.rainone at jboss.com
Date: 2008-12-23 00:34:01 -0500 (Tue, 23 Dec 2008)
New Revision: 82490
Modified:
projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-40-install-jboss-aop-jdk50-build.xml
projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-42-install-jboss-aop-jdk50-build.xml
projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-50-install-jboss-aop-jdk50-build.xml
Log:
[JBAOP-685] Applied task fix to 2.0 branch.
Modified: projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-40-install-jboss-aop-jdk50-build.xml
===================================================================
--- projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-40-install-jboss-aop-jdk50-build.xml 2008-12-23 05:23:25 UTC (rev 82489)
+++ projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-40-install-jboss-aop-jdk50-build.xml 2008-12-23 05:34:01 UTC (rev 82490)
@@ -10,17 +10,21 @@
<!-- The rest are automatic -->
<property name="jboss.config.dir" value="${jboss.home}/server/${jboss.config}"/>
- <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
-
- <available file="${jboss.home}" property="jboss.exists" type="dir"/>
- <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
-
+ <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
+ <property name="jboss.client.dir" value="${jboss.home}/client"/>
+
+ <available file="${jboss.home}" property="jboss.exists" type="dir"/>
+ <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
<available file="${jboss.bin.dir}" property="bin.exists" type="dir"/>
- <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
+ <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
<available file="${jboss.config.dir}" property="config.exists" type="dir"/>
- <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in build.xml to be a valid server configuration"/>
+ <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
+ <available file="${jboss.client.dir}" property="client.exists" type="dir"/>
+ <fail unless="client.exists" message="${jboss.client.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
+
<property name="deploy.dir" value="${jboss.config.dir}/deploy"/>
<property name="aspect.deployer" value="${deploy.dir}/jboss-aop.deployer"/>
@@ -47,10 +51,23 @@
</not>
</and>
</condition>
+
+ <property name="lib.jbossall-client" value="${jboss.client.dir}/jbossall-client.jar"/>
+ <available file="${lib.jbossall-client}" property="lib.jbossall-client.exists"/>
+ <fail unless="lib.jbossall-client.exists" message="${lib.jbossall-client} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <property name="bak.jbossall-client" value="${jboss.client.dir}/jbossall-client.bak"/>
+ <available file="${bak.jbossall-client}" property="jbossall-client.bak.exists"/>
+ <condition property="backup.jbossall-client" value="true">
+ <not>
+ <isset property="jbossall-client.bak.exists"/>
+ </not>
+ </condition>
+
</target>
<target name="prepare-aspect-library" depends="init">
- <!-- Unjar aspect library into a temp folder -->
+ <!-- Unjar aspect library into a temp folder -->
<delete file="jboss-aspect-library-jdk50.jar"/>
<mkdir dir="aspect-library-temp"/>
<unjar src="${aspect.library}" dest="aspect-library-temp"/>
@@ -72,6 +89,25 @@
<delete dir="aspect-library-temp"/>
</target>
+ <target name="update-jbossall-library" depends="init,backup-jbossall-library">
+ <!-- Unjar aspect library into a temp folder -->
+
+ <mkdir dir="jbossall-client-library-temp"/>
+ <unjar src="${lib.jbossall-client}" dest="jbossall-client-library-temp"/>
+ <delete file="${lib.jbossall-client}"/>
+ <!-- Get rid of the files that exist in jboss-aop-jdk50.jar -->
+ <delete dir="jbossall-client-library-temp/org/jboss/aop"/>
+ <unjar src="jboss-aop-jdk50.jar" dest="jbossall-client-library-temp"/>
+ <jar destfile="${lib.jbossall-client}" basedir="jbossall-client-library-temp" manifest="jbossall-client-library-temp/META-INF/MANIFEST.MF"/>
+
+ <delete dir="jbossall-client-library-temp"/>
+ </target>
+
+ <target name="backup-jbossall-library" if="backup.jbossall-client">
+ <echo>Backing up existing jbossall-client.jar to ${bak.jbossall-client}</echo>
+ <copy file="${lib.jbossall-client}" tofile="${bak.jbossall-client}"/>
+ </target>
+
<target name="backup" depends="prepare-aspect-library" unless="old.deployer.exists">
<echo>Backing up existing aop deployer to ${old.deployer}</echo>
<copy todir="${old.deployer}">
@@ -98,7 +134,7 @@
<move file="${lib.javassist}" tofile="${bak.javassist}"/>
</target>
- <target name="install.bin" depends="init">
+ <target name="install.bin" depends="init, update-jbossall-library">
<copy todir="${jboss.bin.dir}">
<fileset dir="../../lib">
<include name="pluggable-instrumentor.jar"/>
Modified: projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-42-install-jboss-aop-jdk50-build.xml
===================================================================
--- projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-42-install-jboss-aop-jdk50-build.xml 2008-12-23 05:23:25 UTC (rev 82489)
+++ projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-42-install-jboss-aop-jdk50-build.xml 2008-12-23 05:34:01 UTC (rev 82490)
@@ -10,17 +10,21 @@
<!-- The rest are automatic -->
<property name="jboss.config.dir" value="${jboss.home}/server/${jboss.config}"/>
- <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
-
- <available file="${jboss.home}" property="jboss.exists" type="dir"/>
- <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
-
- <available file="${jboss.bin.dir}" property="bin.exists" type="dir"/>
- <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
+ <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
+ <property name="jboss.client.dir" value="${jboss.home}/client"/>
+ <available file="${jboss.home}" property="jboss.exists" type="dir"/>
+ <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <available file="${jboss.bin.dir}" property="bin.exists" type="dir"/>
+ <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
<available file="${jboss.config.dir}" property="config.exists" type="dir"/>
- <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in build.xml to be a valid server configuration"/>
+ <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
+ <available file="${jboss.client.dir}" property="client.exists" type="dir"/>
+ <fail unless="client.exists" message="${jboss.client.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
+
<property name="deploy.dir" value="${jboss.config.dir}/deploy"/>
<property name="aspect.deployer" value="${deploy.dir}/jboss-aop-jdk50.deployer"/>
@@ -47,6 +51,38 @@
</not>
</and>
</condition>
+
+ <property name="lib.jbossall-client" value="${jboss.client.dir}/jbossall-client.jar"/>
+ <available file="${lib.jbossall-client}" property="lib.jbossall-client.exists"/>
+ <fail unless="lib.jbossall-client.exists" message="${lib.jbossall-client} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <property name="bak.jbossall-client" value="${jboss.client.dir}/jbossall-client.bak"/>
+ <available file="${bak.jbossall-client}" property="jbossall-client.bak.exists"/>
+ <condition property="backup.jbossall-client" value="true">
+ <not>
+ <isset property="jbossall-client.bak.exists"/>
+ </not>
+ </condition>
+
+ <property name="jboss.aop.lib" value="../../lib"/>
+ <available file="${jboss.aop.lib}" property="lib.jboss.aop.exists"/>
+ <fail unless="lib.jboss.aop.exists" message="${jboss.aop.lib} does not exist. Modify build.xml, setting the value of the property 'jboss.aop.lib' to be the path of the JBoss AOP lib installation directory."/>
+
+ <property name="lib.jbossaop-client" value="${jboss.aop.lib}/jboss-aop-client.jar"/>
+ <available file="${lib.jbossaop-client}" property="lib.jbossaop-client.exists"/>
+ <fail unless="lib.jbossaop-client.exists" message="${lib.jbossaop-client} does not exist. Modify build.xml, setting the value of the property 'jboss.aop.lib' to be the path of the JBoss AOP lib installation directory."/>
+
+ <property name="lib.jbossaop-client.injboss" value="${jboss.client.dir}/jboss-aop-jdk50-client.jar"/>
+ <available file="${lib.jbossaop-client.injboss}" property="lib.jbossaop-client.injboss.exists"/>
+ <fail unless="lib.jbossaop-client.injboss.exists" message="${lib.jbossaop-client.injboss} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <property name="bak.jbossaop-client" value="${jboss.client.dir}/jboss-aop-jdk50-client.bak"/>
+ <available file="${bak.jbossaop-client}" property="jbossaop-client.bak.exists"/>
+ <condition property="backup.jbossaop-client" value="true">
+ <not>
+ <isset property="jbossaop-client.bak.exists"/>
+ </not>
+ </condition>
</target>
<target name="prepare-aspect-library" depends="init">
@@ -72,6 +108,34 @@
<delete dir="aspect-library-temp"/>
</target>
+ <target name="update-jbossall-library" depends="init,backup-jbossall-library">
+ <!-- Unjar aspect library into a temp folder -->
+
+ <mkdir dir="jbossall-client-library-temp"/>
+ <unjar src="${lib.jbossall-client}" dest="jbossall-client-library-temp"/>
+ <delete file="${lib.jbossall-client}"/>
+ <!-- Get rid of the files that exist in jboss-aop-jdk50.jar -->
+ <delete dir="jbossall-client-library-temp/org/jboss/aop"/>
+ <unjar src="jboss-aop-jdk50.jar" dest="jbossall-client-library-temp"/>
+ <jar destfile="${lib.jbossall-client}" basedir="jbossall-client-library-temp" manifest="jbossall-client-library-temp/META-INF/MANIFEST.MF"/>
+
+ <delete dir="jbossall-client-library-temp"/>
+ </target>
+
+ <target name="backup-jbossall-library" if="backup.jbossall-client">
+ <echo>Backing up existing jbossall-client.jar to ${bak.jbossall-client}</echo>
+ <copy file="${lib.jbossall-client}" tofile="${bak.jbossall-client}"/>
+ </target>
+
+ <target name="update-jbossaop-library" depends="init,backup-jbossaop-library">
+ <copy file="${lib.jbossaop-client}" tofile="${bak.jbossaop-client.injboss}"/>
+ </target>
+
+ <target name="backup-jbossaop-library" if="backup.jbossaop-client">
+ <echo>Backing up existing ${lib.jbossaop-client.injboss} to ${bak.jbossaop-client}</echo>
+ <copy file="${lib.jbossaop-client.injboss}" tofile="${bak.jbossaop-client}"/>
+ </target>
+
<target name="backup" depends="prepare-aspect-library" unless="old.deployer.exists">
<echo>Backing up existing aop deployer to ${old.deployer}</echo>
<copy todir="${old.deployer}">
@@ -96,16 +160,16 @@
<target name="backup.javassist.post.4.0.4" depends="init" if="backup.javassist">
<move file="${lib.javassist}" tofile="${bak.javassist}"/>
- </target>
-
- <target name="install.bin" depends="init">
- <copy todir="${jboss.bin.dir}">
- <fileset dir="../../lib">
- <include name="pluggable-instrumentor.jar"/>
- <include name="jrockit-pluggable-instrumentor.jar"/>
- </fileset>
- </copy>
</target>
+
+ <target name="install.bin" depends="init, update-jbossall-library, update-jbossaop-library">
+ <copy todir="${jboss.bin.dir}">
+ <fileset dir="../../lib">
+ <include name="pluggable-instrumentor.jar"/>
+ <include name="jrockit-pluggable-instrumentor.jar"/>
+ </fileset>
+ </copy>
+ </target>
<target name="install.post.4.0.4" depends="install.deployer, install.bin, backup.javassist.post.4.0.4" if="jboss.post.4.0.4">
<delete file="${aspect.deployer}/javassist.jar"/>
Modified: projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-50-install-jboss-aop-jdk50-build.xml
===================================================================
--- projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-50-install-jboss-aop-jdk50-build.xml 2008-12-23 05:23:25 UTC (rev 82489)
+++ projects/aop/branches/Branch_2_0/asintegration-core/src/etc/jboss-50-install-jboss-aop-jdk50-build.xml 2008-12-23 05:34:01 UTC (rev 82490)
@@ -10,16 +10,20 @@
<!-- The rest are automatic -->
<property name="jboss.config.dir" value="${jboss.home}/server/${jboss.config}"/>
- <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
-
- <available file="${jboss.home}" property="jboss.exists" type="dir"/>
- <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
-
- <available file="${jboss.bin.dir}" property="bin.exists" type="dir"/>
- <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
+ <property name="jboss.bin.dir" value="${jboss.home}/bin"/>
+ <property name="jboss.client.dir" value="${jboss.home}/client"/>
+ <available file="${jboss.home}" property="jboss.exists" type="dir"/>
+ <fail unless="jboss.exists" message="${jboss.home} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <available file="${jboss.bin.dir}" property="bin.exists" type="dir"/>
+ <fail unless="bin.exists" message="${jboss.bin.dir} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <available file="${jboss.client.dir}" property="client.exists" type="dir"/>
+ <fail unless="client.exists" message="${jboss.client.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
+
<available file="${jboss.config.dir}" property="config.exists" type="dir"/>
- <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in build.xml to be a valid server configuration"/>
+ <fail unless="config.exists" message="${jboss.config.dir} does not exist. Modify 'jboss.config' in jboss.properties to be a valid server configuration"/>
<property name="deployers.dir" value="${jboss.config.dir}/deployers"/>
@@ -29,8 +33,28 @@
<property name="jboss.lib" value="${jboss.home}/lib"/>
<available file="${jboss.lib}" property="lib.exists" type="dir"/>
- <fail unless="lib.exists" message="${jboss.lib} does not exist. Modify 'jboss.home' in build.xml to be a valid root of a jboss installation"/>
+ <fail unless="lib.exists" message="${jboss.lib} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+ <property name="jboss.aop.lib" value="../lib"/>
+ <available file="${jboss.aop.lib}" property="lib.jboss.aop.exists"/>
+ <fail unless="lib.jboss.aop.exists" message="${jboss.aop.lib} does not exist. Modify build.xml, setting the value of the property 'jboss.aop.lib' to be the path of the JBoss AOP lib installation directory."/>
+
+ <property name="lib.jbossaop-client" value="${jboss.aop.lib}/jboss-aop-client.jar"/>
+ <available file="${lib.jbossaop-client}" property="lib.jbossaop-client.exists"/>
+ <fail unless="lib.jbossaop-client.exists" message="${lib.jbossaop-client} does not exist. Modify build.xml, setting the value of the property 'jboss.aop.lib' to be the path of the JBoss AOP lib installation directory."/>
+
+ <property name="lib.jbossaop-client.injboss" value="${jboss.client.dir}/jboss-aop-client.jar"/>
+ <available file="${lib.jbossaop-client.injboss}" property="lib.jbossaop-client.injboss.exists"/>
+ <fail unless="lib.jbossaop-client.injboss.exists" message="${lib.jbossaop-client.injboss} does not exist. Modify 'jboss.home' in jboss.properties to be a valid root of a jboss installation"/>
+
+ <property name="bak.jbossaop-client" value="${jboss.client.dir}/jboss-aop-client.bak"/>
+ <available file="${bak.jbossaop-client}" property="jbossaop-client.bak.exists"/>
+ <condition property="backup.jbossaop-client" value="true">
+ <not>
+ <isset property="jbossaop-client.bak.exists"/>
+ </not>
+ </condition>
+
<tstamp>
<format property="tstamp" pattern="yyyyMMdd-HHmmss"/>
</tstamp>
@@ -53,12 +77,18 @@
</copy>
</target>
- <target name="install.lib" depends="backup.lib">
+ <target name="backup.client.lib" if="backup.jbossaop-client">
+ <echo>Backing up existing ${lib.jbossaop-client.injboss} to ${bak.jbossaop-client}</echo>
+ <copy file="${lib.jbossaop-client.injboss}" tofile="${bak.jbossaop-client}"/>
+ </target>
+
+ <target name="install.lib" depends="backup.lib,backup.client.lib">
<copy todir="${jboss.lib}">
<fileset dir="lib">
<include name="*"/>
</fileset>
</copy>
+ <copy file="${lib.jbossaop-client}" tofile="${bak.jbossaop-client.injboss}"/>
</target>
<target name="install.deployer" depends="backup.deployer">
More information about the jboss-cvs-commits
mailing list