Skip to Main Content
Automating ActionScript Projects with Eclipse and Ant
book

Automating ActionScript Projects with Eclipse and Ant

by Sidney de Koning
October 2011
Intermediate to advanced content levelIntermediate to advanced
98 pages
2h 18m
English
O'Reilly Media, Inc.
Content preview from Automating ActionScript Projects with Eclipse and Ant

Setup

I’m a visual thinker, so things always become clearer to me when I draw out the elements I want to create or code. I prefer to have a system give me visual feedback, which is why I always start my Ant files with a better method to trace out the information for debugging.

My basic setup includes a way to trace my message to Growl. Growl is a notification system that other programs can hook into and make use of. It offers both Mac and Windows versions. Growl can “listen” for incoming connections, and that is exactly what we would like it to do here. Open up Growl’s preferences, click on the Network tab, and check the “Listen for incoming notifications” option (Figure 3-4).

Allowing Growl to listen to incoming connections

Figure 3-4. Allowing Growl to listen to incoming connections

Since we added the binaryblizzard.jar and growllistener-0.4.jar files to Ant’s classpath, we can now make use of them by calling the taskdef in the Ant file. Taskdef is basically an import statement that you can call with a function name and a reference to a class name. The following line makes the task growl available for Ant to use by implementing it from the net.slimeslurp.growl.GrowlEcho class:

<taskdef name="growl" classname="net.slimeslurp.growl.GrowlEcho" />

Now open the OS X Terminal utility and type:

set ANT_ARGS=-listener net.slimeslurp.growl.GrowlListener

This ensures that Growl can listen to notifications coming from Ant. It is always a good idea ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AdvancED ActionScript 3.0: Design Patterns

AdvancED ActionScript 3.0: Design Patterns

Ben Smith
ActionScript 3.0 Cookbook

ActionScript 3.0 Cookbook

Joey Lott, Darron Schall, Keith Peters
Migrating to Swift from Flash and ActionScript

Migrating to Swift from Flash and ActionScript

Radoslava Leseva Adams, Hristo Lesev

Publisher Resources

ISBN: 9781449314736Errata PageSupplemental Content