[jboss-svn-commits] JBL Code SVN: r10507 - labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/business_service.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Mar 23 17:52:49 EDT 2007


Author: bill.burke at jboss.com
Date: 2007-03-23 17:52:49 -0400 (Fri, 23 Mar 2007)
New Revision: 10507

Added:
   labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/business_service/build.xml
Log:
business service update

Added: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/business_service/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/business_service/build.xml	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/business_service/build.xml	2007-03-23 21:52:49 UTC (rev 10507)
@@ -0,0 +1,104 @@
+<project name="Base" default="run" basedir=".">
+
+   <property file="../quickstarts.properties"/>
+
+   <property name="additional.deploys" value=""/>
+
+   <property name="classes" value="build/classes"/>
+
+   <path id="compile-classpath">
+      <fileset dir="../../../lib/ext" includes="*.jar"/>
+      <!-- Product Dependencies. -->
+      <fileset dir="${esb.product.lib.dir}" includes="*.jar"/>
+      <fileset dir="${jbosshome.dir}/client" includes="*.jar"/>
+      <!-- Product Jars. -->
+   </path>
+   <path id="exec-classpath">
+      <pathelement location="."/>
+      <pathelement location="build/classes"/>
+      <pathelement location="src"/>
+      <path refid="compile-classpath"/>    
+      <fileset dir="${jbosshome.dir}/client" includes="*.jar"/>
+      <!-- Required for JMS Client Code. -->
+   </path>
+
+   <target name="compile">
+      <mkdir dir="${classes}"/>
+      <javac srcdir="ejb3/src" destdir="${classes}">
+         <classpath refid="compile-classpath"/>
+      </javac>
+      <javac srcdir="esb_actions/src" destdir="${classes}">
+         <classpath refid="compile-classpath"/>
+      </javac>
+   </target>
+
+   <target name="deployToSAR">
+      <echo message='******************'/>
+      <echo message='DEPRECATED!!  Sorry, this target has been deprecated for Quickstart Deployment.'/>
+      <echo message='Run "ant deploy" to deploy this Quickstart to your target JBoss ESB Server.${line.separator}${line.separator}'/>
+      <echo message='******************'/>
+      <fail/>
+   </target>
+
+   <target name="deploy" depends="compile">
+      <echo>Deploying Quickstart to JBoss ESB Server...</echo>
+
+      <mkdir dir="build/META-INF"/>
+      <copy todir="build/META-INF">
+         <fileset dir="./" includes="jboss-esb.xml,deployment.xml"/>
+      </copy>
+
+      <jar destfile="build/helloworld-ejb.jar">
+         <fileset dir="build/classes" includes="org/jboss/tutorial/stateless/bean/*.class"/>
+      </jar>
+
+      <jar destfile="build/${ant.project.name}.esb">
+         <fileset dir="build" includes="helloworld-ejb.jar"/>
+         <fileset dir="build/classes" includes="quickstart/**/*"/>
+         <fileset dir="build" includes="META-INF/**"/>
+         <fileset dir="${basedir}" includes="jboss-mq-queue-service.xml"/>
+      </jar>
+
+      <copy file="build/${ant.project.name}.esb" overwrite="true" todir="${jbosshome.dir}/server/all/deploy/"/>
+
+      <echo message='${line.separator}******************'/>
+      <echo>Quickstart deployed to target JBoss ESB Server at '${jbosshome.dir}'.</echo>
+      <echo>1. Check your ESB Server console to make sure the deployment was executed without errors.</echo>
+      <echo>2. Run 'ant runtest' to run the Quickstart.</echo>
+      <echo>3. Check your ESB Server console again. The Quickstart should have produced some output.</echo>
+      <echo message='******************'/>
+
+   </target>
+
+   <target name="echoCP">
+      <property name="cp" refid="exec-classpath"/>
+      <echo message="Classpath is ${cp}"/>
+   </target>
+
+   <target name="testaspojo" depends="compile">
+      <java classname="org.jboss.tutorial.stateless.client.Client" fork="yes" dir=".">
+         <arg value="-pojo"/>
+         <classpath refid="exec-classpath"/>
+      </java>
+   </target>
+
+   <target name="testasejb" depends="compile">
+      <java classname="org.jboss.tutorial.stateless.client.Client" fork="yes" dir=".">
+         <arg value="-ejb"/>
+         <classpath refid="exec-classpath"/>
+      </java>
+   </target>
+
+   <target name="runtest" depends="compile">
+      <echo>Runs Test JMS Sender</echo>
+      <java fork="yes" classname="quickstart.business_service.test.SendJMSMessage" failonerror="true">
+         <arg value="Your Name"/>
+         <classpath refid="exec-classpath"/>
+      </java>
+   </target>
+
+   <target name="clean">
+      <delete dir="build"/>
+   </target>
+
+</project>
\ No newline at end of file




More information about the jboss-svn-commits mailing list