Debugging WOLips
Debugging WOLips like the master does!
These instructions is intended for the developer who wants to compile and run WOLips source for the purpose of debugging or other exploration. Thanks very much to Mike Schrag for the guidance to get this setup and working!
Overview of what's going on
We're going to check out the latest source for WOLips, build it and arrange for Eclipse to launch is a debug mode to test it out. It's very handy that Eclipse has a built in ability to launch itself in debug mode and load the local versions of the plugins. If you read the old and out dated instructions floating about that talk about building an entire release and installing them into a new copy of Eclipse then you're going to like this method a whole lot better! ;-)
The setup
When I did this and wrote these notes, I was using:
- Mac OS X 10.5.7
- Java 1.5.019
- Eclipse 3.4.2 (eclipse-SDK-3.4.2-macosx-carbon.tar.gz)
Checking out the source code
A note for the impatient - don't try to checkout the source right into Eclipse. The files aren't structured in a way that allows this to work. I know because I tried to do it that way first! ;-)
Check out the source code into a local folder
You're checking out a local copy of the code from the source repository.
Next, we're going to selectively import (but not copy) parts of that code into Eclipse.
Here I'm using command line subversion to check out the lastest version.
Fell free to use a different method so long as you end up with the correct source code for your intended purpose!
svn co https://svn.objectstyle.org/repos/woproject/trunk/woproject woproject
Create a new eclipse workspace
Import woenvironment
Import wolips projects into your workspace
Import wolips plugins
Import 3rd party plugins
Close special projects
- EntityModeler
- eomodeldoc
- org.objectstyle.wolips.eomodeler.factories
Close projects which require additional resources to compile
- org.objectstyle.wolips.groovy.ui
- org.objectstyle.wolips.jprofiler.launching