gwt-maven-plugin Using multiproject with gwt

View: New views
2 Messages — Rating Filter:   Alert me  

gwt-maven-plugin Using multiproject with gwt

by P.Kernevez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I have a multiproject gwt application.
Like :

Root
  |
  |--> project A (GUI framework)
  |--> project B ( customer gwt module)
  |--> project C ( contract gwt module)
  |--> project Final (packaging of the webapp)

I would like to be able to launch the hosted browser on my Final module and work on the source of the project A, B and C.
We can simply do that with GWT by add the project source folder to the classpath, and we only have to click on the Refresh button of the hosted browser to see the last modifications.

Is there a solution for that ?

I take a look on the plugin code, I saw a mecanism for doing that in the class : ClasspathBuilder.addSourcesWithActiveProjects() but that don't seems to my request.
Tis is due to the fact that it's done for compiling only (not for the hosted browser) and it need to be in the reactor mode.
The full build (reactor) is a good way for a full compilation but it doesn't have sens for the hosted browser.
If you don't have an already solution, what do you think about a patch that add an optional list of source folders to the beginning of the classpath and that would be set mannualy ?

Thanks,
Philippe Kernevez

Re: gwt-maven-plugin Using multiproject with gwt

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The builder-helper-maven-plugin should solve this for you. If you want to run hosted mode in your JAR projects, you might want to checkout the following blog entry as well:

http://raibledesigns.com/rd/entry/running_hosted_mode_in_gwt

Matt

P.Kernevez wrote:
Hi,


I have a multiproject gwt application.
Like :

Root
  |
  |--> project A (GUI framework)
  |--> project B ( customer gwt module)
  |--> project C ( contract gwt module)
  |--> project Final (packaging of the webapp)

I would like to be able to launch the hosted browser on my Final module and work on the source of the project A, B and C.
We can simply do that with GWT by add the project source folder to the classpath, and we only have to click on the Refresh button of the hosted browser to see the last modifications.

Is there a solution for that ?

I take a look on the plugin code, I saw a mecanism for doing that in the class : ClasspathBuilder.addSourcesWithActiveProjects() but that don't seems to my request.
Tis is due to the fact that it's done for compiling only (not for the hosted browser) and it need to be in the reactor mode.
The full build (reactor) is a good way for a full compilation but it doesn't have sens for the hosted browser.
If you don't have an already solution, what do you think about a patch that add an optional list of source folders to the beginning of the classpath and that would be set mannualy ?

Thanks,
Philippe Kernevez