Reviewers: jgw,

Description:
The test.dev and test.prod targets in project.ant.xmlsrc do not include
the src/ directory of the project, which renders them useless.  When
users create new apps using webAppCreator and run the test targets from
the command line, the tests will start to fail as soon as they add
something that references code in their application.

Fix:
===
Adding src/ to the classpath of the test targets.

Testing:
=======
Rebuild GWT and manually verified that the test targets work when
referencing code in src/.

Please review this at http://gwt-code-reviews.appspot.com/118807

Affected files:
   user/src/com/google/gwt/user/tools/project.ant.xmlsrc


Index: user/src/com/google/gwt/user/tools/project.ant.xmlsrc
===================================================================
--- user/src/com/google/gwt/user/tools/project.ant.xmlsrc       (revision 7242)
+++ user/src/com/google/gwt/user/tools/project.ant.xmlsrc       (working copy)
@@ -73,6 +73,7 @@
        <sysproperty key="gwt.args" value="-logLevel WARN" />
        <sysproperty key="java.awt.headless" value="true" />
        <classpath>
+        <pathelement location="src" />
          <pathelement location="test" />
          <path refid="project.class.path" />
          <pathelement location="@junitJar" />
@@ -94,6 +95,7 @@
        <sysproperty key="gwt.args" value="-prod -logLevel WARN -out  
www-test" />
        <sysproperty key="java.awt.headless" value="true" />
        <classpath>
+        <pathelement location="src" />
          <pathelement location="test" />
          <path refid="project.class.path" />
          <pathelement location="@junitJar" />


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to