Working with Wonder source in Eclipse

Version 53.1 by David Avendasora on 2011/04/29 14:58

Introduction

To work with Wonder source in Eclipse we import, without copying, the source projects from the Wonder source tree we downloaded in an earlier tutorial. By doing so, we make sure our workspace Wonder source projects are the same source as what we have used for our build and install.

Prerequisites

Wonder source tree is checked out from source control: Getting the Wonder Source Code

Importing Wonder Projects into Eclipse

  1. Right-click in WO Explorer and select "Import..." from the context menu.

!Screenshot1.png|align=center!

  1. Select "Existing Projects into Workspace" as the import source.

!Screenshot2.png|align=center!

  1. Click "Browse..." to select the root directory containing the projects.

!Screenshot3.png|align=center!

  1. To import framework projects, for example, navigate to and select ".../Wonder/Frameworks" and click "Choose".

!Screenshot4.png|align=center!

Success

Wonder isn

Project Wonder also has replacements for JavaMonitor and wotaskd and several example applications that are great to learn from. To import the example application projects, select the "Examples" directory instead of "Frameworks" above.

  1. The list of projects inside that folder appear checked. Uncheck the "Copy Projects into Workspace" checkbox and uncheck the projects you don't want and click "Finish".

!Screenshot5.png|align=center!

  1. Eclipse will build the projects and you can now browse, inspect and use Wonder source in Eclipse.

!Screenshot6.png|align=center!

Warning

Ant Builds on your Development Machine

WOlips' "Incremental Builder" is an incredibly helpful feature during development, but it does things that the Ant deployment build does not do.  If you are *either* using WOLips to build your WebObjects Applications (_WOLips Ant Tools > Install_) *or* are [running Hudson/Jenkins|WO:Installing and Using the Hudson build server] locally to do it, you *must* also build and install your workspace's Frameworks that your Application depends upon  including your own, Project Wonder's and any others. *The standard Ant build does {color:#ff0000}NOT{color} do this for you.*