Create a Framework with WOnder Layout

Version 31.1 by Kieran Kelleher on 2007/01/16 13:07

Introduction

So, you have built the mother of all WebObjects apps in XCode or Eclipse with everything in the default package (or not). The time has come where you want a make a new WebObjects application that re-uses some of the functionality you have already created in bigApp.woa.
This article explains how to create a framework in Eclipse that can be used with your WebObjects projects. The resulting framework can be used in WOLips or XCode projects. In this example a framework is created that consists of class(es) that were in the default package of a WebObjects application and the 3rd party jar dependencies were originally in /Library/WebObjects/Extensions. The resulting framework bundle will encompass the 3rd party jar and the custom java classes that are moved from the original WO project.
Disclaimer: I am still relatively new to Eclipse, so if you see a smarter way to do this, then feel free to edit this wiki page.
Also, at the time of writing this article I was using Eclipse 3.2.1 with WOLips build #3769.

How To

First create the project in your Eclipse workspace.

Right-click in Package Explorer view of the WOLips perspective and select New->Other.
new-project-other.jpg

Next type WO in the filter field and select WOnderFramework from the list and click Next.
new-WOnderFramework.jpg

Next enter a project name and click Finish
WOnderFramework-projectname.jpg

(( Under Construction )) (I just noticed that the WOnderFramework wizard is hosed in latest version of WOLips (3769) ... I will come back to this later