[seam-commits] Seam SVN: r10590 - in branches/enterprise/JBPAPP_4_3_FP01/seam-gen: build-scripts and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Apr 22 18:07:35 EDT 2009


Author: manaRH
Date: 2009-04-22 18:07:35 -0400 (Wed, 22 Apr 2009)
New Revision: 10590

Modified:
   branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build-war.xml
   branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build.xml
   branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build.xml
Log:
JBPAPP-1926

Modified: branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build-war.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build-war.xml	2009-04-22 19:33:05 UTC (rev 10589)
+++ branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build-war.xml	2009-04-22 22:07:35 UTC (rev 10590)
@@ -317,6 +317,11 @@
     
     <target name="test" depends="buildtest" description="Run the tests">            
         <taskdef resource="testngtasks" classpath="${testng.jar}" />
+        <fail message="Cannot run tests because path to project contains spaces.">
+            <condition>
+                <contains string="${basedir}" substring=" "/>
+            </condition>
+        </fail>
     	<path id="test.path">
 			<path path="${test.dir}" />
 			<fileset dir="${lib.dir}/test">

Modified: branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build.xml	2009-04-22 19:33:05 UTC (rev 10589)
+++ branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build-scripts/build.xml	2009-04-22 22:07:35 UTC (rev 10590)
@@ -291,6 +291,11 @@
 
         <target name="test" depends="buildtest" description="Run the tests">            
                 <taskdef resource="testngtasks" classpath="${testng.jar}" />
+	            <fail message="Cannot run tests because path to project contains spaces.">
+	                <condition>
+	                    <contains string="${basedir}" substring=" "/>
+	                </condition>
+	            </fail>
         		<path id="test.path">
         			<path path="${test.dir}" />
         			<fileset dir="${lib.dir}/test">

Modified: branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build.xml	2009-04-22 19:33:05 UTC (rev 10589)
+++ branches/enterprise/JBPAPP_4_3_FP01/seam-gen/build.xml	2009-04-22 22:07:35 UTC (rev 10590)
@@ -143,7 +143,7 @@
         <echo message="Welcome to seam-gen :-)"/>
         <property name="old.workspace.home" value="C:/Projects"/>
         <input addproperty="workspace.home.new" 
-                   message="Enter your Java project workspace (the directory that contains your Seam projects) [${old.workspace.home}]" 
+                   message="Enter the directory where you want the project to be created (should not contain spaces) [${old.workspace.home}]" 
               defaultvalue="${old.workspace.home}"/>
     	<pathFixer property="workspace.home.new" />
         
@@ -1124,6 +1124,14 @@
     
     <target name="test" depends="validate-project"
         description="Run the automated tests">
+        <fail message="Cannot run tests because path to project contains spaces">
+            <condition>
+                <or>
+                    <contains string="${workspace.home}" substring=" "/>
+                    <contains string="${project.name}" substring=" "/>
+                </or>
+            </condition>
+        </fail>
         <echo message="Running tests for project '${project.name}'" />
         <ant antfile="${project.home}/build.xml" target="test" inheritall="false"/>
     </target>




More information about the seam-commits mailing list