142 | Appendix A: AIR Command-Line Tools
Table A-1 provides a description of the command-line argu-
ments for ADL.
ADT
ADT is a command-line tool that packages AIR applications
into redistributable AIR files. AIR can then install the AIR
application from that AIR file.
Typically, you want to call the ADT tool in the following
way:
adt -package HelloWorld.air application.xml HelloWorld.swf
In this example, the ADT tool creates an AIR file named
HelloWorld.air based on the application.xml application
descriptor file.
The syntax of the ADT command is:
adt -package <air-file> <app-xml> <fileOrDir>* ( -C <dir>
<fileOrDir>+ )*
Table A-1. ADL command-line arguments
Option Description
-runtime Optional argument that specifies the directory that contains
the AIR runtime that should be used.
path-app-xml The application descriptor file for the application that should
be launched.
path-to-root-dir Optional argument that specifies the directory that contains
the application descriptor file
-- Any arguments specified after this argument will be passed
to the application as startup/command-line arguments, and
can be accessed from the application via the InvokeEvent