[GeoNetwork-devel] Building widget based UI

Hi,

I have questions regarding the build process of the web-client and web. After a very brief look it seems to me that I need to :

  1. Update configuration to use the widget library,
  2. do a full build
  3. copy the files from web-client into the webapp
  4. then run

First is that correct?

If it is correct it makes development a little annoying because you can’t just start up mvn jetty:run and develop as easily. I would like to have a build profile so that you can do:

mvn jetty:run -Pwidgets -Penv-dev

and have jetty use the widgets to ease development. Does this sound like a good idea? Am I missing something?

Jesse

Hello Jesse,

2011/8/25 Jesse Eichar <jesse.eichar@anonymised.com>:

Hi,
I have questions regarding the build process of the web-client and web.
After a very brief look it seems to me that I need to :
1. Update configuration to use the widget library,

Yep in config-gui.xml

2. do a full build
3. copy the files from web-client into the webapp
4. then run
First is that correct?

Yep from the source. Another option could be to create a link in the
webapp folder (but that's probably not the best way, and not a maven
way at all).

From the installer, you select the widget from the packs list and then

update the conf in config-gui.xml to use the widget instead of the
default UI.

If it is correct it makes development a little annoying because you can't
just start up mvn jetty:run and develop as easily.

True.

I would like to have a
build profile so that you can do:
mvn jetty:run -Pwidgets -Penv-dev
and have jetty use the widgets to ease development. Does this sound like a
good idea?

+1 for me Jesse.

Cheers

Francois

Am I missing something?
Jesse

thanks for the quick reply. I am on the job :slight_smile:

On Thu, Aug 25, 2011 at 8:51 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hello Jesse,

2011/8/25 Jesse Eichar <jesse.eichar@anonymised.com>:

Hi,
I have questions regarding the build process of the web-client and web.
After a very brief look it seems to me that I need to :

  1. Update configuration to use the widget library,

Yep in config-gui.xml

  1. do a full build
  2. copy the files from web-client into the webapp
  3. then run
    First is that correct?

Yep from the source. Another option could be to create a link in the
webapp folder (but that’s probably not the best way, and not a maven
way at all).

From the installer, you select the widget from the packs list and then
update the conf in config-gui.xml to use the widget instead of the
default UI.

If it is correct it makes development a little annoying because you can’t
just start up mvn jetty:run and develop as easily.

True.

I would like to have a
build profile so that you can do:
mvn jetty:run -Pwidgets -Penv-dev
and have jetty use the widgets to ease development. Does this sound like a
good idea?

+1 for me Jesse.

Cheers

Francois

Am I missing something?
Jesse