Download Wonder Source, Build and Install

compared with
Current by tmk
on Sep 09, 2010 22:48.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (14)

View Page History

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


h2. Downloading Wonder Source from Subversion

* Decide on a directory where you will maintain the latest Wonder source tree on your hard drive. I have a directory '~/WonderLatest' in my home folder.
* 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.
{noformat}
mkdir ~/WonderLatest
svn co http://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder WonderSource
{noformat}
* Next perform initial checkout of Wonder source tree from Subversion head using the following command. This creates a folder named Wonder
{noformat}
svn co https://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder ~/WonderLatest
{noformat}
* As often as you prefer you can keep this up to date as follows:
{noformat}
cd ~/WonderLatest /path/to/WonderSource
svn up
{noformat}
The default instructions in Wonder's BUILD.txt produce binaries that are compatable with WO 5.3.3. If you are using WO 5.4.X, then you need to add the "-Dwonder.patch=54" option to the ant commands. For example:

ant -Dwonder.patch=54 frameworks; sudo ant -Dwonder.patch=54 frameworks.install
ant \-Dwonder.patch=54 frameworks; sudo ant \-Dwonder.patch=54 frameworks.install

Alternatively, to avoid having to type the \-Dwonder.patch=54 option every time, one can create a build.properties file at the root of the Wonder directory that contains the following line : wonder.patch=54
{warning}

h2. 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.