Download Wonder Source, Build and Install
Version 190.1 by Kieran Kelleher on 2010/09/13 14:58
Introduction
Instead of downloading the Wonder binaries, working from the latest source code directly can have some advantages such as:
- Ability to conveniently browse and search the source code and learn from the wisdom and experience of the WO committers
- Put breakpoints in and step through Wonder source when debugging your projects
- Provide opportunities to submit patches to bugs you might find in Wonder
- Add logging statements in Wonder source so you can better understand what is going when tracking down hard to find bugs
- Work with specific versions of Wonder in a project - good practice for quality control, especially for teams
Downloading Wonder Source from Subversion
Open a terminal and navigate to a directory where you want to maintain a source "working copy" and just use the following easy-peasy commands to download the Wonder source. Note that the build and installation commands are slighly different for WebObjects 5.4.X. So procedures for both WebObjects 5.4.X and 5.3.X are shown below. Pick you poison:
Procedure for WebObjects 5.4.X
# Checkout the source from subversion repository into a new directory named "WonderSource"
svn co http://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder --revision <ARG> WonderSource
# Navigate into the working copy root
cd WonderSource
# Build the frameworks from the source (BTW, they get built into a directory named Roots in your home dir)
ant -Dwonder.patch=54 frameworks
# Install the frameworks (this just copies the built frameworks from ~/Roots to the runtime Frameworks directory, usually at /Library/Framrworks
sudo ant -Dwonder.patch=54 frameworks.install
- Open a terminal shell and navigate to the directory where you want to maintain the WonderSource directory and decide on a name of the folder that will contain the Wonder source. For this example, we will use the name WonderSource
- Perform initial checkout of Wonder source tree from Subversion head using the following command. This checks out the source into the directory WonderSource, automatically creating WonderSource if it does not exist.
Unknown macro: noformat. Click on this message for details.
- As often as you prefer you can keep this up to date as follows:
Unknown macro: noformat. Click on this message for details.
Build and Install Wonder
- Follow the "Building with Ant" instructions in the BUILD.txt document in the Wonder directory
Concepts
This complete procedure results in you having
- a Wonder directory with the whole Wonder source tree (directories, projects, frameworks, example apps, miscellaneous, etc.) inside.
- The binary Wonder frameworks ("ant frameworks") will be installed in /Library/Frameworks.
- If you ran "ant applications", they will be installed in ...
- If you ran "ant examples", they will be installed in ...