You can share code.  The question of course becomes, shouldn't you extract
the common code & put it in it's own module.  Then you can modify the module
descriptors to inherit the common module - that's the general way of
accomplishing this I believe.

But again, all the non-java resources can go into the war/ directory & they
can be shared just as one might expect.

On Sat, Apr 11, 2009 at 8:20 AM, Ed <[email protected]> wrote:

>
> Thanks Vitali but I tried those options before and they aren't good
> enough.
> Images are just an example but I also have js, html templates and
> other stuff to share.
> Ant is nice, I had that, but it has to work in hosted mode as well. I
> used a eclipse builder as well, but found out that a simple symlink
> works better.
> I was looking for a more easy approach just like sharing classes with
> other projects...
>
> -- Ed
>
> On Apr 11, 2:12 pm, Vitali Lovich <[email protected]> wrote:
> > I'm not 100% sure if this satisfies your requirements, but you could have
> > ImageBundle classes that are shared between modules.
> >
> > Or if you want actual sharing (as opposed  to simply code sharing), you
> > could create an ant task that copies your resources to the war/ directory
> -
> > this way (if you set up your links correctly), you can share those
> resources
> > between all modules.
> >
> > Check out the GWT.getModuleBase() & the like to determine how to
> calculate
> > the address of the resource you want.
> >
> > On Sat, Apr 11, 2009 at 7:00 AM, Ed <[email protected]> wrote:
> >
> > > Hellu,
> >
> > > I am about to mergen vrom 1.5 to 1.6 and like to know how I can easily
> > > share rersources like for example an image folder between different
> > > gwt modules/apps ?
> >
> > > I .5. I simple have a symlink to from inside a gwt app public folder
> > > to the project that contains the shared folder.
> > > But can't I improve this in 1.6. ?
> >
> > > -- Ed
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to