Add the root of your super-source folder as a source folder (right-click the folder, open the "Build Path" submenu, and click "Use as Source Folder"). Eclipse should automatically make the necessary modifications to the parent source folder, but you might want to check to make sure.
-Abraham--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qqiCk1UtOBsJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Add the root of your super-source folder as a source folder (right-click the folder, open the "Build Path" submenu, and click "Use as Source Folder"). Eclipse should automatically make the necessary modifications to the parent source folder, but you might want to check to make sure.
Don't do that: Eclipse will then compile you super-source and you then risk making your non-client code using those classes fail (unit-tests, server-side, etc.)
And if you want the "full power" of Eclipse for super-source classes, then create another Eclipse project where you import the super-source folder as a Source Folder (again, that's what GWT does: http://code.google.com/p/google-web-toolkit/source/browse/trunk/eclipse/user/.classpath vs. http://code.google.com/p/google-web-toolkit/source/browse/trunk/eclipse/lang/.classpath)
On Friday, October 5, 2012 10:47:33 AM UTC-4, Thomas Broyer wrote:Don't do that: Eclipse will then compile you super-source and you then risk making your non-client code using those classes fail (unit-tests, server-side, etc.)Ah, that's true. I'm used to separating client and server code into separate projects, so this hadn't occurred to me.
And if you want the "full power" of Eclipse for super-source classes, then create another Eclipse project where you import the super-source folder as a Source Folder (again, that's what GWT does: http://code.google.com/p/google-web-toolkit/source/browse/trunk/eclipse/user/.classpath vs. http://code.google.com/p/google-web-toolkit/source/browse/trunk/eclipse/lang/.classpath)Doesn't this lead to the same problem as adding the super-source folder directly as a source folder?
It's not only about client vs. server, it also affects non-GWTTestCase unit tests of your client code.
<super-source path=""/>
Then this will not work. The super source must be in a subfolder.