[jboss-svn-commits] JBL Code SVN: r14737 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld_hibernate_action.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 29 14:19:48 EDT 2007


Author: tcunning
Date: 2007-08-29 14:19:48 -0400 (Wed, 29 Aug 2007)
New Revision: 14737

Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_hibernate_action/build.xml
Log:
bug:JBESB-924
Add a check for the ear-deployer.xml to make sure that the container
deploys ears.


Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_hibernate_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_hibernate_action/build.xml	2007-08-29 18:05:08 UTC (rev 14736)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_hibernate_action/build.xml	2007-08-29 18:19:48 UTC (rev 14737)
@@ -20,6 +20,15 @@
 	<target name="package-deployment">
 	</target>
 
+	<target name="assert-ear-deployer">
+		<available type="file" property="ear.deployer.available" file="${org.jboss.esb.server.deploy.dir}/ear-deployer.xml"/>
+		<echo>${org.jboss.esb.server.deploy.dir}/ear-deployer.xml</echo>
+		<fail unless="ear.deployer.available">**** DEPLOYMENT FAILED... Sorry, this Quickstart requires a JBoss EAR deployable container.   '${org.jboss.esb.server.deploy.dir}' does not have an EAR deployer.     Check the 'org.jboss.esb.server.home' property in ../../../install/deployment.properties</fail>
+		<echo message="JBoss EAR deployer found on target '${org.jboss.esb.server.deploy.dir}'."/>
+	</target>
+
+	<target name="quickstart-specific-dependencies" depends="assert-ear-deployer"/>
+
 	<target name="deploy" depends="build-ear">
 		<copy file="${build.dir}/${ant.project.name}.ear"
 			todir="${org.jboss.esb.server.deploy.dir}"/>




More information about the jboss-svn-commits mailing list