Wiki source code of Debugging WOLips

Version 69.1 by mark_ritchie on 2009/09/08 18:35

Hide last authors
mark_ritchie 69.1 1 {{note title="Under Construction"}}
mark_ritchie 37.1 2
mark_ritchie 69.1 3 This page is currently under construction by Mark Ritchie!
mark_ritchie 34.1 4
mark_ritchie 69.1 5 {{/note}}
6
7 = Debugging WOLips as the master does! =
8
9 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!
10
mark_ritchie 34.1 11 == Overview of what's going on ==
12
mark_ritchie 69.1 13 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! ;-)
mark_ritchie 34.1 14
15 == The setup ==
16
17 When I did this and wrote these notes, I was using:
18
19 * Mac OS X 10.5.7
20 * Java 1.5.0//19//
21 * Eclipse 3.4.2 (eclipse-SDK-3.4.2-macosx-carbon.tar.gz)
22
23 == Checking out the source code ==
24
mark_ritchie 69.1 25 **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!** ;-)
mark_ritchie 34.1 26
27 === Check out the source code into a local folder ===
28
mark_ritchie 45.1 29 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. I'm using command line subversion to check out the lastest version however feel free to use a different tool or different version, as you like.
mark_ritchie 34.1 30
mark_ritchie 69.1 31 svn co https:~/~/svn.objectstyle.org/repos/woproject/trunk/woproject ,,/woproject,,
mark_ritchie 34.1 32
mark_ritchie 45.1 33 Note that I've checked out the source code into my home folder. It doesn't matter where you put the source code as long as you can find it in the steps below.
mark_ritchie 34.1 34
35 === Create a new eclipse workspace ===
36
mark_ritchie 45.1 37 Launch a clean copy of Eclipse with no plugings installed. Strictly speaking, probably not necessary however these are the steps which I took.
38
39 Create a new Workspace
mark_ritchie 69.1 40 I chose ,,/WOLipsDebugging
41 [[image:Workspace.png]],,
mark_ritchie 45.1 42
mark_ritchie 69.1 43 === Import woenvironment ===
mark_ritchie 34.1 44
45 === Import wolips projects into your workspace ===
46
47 === Import wolips plugins ===
48
49 === Import 3rd party plugins ===
50
51 === Close special projects ===
52
53 * EntityModeler
54 * eomodeldoc
55 * org.objectstyle.wolips.eomodeler.factories
56
57 === Close projects which require additional resources to compile ===
58
59 * org.objectstyle.wolips.groovy.ui
60 * org.objectstyle.wolips.jprofiler.launching
61
mark_ritchie 69.1 62 == The run configuration setup ==