Appendix B. Apollo Command-Line Tools

The Apollo SDK provides the following command-line tools:

AMXMLC

A command-line wrapper for the MXMLC compiler that configures the compiler to use Apollo classes.

ADL

Use this tool to launch and test an Apollo application without having to install it.

ADT

Use this tool to package an Apollo application into a redistributable AIR file.

These tools are also available in the Apollo Extensions for Flex Builder. They are installed in the bin subdirectory.

This Appendix lists the options for each of the command-line tools.

For an example of using these tools, see Chapter 2.

AMXMLC

AMXMLC is a simple wrapper for the MXMLC Flex compiler, which links in the appropriate Apollo-specific libraries.

Usage is the same as MXMLC:

amxmlc myTestApp.mxml

This shell script is included in the bin directory of the Apollo SDK directory.

The first argument passed to the compiler is the location of the MXML file to compile (myTestApp.mxml in the previous example).

There are a number of other options for the MXMLC compiler. For details on these, see:

http://livedocs.macromedia.com/flex/201/html/compilers_123_24.html

ADL

ADL is a command-line tool that launches an Apollo application, based on it’s application.xml file, without requiring that the application be installed. This is useful for testing and debugging the application.

Typically, you want to call the ADL tool passing one parameter: the path to the application descriptor file (the application .xml file):

adl application.xml ...

Get Apollo for Adobe Flex Developers Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.