Build Instructions V2.0

From OneCMDB

Setup OneCMDB to compile with eclipse IDE.

1) Unzip the found in the installation in a workspace.
2) Move all directories under src to the current directory and remove empty src dir.
3) Create the following java projects atleast.
3.1 org.onecmdb 
3.2 org.onecmdb.core
3.2 org.onecmdb.utils
3.3 org.onecmdb.ui.gwt.desktop

4) under org.onecmdb create the following directory structure

5) Copy all libs under <installdir>/tomcat*/WEB-INF/lib/* to 3rdpart-depts/lib
6) Download junit-4.1.jar and servlet-api.jar (2.x) and place it under compile-time.
(Use to find jars files).

Build Core
1) Create a User library, add include all jars under 3rdparty-deps/lib and 3rdpatry-deps/compile-time
2) Make org.onecmdb project dependon it and export it under under properties/Build Path. 
3) Make org.onecmdb.core project depend on org.onecmdb and export all user libs.
4) Compile...
5) Create in org.onecmdb and add theh following lines:
onecmdb.gwt.desktop.version=2.0.1 # This will be the version displayed at desktop login.

5) Use build.xml clean,dist to build the core jar file.

Build utils
1) Make the utils depend on org.onecmdb.core.
2) Compile...

Build Desktop
6) Download gwt 1.5.3 ( and upack it.
7) Copy all jar file in the root directory and place them in compile-time2/gwt1.5
8) Download gxt 1.2.4 (
9) Copy gxt.jar to compile-time2/gwt1.5
10) Compile...

Debug using GWT Hosted Mode
0) Do cd to ws/org.onecmdb.ui.gwt.desktop
1) Use the create application as follows:
/path-to/gwt-1.5.3/applicationCreator.cmd -eclipse org.onecmdb.ui.gwt.desktop -out dummy org.onecmdb.ui.gwt.deskt

Note: The -out dummy is used, else files will be overwritten, we only need the launch files.
2) move the dummy/CMDBApplication* .
3) Copy the repoistry directory to org.onecmdb.ui.gwt.desktop directory.
4) Refresh directory.
5) Now a new application CMDBApplicarion should be present.
6) Include the src and the gxt.jar to class-path for the start application.
7) Start the application.
Community and support