|
Project Information
Members
Featured
Downloads
Wiki pages
Links
|
ApparatIMPORTANT: Apparat has moved to GitHub. You can fork it via https://github.com/joa/apparat A framework to optimize ABC, SWC and SWF files. Apparat features include
Getting StartedApparat is written in Scala -- a conciese functional-oop-hybrid language running on the JVM. Therefore you will have to install Scala version 2.8.0 and Java 1.6 to run any Apparat application. A step-by-step tutorial is available as well. Apparat is simple to experiment with thanks to Scala. #!/bin/sh
exec scala $0 $@
!#
import apparat.swf._
import apparat.abc._
import apparat.bytecode._
for {
tag <- Swf fromFile "input.swf"
abc <- Abc fromTag tag
} {
abc.loadBytecode()
for {
method <- abc.methods
body <- method.body
bytecode <- body.bytecode
} {
bytecode.dump()
}
}
Tooling SupportFlexMojos is making use of Apparat for file compression and coverage report generation. If you are using FlexMojos you might be already using Apparat without even knowing it. We also provide:
You do not need anything else than a working Maven installation to get started with TDSI for instance. mvn archetype:generate \ -DarchetypeRepository=http://oss.sonatype.org/content/repositories/snapshots \ -DarchetypeGroupId=com.googlecode.apparat \ -DarchetypeArtifactId=apparat-archetype-tdsi \ -DarchetypeVersion=1.0-SNAPSHOT LicenseThe Apparat framework is licensed under the GNU Lesser General Public License, version 2.1 (LGPL-2.1). |
