Specifications

185ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Multiple argument options
Some compiler options, such as the default-size option, take more than one argument. The default-size
option takes a height and a width argument. You set the values of options that take multiple arguments by using
a nested element of the same name, with the attributes of the element corresponding to the arguments of the
option as shown in the command-line compilers online help.
For example, the online help for mxmlc shows the following syntax for the
default-size option:
-default-size <width> <height>
To pass the option -default-size 800 600 to the mxmlc task, use the following syntax:
<mxmlc ...>
<default-size width="800" height="600"/>
</mxmlc>
Repeatable options
Some compiler options are repeatable. The online help shows their arguments in square brackets, followed by a
bracketed ellipses, like this:
-compiler.source-path [path-element] [...]
You set the value of repeatable options by using multiple nested elements of the same name as the option, along
with attributes of the same name as they appear in the online help.
The following example sets two values for the
compiler.source-path option:
<mxmlc ...>
<compiler.source-path path-element="src"/>
<compiler.source-path path-element="../bar/src"/>
</mxmlc>
Nested elements
In some situations, options that are closely related are grouped together in a nested element of the main task
element. For example, the command-line compiler options with the
compiler.fonts and metadata prefixes can
be grouped into nested elements. The
compiler.fonts options use the element name fonts and the metadata
options use the element name
metadata.