|
OSX
& Project Builder
Using an initial OSX PB discussion at
http://www.hiptop.com/forums/viewtopic.php?t=3837&highlight=project+builder
as a setup guide, is was rather easy to get OSX, Project
Builder, and Apache Ant to cooperate. The hardest part of
all this mess was finding an appropriate Ant distribution.
The good news is that the OSX Apache Ant distro at:
http://www.serverlogistics.com
is easy to install and works well. Many thanks to the folks
at Server Logistics. These folks do a pretty darned good
job, so if you like their SW releases please make a donation
to help subsidize their development efforts. You really do
not want to be stuck attempting to install inferior
distributions from lesser capable folks.
To download the Ant installer, click on the "Mac OS X
Downloads" link on the Server Logistics home page. You are
sent off to the OSX Jaguar releases page where you will find
a link to the latest Ant distribution (1.5.1 as of 6/17/03).
Download and run this installer and you should be set to go
with the Danger development environment. This Ant release
has worked for all of the released Danger SDKs, on various
flavors of flat panel iMac and tower systems, all running
various versions of OSX 10.2.3/4/5/6 as the systems were
updated. Java 1.4.1 has been installed on all of the above
mentioned systems via the System Updater mechanism.
The folder hierarchy used matches the Danger SDK folder
setup.

Next to the 'examples' folder lives the '3rdpartyapps'
and 'personalapps' folders where 3rd party samples/examples
and personal projects live. This is done to keep the build
paths to the various tools and libraries consistent with the
default Ant build rules provided by Danger.
Once the SDK and Ant are installed, it is time to fire up
Project Builder. There are a couple of links floating around
describing the setup, the first for Project Builder and the
other for Ant with Terminal
http://developer.danger.com/wiki/comments/Project+Builder+with+Ant#notes
http://developer.danger.com/wiki/comments/Quickstart+on+OSX#notes
The following screen shots should give a better idea of
how the various Project Builder windows should look when
correctly configured:
|
Both build files are added to this list for
reference only. It helps to see what and how Ant is
going to do its thing.
|

|
|
In the Targets tab, make sure all of the
settings are visible to muck with.
|

|
|
Default Ant install location under OSX.
|

|
|
Use the + button to add the Danger user to the
application launch parameters. This will allow the
simulator to automatically login to the Danger
developer service, giving network access.
|

|
Minor Additional Items:
- The default build script will run launch/run the
simulator at the end of the build. This could likely be
addressed with some Ant build file massaging so that you
have discrete build and build/launch modes.
- The Ant build files support 'cleaning' the build
tree. The problem is that this cleanup does not actually
get rid of all the built files. The following files are
generated during the build process, so may be safely
deleted:
- helloworld.rdb
- helloworld.lst (deleted via 'clean' build)
- helloworld.jar (deleted via 'clean' build)
- helloworld.bndl (deleted via 'clean' build)
- commands.java and resources.java (or their
equivalents as defined in the .rsrc file under
interface and events)
- The 'classes' folder and everything in it (deleted
via 'clean' build)
- The 'build' folder and everything in it
|