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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 12 07:25:42 EST 2010


Author: tfennelly
Date: 2010-01-12 07:25:42 -0500 (Tue, 12 Jan 2010)
New Revision: 31030

Modified:
   labs/jbossesb/branches/JBESB_4_7_CP/product/install/build.xml
Log:
https://jira.jboss.org/jira/browse/JBESB-2912
No re-deployment of an altered package

Modified: labs/jbossesb/branches/JBESB_4_7_CP/product/install/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/install/build.xml	2010-01-12 07:08:12 UTC (rev 31029)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/install/build.xml	2010-01-12 12:25:42 UTC (rev 31030)
@@ -115,7 +115,7 @@
             <copy todir="${plugin.dir}" file="${jopr.plugin.jar}"/>
         </target>
 
-	<target name="deploy" depends="undeploy, internal.deploy, internal.deploy.jbossas5, deploy.console, deploy.bindings"   description="Wrapper for internal.deploy"/>
+	<target name="deploy" depends="undeploy, internal.deploy, internal.deploy.jbossas5, deploy.console, deploy.bindings, update.modfilter"   description="Wrapper for internal.deploy"/>
 
 	<target name="check.tomcat.props">
 		<fail unless="org.jboss.esb.tomcat.home" message="Cannot determine target deployment, please check deployment.properties"/>
@@ -576,4 +576,26 @@
 	<target name="undeploy.bindings" depends="init.bindings.props" if="bindings.exist" description="Undeploy ESB Bindings from the application server">
 		<move file="${bindings.backup.location}" tofile="${bindings.location}"/>
 	</target>
+
+	<target name="update.modfilter" if="jbossas5" description="Update the ModificationCheckerFilter in the profile.xml to include the jboss-esb.xml file">
+		<property name="profile.xml.file" location="${server.dir}/conf/bootstrap/profile.xml" />        
+		<property name="profile.xml.file.pre.update" location="${profile.xml.file}.pre.esb.modfilter.update" />  
+		
+		<!-- Only apply the search and replace if not done already, which is signaled by the presence of the file named "profile.xml.pre.esb.modfilter.update" -->
+		<condition property="apply.modfilter.update">
+			<and>
+	            <available file="${profile.xml.file}"/>
+	            <not><available file="${profile.xml.file.pre.update}"/></not>
+		    </and>
+        </condition>
+		<antcall target="apply.modfilter.replace" />
+	</target>
+	<target name="apply.modfilter.replace" if="apply.modfilter.update" description="Apply the ModificationCheckerFilter search and replace on the profile.xml to include the jboss-esb.xml file">
+		<!-- Backup the original profile.xml -->
+		<copy file="${profile.xml.file}" tofile="${profile.xml.file.pre.update}" />
+		
+		<!-- Apply the search and replace -->
+		<replace file="${profile.xml.file}" token=".*/(application|web|ejb-jar|" value=".*/(application|web|ejb-jar|jboss-esb|" />
+	</target>
+	
 </project>



More information about the jboss-svn-commits mailing list