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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 13 12:32:35 EDT 2010


Author: jharting
Date: 2010-04-13 12:32:35 -0400 (Tue, 13 Apr 2010)
New Revision: 12474

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

Modified: branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/seamgen/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/seamgen/build.xml	2010-04-13 16:29:47 UTC (rev 12473)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/seamgen/build.xml	2010-04-13 16:32:35 UTC (rev 12474)
@@ -100,13 +100,33 @@
 		<attribute name="suite" />
 		<sequential>
 			<!--<ant antfile="${seam.dir}/build.xml" target="copyseam"/>-->
+			
+			<!-- 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">
 				<xmlfileset file="@{suite}.xml" />
 				<sysproperty key="seam.dir" value="${seam.dir}" />
 			</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