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

Deploying to a Network Share

I’ve worked at loads of companies where the services department/desk handles your deployments to development or production servers.

The process works like this: you zip your deployment materials, including all your assets (SWF, XML, etc.), copy the zip file over to a network share, and send an email to one of the system or network administrators, who then receives the email in a ticketing system and handles the deployment. So many tedious steps for something that should be so simple. Sound familiar?

With Ant, you can automate even this process.

Let’s start with copying everything we want to a directory and cleaning out all the files we don’t want. We already used the copy and mkdir tasks, but the fileset and exclude tasks are new ones.

fileset creates a set from any given directory; and with include or exclude, you can choose the files you want to select or not select. For example:

<target name="7.cleanup-and-export" depends="6.test-in-browser">
    <mkdir dir="${project.deploy.path}" />
    <mkdir dir="${project.zip.path}" />
    <copy overwrite="true" todir="${project.zip.path}">
        <fileset dir="${project.web.path}/">
            <exclude name="**/.settings/**" />
            <exclude name="**/*.as3_classpath" />
            <exclude name="**/*.project" />
            <exclude name="**/.svn/**" />
        </fileset>
    </copy>
    <eclipse.refreshLocal resource="${project.name}" depth="infinite" />
</target>

To summarize, we create directories if we don’t have them yet, select files we want from a different directory, and filter ...

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