|
SetupOlatInEclipse
Checkout, add needed variables, configure olat and WTP to start developing new features.
GSoC2008 Eclipse IDE SetupCheckoutIn Eclipse open view CVS Repository and Add CVS Repository as in the screeshot.
The password is the same as the username anonymous checkout the two projects from head:
General Eclipse SetupIn Eclipses build path two variables are missing, and Eclipse may reference the wrong JRE, change the default to your installed JDK.
You add the missing variables by Window -> Prefereces -> Filter for classpath -> activate Java-Build Path-Classpath Variables -> new -> add the variables. And to change the used JRE by Window -> Preferences -> Filter for installed -> activate Java-Installed JREs -> Add your JDK If the prerequisites are all ok, use maven to download the dependencies and build olat
After you run the two command successfully go back to eclipse and refresh both projects. Eclipe will start to rebuild the workspace and after a while you should see no more errors. Prepare DatabaseFor ease of development OLAT run with an embedded hsqldb database where the tables are populated automatically. Create olat.local.propertiesOLAT should run with the default olat.properties and uses an embedded hsqldb database. If you like to use set custom path for userdata of even an other database you have to adjust some properties. Create an olat.local.properties file and save it under /tomcat/lib (the first start of olat tries to create this file in tomcat/lib). The default location of userdata and databasedata is the java.io.tmpdir. You can also adjust this property by adding a java VM property as start parameter like this -Djava.io.tmpdir=/home/guido/temp .
Setup up WTP Tomcat ServerWith WTP you can easily manage your tomcat or whatever servers. Add a new server configuration with the wizard found under File > New... > Other > Server. Define a new server Server > Next, where you should use localhost and no associated project. Besides the projects you find then a Server Entry As the first OLAT startup may take long and exceed the server start time limit defined by eclipse. You should change this to unlimited Window > Preferences > Server > Server timeout delay change from Normal to unlimited. Copy the server.xml from olat/conf/server.xml you may refresh the workspace first by clicking F5 to find the file after a ant build. Paste the file in the Server > Localhost and overwrite the existing server.xml. Activate the Server view and start the defined server in Debug mode. Then point your browser http://localhost:8080/olat/dmz/ this should bring you up the login screen. THAT'S IT YOUR DONE - HAPPY GSoC Coding !!! | ||||||||||||||||||||||||||||||||||||||||
Thank you for this quite brief description, worked well for me.