Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For developers here is a quick tutorial on how to set OpenSyllabus project into Eclipse

Anchor
Installation
Installation

Installation Guide

Installation and deployment of OpenSyllabus with Sakai 2.4/2.5 and GWT 1.5

1)First of all, a working installation of Sakai 2.4 or 2.5 is mandatory prior to install OpenSyllabus

Tip
titleInstallation of Sakai 2.5

see http://confluence.sakaiproject.org/confluence/display/BOOT/Development+Environment+Setup+Walkthrough)

2)Next, using Subversion (SVN), perform a checkout of osyl (backend code) and osyl-core-gwt (frontend code) to the local Sakai repository. It will be available at this address :

Tip
titleCheckout the code with Subversion

svn://<coming soon>/opensyllabus/contrib/sakai/sakai-opensyllabus/trunk

OR

Unzip a special Sakai 2.5 archive ("le zip de Tom") and this OpenSyllabus archive in your local Sakai repository.

3)You also need to install the Google Web Toolkit (GWT) library on your PC.

Tip
titleDownload GWT

It is available here:.
GWT version 1.5.1+ is mandatory.

4)Create an environment variable called GWT_HOME and pointing to your GWT installation directory.

Tip
titleCreate GWT_HOME environment variable

Considering <path> the Path to the GWT Directory
Windows: Via the Control Panel -> System -> Advanced -> Environment Variables -> System Variables -> New and type GWT_HOME and the <path> in the appropriate fields

Linux (Bourne, Bash, and related shells):
export GWT_HOME=<path>

5)Next, get and install the google-web-toolkit-incubator
In fact, OSYL uses some UI components (i.e. Calendar) from this library.
Look at this library to find some more cool GWT components.
This JAR is compatible with jvm 1.5+ and GWT version 1.5.1+ is mandatory.

Tip
titleDownload the google-web-toolkit-incubator

It can be found here

Tip
titleInstall the google-web-toolkit-incubator

Put the gwt-incubator_1-4_final.jar into your GWT base directory (i.e. GWT_HOME)

6)If you are installing Sakai 2.5 you must create a directory <tomcat_base>/sakai and put this Sakai.properties file in it. Make sure that it contains the right info about your Sakai database.

7)Next, you have to compile JCR first with this MAVEN command from Sakai base directory :

cd jcr

mvn clean install -Dmaven.test.skip=true

8)Then compile and deploy Sakai for the first time with this command :

cd ..
mvn clean install sakai:deploy -Pmini -Dmaven.test.skip=true -Dmaven.tomcat.home="path_to_tomcat"

9)For subsequent compilations and deployment, you can use this command :

mvn install sakai:deploy -Dmaven.test.skip=true -Dmaven.tomcat.home="path_to_tomcat"

Anchor
EclipseConfig
EclipseConfig

...

Perhaps the greatest advantage of using GWT is having the capability to leverage advanced software engineering and use established Java integrated development environment (IDE).
We suggest to use the Eclipse IDE since it works very well and has support with GWT to help integration.

Create a configuration variable called GWT_HOME and pointing to your GWT installation directory.

Add a path to the gwt-incubator_1-4_final.jar

Anchor
CodeStructure
CodeStructure

...