|
SetupOlatInEclipse
Checkout, add needed variables, configure olat and WTP to start developing new features.
Eclipse IDE SetupCheckoutIn Eclipse open view SVN Repository and Add SVN Repository where you can use the links from the list and your code google username and password should be visible in your code google settings. Checkout the trunk or your desired revision.
If you are behind a proxy server use this link to set up proxy for subversion. 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 After the rebuild you should have no more errors. Setup OLAT dependency to Brasato sourcesThe fastest development cycle is achieved by using the brasato project instead of the olatcore-SNAPSHOT.jar. In the olat project's Properties > Build Path > Source you can link the folders .../workspace/brasato/src/main/java and .../workspace/brasato/src/main/resources And then remove the olatcore-1.0-SNAPSHOT.jar from your build path. Prepare DatabaseAs root user create the olat database, and an olat user with password Open a shell / console and
Create build.propertiesYou have to copy the build.properties.default to build.properties and change the following values to meet your installation directories.
Run as Ant BuildRight click on the build.xml, select Run As... and then Ant Build.... From the dialog select the targets deletedatadir, dbsetup, config-all and be aware that deletedatadir will delete all files in the datadir and dbsetup will drop your olat database. 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. Wait until you see something like Full Indexer.... 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 !!! |
Sign in to add a comment
Thank you for this quite brief description, worked well for me.