Child pages
  • Getting the Wonder Source Code
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

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:

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
Procedure for WebObjects 5.3.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 frameworks

# Install the frameworks (this just copies the built frameworks from ~/Roots to
# the runtime Frameworks directory, usually at /Library/Framrworks
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.

Procedure for WebObjects 5.4.X
# 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
Procedure for WebObjects 5.3.X
# 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 clean

# Build from the latest source
ant frameworks

# Install the latest built frameworks
sudo frameworks.install

If you have any trouble or errors due to your working copy getting hosed, then simply delete the entire working copy directory, the ~/Roots directory and just start over using the initial source installation procedure outlined above.

  • No labels