[seam-commits] Seam SVN: r12473 - branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 13 12:29:48 EDT 2010


Author: jharting
Date: 2010-04-13 12:29:47 -0400 (Tue, 13 Apr 2010)
New Revision: 12473

Modified:
   branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml
Log:
Support for container start/stop during seam-gen tests.

Modified: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml	2010-04-13 16:27:04 UTC (rev 12472)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml	2010-04-13 16:29:47 UTC (rev 12473)
@@ -123,6 +123,10 @@
 		<sequential>
 			<!--<ant antfile="${seam.dir}/build.xml" target="copyseam"/>
 			<ant antfile="${seam.dir}/build.xml" target="copyseamdependencies"/>-->
+			
+			<!-- Start the application server -->
+			<ant target="start.container" />
+			
 			<taskdef resource="testngtasks" classpathref="classpath.test" />
 			<!-- execute testng tests -->
 			<testng haltonfailure="false" outputdir="${test.output.dir}" classpathref="classpath.test">
@@ -130,7 +134,23 @@
 				<sysproperty key="seam.dir" value="${seam.dir}" />
 				<sysproperty key="ftest.config.location" value="${ftest.config.location}" />
 			</testng>
+			
+			<!-- Stop the application server -->
+			<ant target="stop.container" />
 		</sequential>
 	</macrodef>
+	
+	<target name="start.container" if="run.container.per.suite">
+		<echo>Starting container</echo>
+		<ant antfile="${ftest.dir}/examples/build.xml" target="start.container.jboss" inheritall="false">
+			<property name="container" value="${container}" />
+		</ant>
+	</target>
+	<target name="stop.container" if="run.container.per.suite">
+		<echo>Stopping container</echo>
+		<ant antfile="${ftest.dir}/examples/build.xml" target="stop.container.jboss" inheritall="false">
+			<property name="container" value="${container}" />
+		</ant>
+	</target>
 
 </project>



More information about the seam-commits mailing list