Yes i know one alternative to solving this problem is simply to create two source directories from the original. The class path for the GWT compiler would thus be setup to simply only see the compatible source while both would be used for the server portion of your app.
Firstly i find this kind of ugly, because it means i now have two source directories with potential doubles of classes.
- refactoring and other structural abilities of the IDE can potentially be problematic as it will get confused.
- Sometimes its not possible to put some stuff in separate packages: think client and server packages simply because one would then have to make something public which should really be package private to limit scope accessibility.
- is there a library that enables classes or methods to marked as ignored by the GWT compiler ?
Is there a better way ?