[jboss-svn-commits] JBL Code SVN: r8633 - labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 2 15:58:33 EST 2007


Author: burrsutter
Date: 2007-01-02 15:58:31 -0500 (Tue, 02 Jan 2007)
New Revision: 8633

Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/build.xml
Log:
uses new bootstrapper and has a deployToSAR task

Modified: labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/build.xml	2007-01-02 20:57:48 UTC (rev 8632)
+++ labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/build.xml	2007-01-02 20:58:31 UTC (rev 8633)
@@ -7,25 +7,20 @@
  <property name="src.dir"
     value="${basedir}/src"/>
 	
- <property name="esb-config" value="${basedir}/esb-config.xml"/>
- <property name="esb-config-gateway" value="${basedir}/esb-config-gateway.xml"/>
+ <property name="esb-config" value="${basedir}/jbossesb.xml"/>
   
 	<path id="classpath">
-    <fileset dir="${basedir}" includes="jbossesb-properties.xml"/>
-    <fileset dir="${basedir}" includes="juddi.properties"/>
-    <fileset dir="${basedir}" includes="smooks-cdr.lst"/>
-    <fileset dir="${basedir}" includes="smooks-res.xml"/>
-    <fileset dir="${basedir}/src" includes="*st"/>    
-    <fileset dir="${basedir}/lib" includes="*jar"/>    
-    
-	  <fileset dir="${esb.product.lib.dir}" includes="*jar"/>
-	  <fileset dir="${esb.product.lib.dir}" includes="*xml"/>
-	  <fileset dir="${esb.product.lib.dir}/ext" includes="*jar"/>
+    <!-- fileset dir="${basedir}" includes="jbossesb-properties.xml" -->
+    <!-- fileset dir="${basedir}" includes="juddi.properties" -->
+    <fileset dir="${basedir}/lib" includes="*jar"/>        
+    <fileset dir="${esb.product.lib.dir}" includes="*jar"/>
+	<fileset dir="${esb.product.lib.dir}" includes="*xml"/>
+	<fileset dir="${esb.product.lib.dir}/ext" includes="*jar"/>
 
-	  <fileset dir="${jbosshome.dir}/client" includes="*jar"/>
-	  <fileset dir="${jbosshome.dir}/server/default/lib">
-		  <include name="jboss-j2ee.jar"/> <!-- added this for the JMS client -->
-	  </fileset>		
+	<fileset dir="${jbosshome.dir}/client" includes="*jar"/>
+	<fileset dir="${jbosshome.dir}/server/default/lib">
+	  <include name="jboss-j2ee.jar"/> <!-- added this for the JMS client -->
+	 </fileset>		
   	
     <fileset dir="${basedir}" includes="build/**/*.jar"/>
   	<fileset dir="${basedir}" includes="build/**/*.xml"/>
@@ -64,15 +59,25 @@
   </target>
 
   <target name="run" depends="jars">
-     <echo>Basic JMS Gateway and Listener</echo>
-     <java fork="yes" classname="quickstart.Launcher" failonerror="true">
-     	<arg value="0"/>
-     	<arg value="${esb-config}"/>
-     	<arg value="${esb-config-gateway}"/>
-		<classpath refid="classpath"/>
-     </java>     
-  </target>	
+	    <echo>Simple CBR: make sure to also run receiveExpress, receiveNormal</echo>
+			 <java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">  
+		  	   	<arg value="${esb-config}"/>
+		  		<classpath refid="classpath"/>
+		  	 </java>
+  </target>
 
+  <target name="deployToSAR">
+		    <echo>Deploys the project to the JBoss Application Server ESB SAR</echo>
+		  	<copy file="${build.dir}/${ant.project.name}.jar" overwrite="true"
+		  		todir="${jbosshome.dir}/server/default/deploy/jbossesb.sar"	
+		  	/>
+		  	<copy file="jbossesb.xml" overwrite="true"
+		  		todir="${jbosshome.dir}/server/default/conf"
+		  	/>
+		  	<touch file="${jbosshome.dir}/server/default/deploy/jbossesb.sar/META-INF/jboss-service.xml"/>
+		  	<echo>Check your AS console to see if everything deployed properly then run 'ant runtest'</echo>
+  </target>
+	
   <target name="runtest">
      <echo>Runs Test JMS Sender</echo>
      <java fork="yes" classname="quickstart.test.SendJMSMessage" failonerror="true">




More information about the jboss-svn-commits mailing list