Download Wonder Source, Build, Install and Upgrade
Introduction
Instead of downloading the Wonder binaries, working from the latest source code directly can have some advantages such as:
- Learn very much about WebObjects and EOF (and java dev styles?)
- Easily browse and search the source
- Work with a specific svn version (teams, quality control, development cycles)
- Provide opportunities to submit patches for bug fixes or enhancements
- Add logging statements in Wonder source so you can better understand what is going when tracking down hard to find bugs
- Discover the many Hidden Treasures of Wonder
Source Frameworks Initial Installation
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:
# Checkout the source from subversion repository into a new directory named "WonderSource"
# Note instead of HEAD, you can use a specific svn version number if you want
svn co http://wonder.svn.sourceforge.net/svnroot/wonder/branches/Wonder_5_0_0_WebObjects_5_4_Branch/Wonder --revision HEAD 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/Frameworks)
sudo ant -Dwonder.patch=54 frameworks.install
# Checkout the source from subversion repository into a new directory named "WonderSource"
# Note instead of HEAD, you can use a specific svn version number if you want
svn co http://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder --revision HEAD 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 frameworks
# Install the frameworks (this just copies the built frameworks from ~/Roots to
# the runtime Frameworks directory, usually at /Library/Frameworks)
sudo ant frameworks.install
Source Frameworks Upgrade Installation
Assuming you already installed Wonder from source using the method outlined above, you can use the following procedure to upgrade to a newer, or just different version. Note that the procedure for both WebObjects 5.4.X and 5.3.X are outlined below. They are the same except for the last 3 ant commands.
# Navigate to the Roots directory that was automatically created by the initial Source installation procedure above
cd ~/Roots/
# Delete all installed frameworks whose names match the built frameworks in this Roots build folder
for FRAMEWORK in `echo *.framework`; do sudo rm -r /Library/Frameworks/${FRAMEWORK}; done
# Navigate to the original Wonder source directory that you created above during initial source installation
cd /path/to/WonderSource
# Update the source to the HEAD revision (aka latest). You can also use a specific svn
# repository version instead of the term 'HEAD', for example 11272
svn update --force --accept theirs-full --revision HEAD
# Clean the previous build artifacts
ant -Dwonder.patch=54 clean
# Build from the latest source
ant -Dwonder.patch=54 frameworks
# Install the latest built frameworks
sudo ant -Dwonder.patch=54 frameworks.install
# Navigate to the Roots directory that was automatically created by the initial Source installation procedure above
cd ~/Roots/
# Delete all installed frameworks whose names match the built frameworks in this Roots build folder
for FRAMEWORK in `echo *.framework`; do sudo rm -r /Library/Frameworks/${FRAMEWORK}; done
# Navigate to the original Wonder source directory that you created above during initial source installation
cd /path/to/WonderSource
# Update the source to the HEAD revision (aka latest). You can also use a specific svn
# repository version instead of the term 'HEAD', for example 11272
svn update --force --accept theirs-full --revision HEAD
# Clean, build and install the frameworks
ant clean; ant frameworks; sudo ant frameworks.install