You either have to bundle source files into your library jar or you have to
create a second jar containing only source files and put this extra jar
also on classpath in your IDE (not attached to a jar, I think it must be a
class path entry on its own) and in your ANT script. Finally if your
library jar contains source files in folders that are not already included
through an existing *.gwt.xml file, you would need to create a new
*.gwt.xml containing the additional <source> information and bundle it into
your source jar.
Example:
Project:
com/example/app/
client
shared
server
App.gwt.xml (contains <source path="client"/> and <source
path="shared"/>. Also contains <inherits
name="com.example.app.dtos.GeneratedDtos"/>)
generated-utils-sources.jar (on classpath in IDE and in ANT script)
com/example/app
shared
//lots of source files (no *.gwt.xml needed as App.gwt.xml already
contains <source path="shared"/>)
dtos
//lots of DTO source files
GeneratedDtos.gwt.xml (contains <source path=""/>. You could also
move that file one level up and then have <source path="dtos"/>. Just
personal preference.)
P.S.: You don't need <source path="client"/> and <source
path="client/resources"/> as the first already includes everything.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.