[seam-commits] Seam SVN: r10339 - in trunk/seam-gen: build-scripts and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 7 17:22:43 EDT 2009


Author: dan.j.allen
Date: 2009-04-07 17:22:43 -0400 (Tue, 07 Apr 2009)
New Revision: 10339

Modified:
   trunk/seam-gen/build-scripts/build-war.xml
   trunk/seam-gen/build-scripts/build.xml
   trunk/seam-gen/build.xml
Log:
JBSEAM-3854


Modified: trunk/seam-gen/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/build-scripts/build-war.xml	2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build-scripts/build-war.xml	2009-04-07 21:22:43 UTC (rev 10339)
@@ -419,6 +419,11 @@
     </target>
     
     <target name="test" depends="buildtest" description="Run the tests">            
+        <fail message="Cannot run tests because path to project contains spaces.">
+            <condition>
+                <contains string="${basedir}" substring=" "/>
+            </condition>
+        </fail>
         <condition property="incompatible.jdk" value="true">
             <and>
                 <equals arg1="${ant.java.version}" arg2="1.6"/>

Modified: trunk/seam-gen/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/build-scripts/build.xml	2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build-scripts/build.xml	2009-04-07 21:22:43 UTC (rev 10339)
@@ -438,6 +438,11 @@
     </target>
 
     <target name="test" depends="buildtest" description="Run the tests">
+        <fail message="Cannot run tests because path to project contains spaces.">
+            <condition>
+                <contains string="${basedir}" substring=" "/>
+            </condition>
+        </fail>
         <condition property="incompatible.jdk" value="true">
             <and>
                 <equals arg1="${ant.java.version}" arg2="1.6"/>

Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml	2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build.xml	2009-04-07 21:22:43 UTC (rev 10339)
@@ -222,7 +222,7 @@
         <echo message=""/>
         <property name="old.workspace.home" value="${workspace.home}"/>
         <input addproperty="workspace.home.new"
-                   message="Enter your 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"/>
 
@@ -1662,6 +1662,14 @@
 
     <target name="test" depends="validate-project" if="project.exists"
         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