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

Making a Backup of the Complete Project

Instead of making a zip file from only one directory, we create a backup of the complete project. So, besides using SVN and not losing your code, we create a failsafe and back up all our files (this zip file can later be committed to SVN, too, of course):

<target name="10.create-backup-zip" description="Create a zip file that holds all the project files" depends="build.create-timestamp">
    <zip file="${project.backup.path}${file.separator}backup_${project.name}_${current.date.time}.zip">
        <fileset dir="${basedir}/">
            <include name="**/*" />
            <exclude name="**/.settings/**" />
            <exclude name="**/*.as3_classpath" />
            <exclude name="**/*.project" />
            <exclude name="**/.svn/**" />
        </fileset>
    </zip>
    <eclipse.refreshLocal resource="${project.name}" depth="infinite" />
</target>

We exclude a lot of hidden files (settings and other miscellaneous files—stuff we can do without); we only want a backup of the complete project.

The build.properties file also needs to be adjusted slightly. The following is only the project properties defined; the rest, we can leave alone:

# Project Properties project.name=sample project.document.class=Main project.file.extension=.as project.src.path=${basedir}${file.separator}src project.bin.path=${basedir}${file.separator}bin project.template.path=${basedir}${file.separator}template project.debug.path=${basedir}${file.separator}debug project.deploy.path=${basedir}${file.separator}deploy project.assets.path=${basedir}${file.separator}assets ...
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