Difference between revisions of "Robotino Web Interface build"

From RobotinoWiki
Line 7: Line 7:
 
===Setup Eclipse===
 
===Setup Eclipse===
 
* Install Eclipse (http://www.eclipse.org/downloads/).
 
* Install Eclipse (http://www.eclipse.org/downloads/).
* Install Google Plugin for Eclipse (https://developers.google.com/eclipse/docs/download).
+
* Install Google Plugin for Eclipse (https://developers.google.com/eclipse/docs/download). You can select proper plugin version based on your Eclipse version.
 +
* When asked for items to install, you need to select the required item Google Plugin for Eclipse and SDKs.
 +
* Import project to your workspace (located at folder RobotinoWeb).
  
 
===Build===
 
===Build===
* Import project to your workspace
+
* After successful install, there will be a blue G icon on Eclipse IDE.
* Set classpath for smartgwt.jar and smartgwt-skin.jar (Project->Properties->Java Build Path->Libaries). These jar files can be found at the root directory of the project.
+
* Click the icon and select GWT compile project.
* GWT compile project
 
  
 
===Deploy===
 
===Deploy===

Revision as of 17:05, 19 October 2015

Build Webpages from Source

Robotino Web Interface consists of the server part and the webpages. The server part, mainly Fcgid, is part of Robotino Daemons. The webpages are based on SmartGWT and are developed as a separate project. The source can be found at SVN Repository.

Note: The compiled webpages are already included in the SVN repository. Therefore if you are not going to make any change, then there is no need to build the project by yourself (can go to Deploy section directly).

Setup Eclipse

Build

  • After successful install, there will be a blue G icon on Eclipse IDE.
  • Click the icon and select GWT compile project.

Deploy

  • Set environment variable ROBOTINO_WAR_DIR as the full path of the "war" folder.
  • Then build and install Robotino Daemons as instructed in Build Robotino Daemons. It will copy the whole "war" folder into the server host directory (/var/www/).
  • (NOT recommended) Instead of the two steps above, you could also manually copy the "war" folder into the server host directory (/var/www/).