[jboss-svn-commits] JBL Code SVN: r37841 - labs/jbossesb/branches/JBESB_4_10_CP/product/install.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jan 5 15:43:01 EST 2012


Author: tcunning
Date: 2012-01-05 15:43:00 -0500 (Thu, 05 Jan 2012)
New Revision: 37841

Modified:
   labs/jbossesb/branches/JBESB_4_10_CP/product/install/build.xml
Log:
JBESB-3669
Fix the admin-console on jboss-5.1.0.GA.    Two files need to be
modified to support the right JNDI bindings and the JOPR console needs
to be installed.


Modified: labs/jbossesb/branches/JBESB_4_10_CP/product/install/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_10_CP/product/install/build.xml	2012-01-05 15:26:31 UTC (rev 37840)
+++ labs/jbossesb/branches/JBESB_4_10_CP/product/install/build.xml	2012-01-05 20:43:00 UTC (rev 37841)
@@ -115,7 +115,32 @@
             <unzip dest="${jopr.console.dir}" src="${jopr.console.war}"/>
         </target>
 
-        <target name="deploy.console" depends="install.base.console">
+        <target name="patch.as5.console" if="jbossas5" unless="jbossas6">
+		<delete dir="${jopr.console.dir}"/>
+                <unzip dest="${jopr.console.dir}" src="${jopr.as5.console}"/> 
+
+                <!-- Back the file up before replacement -->
+                <copy file="${server.dir}/deploy/profileservice-jboss-beans.xml"
+                        tofile="${server.dir}/deploy/profileservice-jboss-beans.xml.orig"
+                        overwrite="false"/>
+		<!-- Replace one reference in profileservice-jboss-beans.xml -->
+        	<replace file="${server.dir}/deploy/profileservice-jboss-beans.xml">
+			<replacetoken>&lt;property name="jndiName"&gt;ProfileService&lt;/property&gt;</replacetoken>	
+	                <replacevalue>&lt;property name="jndiName"&gt;java:ProfileService&lt;/property&gt;</replacevalue>
+		</replace>
+
+                <!-- Back up the file before replacement -->
+                <copy file="${server.dir}/deploy/profileservice-secured.jar/META-INF/ejb-jar.xml"
+                       tofile="${server.dir}/deploy/profileservice-secured.jar/META-INF/ejb-jar.xml.orig"
+                       overwrite="false"/>
+		<!-- Replace three references in ejb-jar.xml -->
+                <replace file="${server.dir}/deploy/profileservice-secured.jar/META-INF/ejb-jar.xml">
+		        <replacetoken>&lt;res-ref-name&gt;profileService&lt;/res-ref-name&gt;</replacetoken>
+			<replacevalue>&lt;res-ref-name&gt;profileService&lt;/res-ref-name&gt;</replacevalue>
+                </replace>
+        </target>
+
+        <target name="deploy.console" depends="install.base.console, patch.as5.console">
             <condition property="console.dir"
 	      value="${jopr.console.dir}">
                <available file="${jopr.console.dir}"/>



More information about the jboss-svn-commits mailing list