[jboss-cvs] JBossAS SVN: r66722 - branches/JBPAPP_4_2/ejb3/imports.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 5 03:05:35 EST 2007


Author: wolfc
Date: 2007-11-05 03:05:35 -0500 (Mon, 05 Nov 2007)
New Revision: 66722

Modified:
   branches/JBPAPP_4_2/ejb3/imports/build-mq2jbm.xml
Log:
JBPAPP-347: build-jms-dd

Modified: branches/JBPAPP_4_2/ejb3/imports/build-mq2jbm.xml
===================================================================
--- branches/JBPAPP_4_2/ejb3/imports/build-mq2jbm.xml	2007-11-05 05:00:19 UTC (rev 66721)
+++ branches/JBPAPP_4_2/ejb3/imports/build-mq2jbm.xml	2007-11-05 08:05:35 UTC (rev 66722)
@@ -1,4 +1,31 @@
 <project name="build-mq2jbm">
+   <target name="_build-mq2jbm-transform" if="build.soa">
+      <xslt style="${resources}/test/mq2jbm.xsl" 
+      	in="${resources}/test/${testname}/${descriptor}" 
+      	out="${target.resources}/test/${testname}/${descriptor}"/>
+   </target>
+   
+   <target name="_build-mq2jbm-copymq" unless="build.soa">
+      <copy todir="${target.resources}/test/${testname}" file="${resources}/test/${testname}/${descriptor}"/>
+   </target>
+   
+   <target name="_build-jms-dd" depends="_build-mq2jbm-transform,_build-mq2jbm-copymq"/>
+   
+   <macrodef name="build-jms-dd"
+      description="build the right jms deployment descriptor">
+      <attribute name="name" description="the name of the test"/>
+      <attribute name="descriptor" description="the JBossMQ deployment descriptor file"/>
+      <sequential>
+         <mkdir dir="${target.resources}/test/@{name}"/>
+         
+         <antcall target="_build-jms-dd">
+            <param name="descriptor" value="@{descriptor}"/>
+            <param name="testname" value="@{name}"/>
+         </antcall>
+      </sequential>
+   </macrodef>
+   
+   <!-- Transform a series of mq descriptors -->
    <macrodef name="mq2jbm"
       description="transform mq descriptors into jbm descriptors">
       <attribute name="basedir" description="the directory containing mq descriptors"/>




More information about the jboss-cvs-commits mailing list