Updated typical development scenarios (markdown)

This commit is contained in:
Frank Mittag committed 2014-03-19 09:53:26 +00:00
1 parent d5daa8ee0f
commit 569a5431d6
1 file changed
+15
+15
View File
@@ -46,6 +46,21 @@ Whenever you add another GWT RPC service, make sure to add it to the list of ser
* Add the library to our central maven repository /home/trac/maven-repositories by using the mvn: install:install-file command
* Command sample to add the library gwt-maps-api-3.9.0-build-17.jar: mvn install:install-file -Dfile=/home/trac/git/java/com.sap.sailing.gwt.ui/WEB-INF/lib/gwt-maps-api-3.9.0-build-17.jar -DgroupId=com.github.branflake2267 -DartifactId=gwt-maps-api -Dversion=3.9.0-build-17 -Dpackaging=jar -DlocalRepositoryPath=/home/trac/maven-repositories
## Adding a shared GWT library bundle
Sometimes we need a bundle containing code and resources which can be used by other GWT bundles (GWT library).
To create and use such a bundle from another GWT bundle (e.g. com.sap.sailing.gwt.ui) some additional steps compared to the normal Java bundle creation are required.
GWT library bundle project creation
* Add a new Java plugin project, using <git-workspace>/java/<bundle-name> as the project directory
* Add the GWT-SDK dependency to the project
* Add a GWT module file to project (ModuleName.gwt.xml)
* Add the bundle to the main pom.xml in /git/java
Use the GWT library project in a GWT UI project
* Add the src folder of the GWT library bundle to classpath of all GWT-Launch configurations (required to let the GWT dev mode find the sources of java classes) -> Open GWT launch config, select tab 'classpath', select 'User entries', click 'Advanced' button, choose 'add folders' option and add the src folder of the GWT library project
* Add the bundle the pom.xml of the GWT UI project (for the maven build)
## Adding an GWT Extension Library (With Source Code)
TODO (see Highcharts example)