Getting the Wonder Source Code

Version 135.1 by David Avendasora on 2011/04/26 13:22
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Success

Now with more Git

As of March 25th, 2011 the Wonder source code is now maintained on [GitHub|https://github.com/] at [https://github.com/projectwonder]. You'll need to be familiar with the [Git|http://git-scm.com/] Source Code Management system. [Here's|WO:Getting Started with Git] a good place to start. You will use Git to checkout a local copy of the repository (a "clone" in Git terms) allowing you to have direct access to the Wonder source.

Why?

Instead of constantly re-downloading and installing the latest Wonder binaries you should work directly with the latest source code. It has several advantages including:

  • You'll learn a lot about WebObjects, EOF and Object-Oriented Patterns
  • Easily search, browse and even modify and improve Wonder
  • Work with a specific revision, which is key for teams, quality control and development cycles
  • 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.

Downloading

Open a terminal and navigate to a directory where you want to maintain a source "working copy" and just use the following commands to clone Wonder source to your computer.

  1. h5. Clone the source repository from GitHub into a new directory named "WonderSource" or whatever you'd like.
Warning

Read Only

Note the URL shown here is the public read-only URL. Committers should use the SSH form of the URL for read-write

git clone git://github.com/projectwonder/wonder.git WonderSource

You should see output something like this:

Unknown macro: noformat. Click on this message for details.

  1. h5. Navigate into the working copy root
cd WonderSource
Warning

WebObjects 5.3.3 Compatability

If you are still using old WebObjects 5.3.3, then you need to execute this git command to switch to the branch for WebObjects 5.3.3: {code}git checkout track origin/Wonder_5_0_0_Legacy{code}
You should get output like this:
{noformat}
Branch Wonder_5_0_0_Legacy set up to track remote branch Wonder_5_0_0_Legacy from origin.
Switched to a new branch 'Wonder_5_0_0_Legacy'
{noformat}

  1. h5. Build and Install
    For building and installing the Wonder Frameworks, please see the standard Building and Installing WO Frameworks with Ant pages.
Information

If you have any trouble or errors due to your local repository getting corrupted, simply delete the entire local repository (the {{\/Roots}} directory) and start over using this source clone procedure.