This is a simple change to the user tests to enable a command line user to 
execute just hosted mode or just web mode tests if they desire.

Review by: jat
           mmendez



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@444 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/build.xml b/user/build.xml
index 8ac41b9..0a54c10 100755
--- a/user/build.xml
+++ b/user/build.xml
@@ -122,6 +122,14 @@
 		<gwt.junit test.args="-port ${gwt.junit.port} -out www -web -remoteweb rmi://${gwt.remote.browser}" test.out="${junit.out}/${gwt.remote.browser}" test.cases="default.web.tests" />
 	</target>
 
+	<target name="test.hosted" depends="compile, compile.tests" description="Run only hosted-mode tests for this project.">
+		<gwt.junit test.args="-port ${gwt.junit.port}" test.out="${junit.out}/${build.host.platform}-hosted-mode" test.cases="default.hosted.tests" />
+	</target>
+
+	<target name="test.web" depends="compile, compile.tests" description="Run only web-mode tests for this project.">
+		<gwt.junit test.args="-port ${gwt.junit.port} -out www -web" test.out="${junit.out}/${build.host.platform}-web-mode" test.cases="default.web.tests" />
+	</target>
+
 	<target name="test" depends="compile, compile.tests" description="Run hosted-mode, web-mode and remoteweb tests for this project.">
 		<property.ensure name="distro.built" location="${gwt.dev.staging.jar}" message="GWT must be built before performing any tests.  This can be fixed by running ant in the ${gwt.root} directory." />
 
@@ -130,9 +138,9 @@
 			is executing
 		-->
 		<parallel threadcount="1">
-			<gwt.junit test.args="-port ${gwt.junit.port}" test.out="${junit.out}/${build.host.platform}-hosted-mode" test.cases="default.hosted.tests" />
+			<antcall target="test.hosted"/>
 
-			<gwt.junit test.args="-port ${gwt.junit.port} -out www -web" test.out="${junit.out}/${build.host.platform}-web-mode" test.cases="default.web.tests" />
+			<antcall target="test.web"/>
 
 			<!--
 				Run remote browser testing for the comma delimited list of remote browsers