Hello there, before you burn me on the holy inquisition fire, I started this thread to have a (hopefully) constructive discussion about the best practices on how to create dependency between gwt projects. I know, some cases have been discussed before (like here<http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/254de758db94cd3a>and here<http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3b2b4b80f55502e5>), but they look as clumsy as my way of doing it, so I would like to know what's your experience on it.
Here is mine (with a little background): My company have adopted gwt (gxt in fact) to all its web projects. When the decision was made 2 projects were being started, so we decided to make them gwt projects. Since we want to reuse some of the common code (let's say the UI common classes) on both projects, and hopefully on all other web projects coming, we decided to modularize the scenario in 3 projects: (1) the UI lib, (2) project A, (3) project B. Obviously (2) and (3) depend on (1) and there comes the trouble: using (1) as a jar module in (2) and (3) can become massively tedious since (1) is being developed together with (2) and (3) and loads of change will occur on (1), therefore generating a jar file for each ui lib change is not happening. I've searched for good ways of doing that and, unfortunately, none of them convinced me. In our case, in order to overcome this scenario and not generate the jar files (at least not until the release), we did the following: - created project dependency between (2),(3) with (1); - annotated the module on (2) and (3) with the main module name on (1). E.g. added <inherits name="com.companyuilib.UiLib"/> to the modules on (2) and (3); - on the ant file on (2),(3) I added code compile for (1); - make sure that the source code of (1) is on the compiled class folder of (2),(3) Until now this thing works, but again, it looks very clumsy and I'm not sure if this is a nice way of doing gwt project dependency. So I really would like to know: what's your way of creating dependency between gwt (non jared) projects? thanks in advance! -- Lucas de Oliveira Arantes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
