flex-compiler-mojo:compile-swf

Full name:

info.flex-mojos:flex-compiler-mojo:2.0M6:compile-swf

Description:

Goal which compiles the Flex sources into an application for either Flex or AIR depending on the package type.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.
  • Binds by default to the lifecycle phase: compile.

Optional Parameters

Name Type Since Description
accessible boolean - Turn on generation of accessible SWFs.
Default value is: false.
allowSourcePathOverlap boolean - Allow the source-path to have path-elements which contain other path-elements
Default value is: false.
as3 boolean - Use the ActionScript 3 class based object model for greater performance and better error reporting. In the class based object model most built-in functions are implemented as fixed methods of classes (-strict is recommended, but not required, for earlier errors)
Default value is: true.
compatibilityVersion String -
configFile File - Load a file containing configuration options If not defined, by default will search for one on resources folder. If not found an empty config file will be generated at target folder. This file doesn't reflect the configurations defined on pom.xml, is only put there because flex-compiler-oem always try to read a config.xml.
configurationReport boolean - Writes the configuration report to a file after the build.
Default value is: false.
contextRoot String - Sets the context root path so that the compiler can replace {context.root} tokens for service channel endpoints.
debug boolean - Turn on generation of debuggable SWFs. False by default for mxmlc, but true by default for compc.
Default value is: false.
debugPassword String - A password that is embedded in the application
defaultBackgroundColor String - Sets the default background color. You can override this by using the application code. This is the equivalent of the default-background-color option of the mxmlc or compc compilers.
Default value is: 869CA7.
defaultFrameRate int - Sets the default frame rate to be used in the application. This is the equivalent of the default-frame-rate option of the mxmlc or compc compilers.
Default value is: 24.
defaultSizeHeight int - Sets the default application height in pixels. This is equivalent to using the default-size option of the mxmlc or compc compilers.
Default value is: 375.
defaultSizeWidth int - Sets the default application width in pixels. This is equivalent to using the default-size option of the mxmlc or compc compilers.
Default value is: 500.
defaultsCss File - Sets the location of the default CSS file. This is equivalent to using the compiler.defaults-css-url option of the mxmlc or compc compilers.
defines Map - defines: specifies a list of define directive key and value pairs. For example, CONFIG::debugging
Usage:
<defines>
<SOMETHING::aNumber>2.2</SOMETHING::aNumber>
<SOMETHING::aString>"text"</SOMETHING::aString>
</defines>

enableMavenResourcesResolver boolean - When enabled flex-mojos will add a custom path resolver to flex compiler. This allow flex-mojos to resolve Embed assets located at src/main/resources. This is a workaround and it is described at http://bugs.adobe.com/jira/browse/SDK-15466
Default value is: true.
encoding String - Sets the ActionScript file encoding. The compiler uses this encoding to read the ActionScript source files. This is equivalent to using the actionscript-file-encoding option of the mxmlc or compc compilers.

The character encoding; for example UTF-8 or Big5.


Default value is: UTF-8.
es boolean - Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties. In the prototype based object model built-in functions are implemented as dynamic properties of prototype objects (-strict is allowed, but may result in compiler errors for references to dynamic properties)
Default value is: false.
externs String[] - Sets a list of definitions to omit from linking when building an application. This is equivalent to using the externs option of the mxmlc and compc compilers. An array of definitions (for example, classes, functions, variables, or namespaces).
Usage:
<externs>
<extern>com.acme.AClass</extern>
</externs>

fonts Font - Local Fonts Snapshot File containing cached system font licensing information produced via java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath). Will default to winFonts.ser on Windows XP and macFonts.ser on Mac OS X.
Usage:
<fonts>
<advancedAntiAliasing>true</advancedAntiAliasing>
<flashType>true</flashType>
<languages>
<englishRange>U+0020-U+007E</englishRange>
</languages>
<localFontsSnapshot>${baseDir}/src/main/resources/fonts.ser</localFontsSnapshot>
<managers>
<manager>flash.fonts.BatikFontManager</manager>
</managers>
<maxCachedFonts>20</maxCachedFonts>
<maxGlyphsPerFace>1000</maxGlyphsPerFace>
</fonts>

frames FrameLabel[] - Sets a SWF frame label with a sequence of class names that are linked onto the frame. This is equivalent to using the frames.frame option of the mxmlc or compc compilers.
Usage:
<frames>
<frame>
<label>frame1</label>
<classNames>
<className>com.acme.AClass</className>
</classNames>
</frame>
</frames>

headlessServer boolean - Sets the compiler when it runs on a server without a display. This is equivalent to using the compiler.headless-server option of the mxmlc or compc compilers. that value determines if the compiler is running on a server without a display.
Default value is: false.
includes String[] - Sets a list of definitions to always link in when building an application. This is equivalent to using the includes option of the mxmlc or compc compilers. An array of definitions (for example, classes, functions, variables, or namespaces).
Usage:
<includes>
<include>com.acme.AClass</include>
</includes>

incremental boolean - If the incremental input argument is false, this method recompiles all parts of the object. If the incremental input argument is true, this method compiles only the parts of the object that have changed since the last compilation.
Default value is: false.
keepAllTypeSelectors boolean - Instructs the compiler to keep a style sheet's type selector in a SWF file, even if that type (the class) is not used in the application. This is equivalent to using the compiler.keep-all-type-selectors option of the mxmlc or compc compilers.
Default value is: false.
keepAs3Metadatas String[] - Keep the following AS3 metadata in the bytecodes.
Usage:
<keepAs3Metadatas>
<metadata>Bindable</metadata>
<metadata>Events</metadata>
</keepAs3Metadatas>

keepGeneratedActionscript boolean - Turn on writing of generated/*.as files to disk. These files are generated by the compiler during mxml translation and are helpful with understanding and debugging Flex applications.
Default value is: false.
licenses Map - licenses: specifies a list of product and serial number pairs.
Usage:
<licenses>
<flexbuilder3>xxxx-xxxx-xxxx-xxxx</flexbuilder3>
</licenses>

linkReport boolean - Uses the default compiler options as base
Default value is: false.
loadExterns MavenArtifact[] - Sets a list of artifacts to omit from linking when building an application. This is equivalent to using the load-externs option of the mxmlc or compc compilers.
Usage:
<loadExterns>
<loadExtern>
<groupId>com.acme</groupId>
<artifactId>flexmodule</artifactId>
<version>1.0.0</version>
</loadExtern>
<loadExtern>
<groupId>org.tabajara</groupId>
<artifactId>flexmodule</artifactId>
<version>1.0.0</version>
</loadExtern>
</loadExterns>

loadExternsOnModules boolean - When true, tells flex-mojos to use link reports/load externs on modules compilation
Default value is: true.
localRepository ArtifactRepository - Local repository to be used by the plugin to resolve dependencies.
locales String[] - Sets the locales that the compiler uses to replace {locale} tokens that appear in some configuration values. This is equivalent to using the compiler.locale option of the mxmlc or compc compilers.
Usage:
<locales>
<locale>en_US</locale>
<locale>pt_BR</locale>
<locale>es_ES</locale>
</locales>

mergeResourceBundle Boolean - When true resources are compiled into Application or Library. When false resources are compiled into separated Application or Library files. If not defined no resourceBundle generation is done
metadata Metadata - SWF metadata useless there is no API to read it.
Usage:
<metadata>
<contributor>buddy</contributor>
<creator>me</creator>
<date>01/01/01</date>
<descriptions>
<en_US>Simple description</en_US>
</descriptions>
<language>en_US</language>
<publishers>
<publisher>publisher1</publisher>
<publisher>publisher2</publisher>
</publishers>
<titles>
<en_US>Project title</en_US>
</titles>
</metadata>

moduleFiles String[] - The list of modules files to be compiled. The path must be relative with source folder.
Usage:
<moduleFiles>
<module>com/acme/AModule.mxml</module>
</moduleFiles>

namespaces Namespace[] - Specify a URI to associate with a manifest of components for use as MXML elements.
Usage:
<namespaces>
<namespace>
<uri>http://www.adobe.com/2006/mxml</uri>
<manifest>${basedir}/manifest.xml</manifest>
</namespace>
</namespaces>

optimize boolean - Enable post-link SWF optimization.
Default value is: true.
output String - The filename of the SWF movie to create
pluginArtifacts List - (no description)
policyFileUrls String[] - policyFileUrls array of policy file URLs. Each entry in the rslUrls array must have a corresponding entry in this array. A policy file may be needed in order to allow the player to read an RSL from another domain. If a policy file is not required, then set it to an empty string. Accept some special tokens:
{contextRoot} - replace by defined context root
{groupId} - replace by library groupId
{artifactId} - replace by library artifactId
{version} - replace by library version
{extension} - replace by library extension swf or swz

Usage:
<policyFileUrls>
<url>/{contextRoot}/rsl/policy-{artifactId}-{version}.xml</url>
</policyFileUrls>

quick boolean - Quick compile mode. When true, flex-mojos will check if the last artifact available at maven repository is newer then sources. If so, will not recompile.
Default value is: false.
rawMetadata String - Sets the metadata section of the application SWF. This is equivalent to the raw-metadata option of the mxmlc or compc compilers. Need a well-formed XML fragment
remoteRepositories List - List of remote repositories to be used by the plugin to resolve dependencies.
resourceBundlePath String - Define the base path to locate resouce bundle files Accept some special tokens:
{locale} - replace by locale name

Default value is: ${basedir}/src/main/locales/{locale}.
rslUrls String[] - rslUrls array of URLs. The first RSL URL in the list is the primary RSL. The remaining RSL URLs will only be loaded if the primary RSL fails to load. Accept some special tokens:
{contextRoot} - replace by defined context root
{groupId} - replace by library groupId
{artifactId} - replace by library artifactId
{version} - replace by library version
{extension} - replace by library extension swf or swz
default-value="/{contextRoot}/rsl/{artifactId}-{version}.{extension}"
Usage:
<rslUrls>
<url>/{contextRoot}/rsl/{artifactId}-{version}.{extension}</url>
</rslUrls>

scriptMaxExecutionTime int - Sets the default script execution limits (which can be overridden by root attributes). This is equivalent to using the default-script-limits option of the mxmlc or compc compilers. Execution time, in seconds
Default value is: 60.
scriptMaxRecursionDepth int - Sets the default script execution limits (which can be overridden by root attributes). This is equivalent to using the default-script-limits option of the mxmlc or compc compilers. Recursion depth
Default value is: 1000.
services File - Sets the location of the Flex Data Services service configuration file. This is equivalent to using the compiler.services option of the mxmlc and compc compilers. If not define will look inside resources directory for services-config.xml
showWarnings boolean - Run the AS3 compiler in a mode that detects legal but potentially incorrect code
Default value is: true.
sourceFile String - The file to be compiled. The path must be relative with source folder
sourcePaths File[] - List of path elements that form the roots of ActionScript class hierarchies.
Usage:
<sourcePaths>
<path>${baseDir}/src/main/flex</path>
</sourcePaths>
By default use Maven source and resources folders.
strict boolean - Run the AS3 compiler in strict error checking mode.
Default value is: true.
targetPlayer String - specifies the version of the player the application is targeting. Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
Default value is: 9.0.0.
useNetwork boolean - Enables SWFs to access the network.
Default value is: true.
useResourceBundleMetadata boolean - Determines whether resources bundles are included in the application. This is equivalent to using the compiler.use-resource-bundle-metadata option of the mxmlc or compc compilers.
Default value is: true.
verboseStacktraces boolean - Turns on the display of stack traces for uncaught runtime errors.
Default value is: false.
verifyDigests boolean - Verifies the RSL loaded has the same digest as the RSL specified when the application was compiled. This is equivalent to using the verify-digests option in the mxmlc compiler.
Default value is: true.
warnings Warning - Enables checking of the following ActionScript warnings:
--compiler.warn-array-tostring-changes
--compiler.warn-assignment-within-conditional
--compiler.warn-bad-array-cast
--compiler.warn-bad-bool-assignment
--compiler.warn-bad-date-cast
--compiler.warn-bad-es3-type-method
--compiler.warn-bad-es3-type-prop
--compiler.warn-bad-nan-comparison
--compiler.warn-bad-null-assignment
--compiler.warn-bad-null-comparison
--compiler.warn-bad-undefined-comparison
--compiler.warn-boolean-constructor-with-no-args
--compiler.warn-changes-in-resolve
--compiler.warn-class-is-sealed
--compiler.warn-const-not-initialized
--compiler.warn-constructor-returns-value
--compiler.warn-deprecated-event-handler-error
--compiler.warn-deprecated-function-error
--compiler.warn-deprecated-property-error
--compiler.warn-duplicate-argument-names
--compiler.warn-duplicate-variable-def
--compiler.warn-for-var-in-changes
--compiler.warn-import-hides-class
--compiler.warn-instance-of-changes
--compiler.warn-internal-error
--compiler.warn-level-not-supported
--compiler.warn-missing-namespace-decl
--compiler.warn-negative-uint-literal
--compiler.warn-no-constructor
--compiler.warn-no-explicit-super-call-in-constructor
--compiler.warn-no-type-decl
--compiler.warn-number-from-string-changes
--compiler.warn-scoping-change-in-this
--compiler.warn-slow-text-field-addition
--compiler.warn-unlikely-function-value
--compiler.warn-xml-class-has-changed

Usage:
<warnigs>
<arrayTostringChanges>true</arrayTostringChanges>
<assignmentWithinConditional>false</assignmentWithinConditional>
</warnigs>

Parameter Details

accessible :

Turn on generation of accessible SWFs.
  • Type: boolean
  • Required: No
  • Default: false

allowSourcePathOverlap :

Allow the source-path to have path-elements which contain other path-elements
  • Type: boolean
  • Required: No
  • Default: false

as3 :

Use the ActionScript 3 class based object model for greater performance and better error reporting. In the class based object model most built-in functions are implemented as fixed methods of classes (-strict is recommended, but not required, for earlier errors)
  • Type: boolean
  • Required: No
  • Default: true

compatibilityVersion :

  • Type: java.lang.String
  • Required: No

configFile :

Load a file containing configuration options If not defined, by default will search for one on resources folder. If not found an empty config file will be generated at target folder. This file doesn't reflect the configurations defined on pom.xml, is only put there because flex-compiler-oem always try to read a config.xml.
  • Type: java.io.File
  • Required: No

configurationReport :

Writes the configuration report to a file after the build.
  • Type: boolean
  • Required: No
  • Expression: ${configurationReport}
  • Default: false

contextRoot :

Sets the context root path so that the compiler can replace {context.root} tokens for service channel endpoints.
  • Type: java.lang.String
  • Required: No

debug :

Turn on generation of debuggable SWFs. False by default for mxmlc, but true by default for compc.
  • Type: boolean
  • Required: No
  • Default: false

debugPassword :

A password that is embedded in the application
  • Type: java.lang.String
  • Required: No

defaultBackgroundColor :

Sets the default background color. You can override this by using the application code. This is the equivalent of the default-background-color option of the mxmlc or compc compilers.
  • Type: java.lang.String
  • Required: No
  • Default: 869CA7

defaultFrameRate :

Sets the default frame rate to be used in the application. This is the equivalent of the default-frame-rate option of the mxmlc or compc compilers.
  • Type: int
  • Required: No
  • Default: 24

defaultSizeHeight :

Sets the default application height in pixels. This is equivalent to using the default-size option of the mxmlc or compc compilers.
  • Type: int
  • Required: No
  • Default: 375

defaultSizeWidth :

Sets the default application width in pixels. This is equivalent to using the default-size option of the mxmlc or compc compilers.
  • Type: int
  • Required: No
  • Default: 500

defaultsCss :

Sets the location of the default CSS file. This is equivalent to using the compiler.defaults-css-url option of the mxmlc or compc compilers.
  • Type: java.io.File
  • Required: No

defines :

defines: specifies a list of define directive key and value pairs. For example, CONFIG::debugging
Usage:
<defines>
<SOMETHING::aNumber>2.2</SOMETHING::aNumber>
<SOMETHING::aString>"text"</SOMETHING::aString>
</defines>
  • Type: java.util.Map
  • Required: No

enableMavenResourcesResolver :

When enabled flex-mojos will add a custom path resolver to flex compiler. This allow flex-mojos to resolve Embed assets located at src/main/resources. This is a workaround and it is described at http://bugs.adobe.com/jira/browse/SDK-15466
  • Type: boolean
  • Required: No
  • Expression: ${enableMavenResourcesResolver}
  • Default: true

encoding :

Sets the ActionScript file encoding. The compiler uses this encoding to read the ActionScript source files. This is equivalent to using the actionscript-file-encoding option of the mxmlc or compc compilers.

The character encoding; for example UTF-8 or Big5.

  • Type: java.lang.String
  • Required: No
  • Default: UTF-8

es :

Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties. In the prototype based object model built-in functions are implemented as dynamic properties of prototype objects (-strict is allowed, but may result in compiler errors for references to dynamic properties)
  • Type: boolean
  • Required: No
  • Default: false

externs :

Sets a list of definitions to omit from linking when building an application. This is equivalent to using the externs option of the mxmlc and compc compilers. An array of definitions (for example, classes, functions, variables, or namespaces).
Usage:
<externs>
<extern>com.acme.AClass</extern>
</externs>
  • Type: java.lang.String[]
  • Required: No

fonts :

Local Fonts Snapshot File containing cached system font licensing information produced via java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath). Will default to winFonts.ser on Windows XP and macFonts.ser on Mac OS X.
Usage:
<fonts>
<advancedAntiAliasing>true</advancedAntiAliasing>
<flashType>true</flashType>
<languages>
<englishRange>U+0020-U+007E</englishRange>
</languages>
<localFontsSnapshot>${baseDir}/src/main/resources/fonts.ser</localFontsSnapshot>
<managers>
<manager>flash.fonts.BatikFontManager</manager>
</managers>
<maxCachedFonts>20</maxCachedFonts>
<maxGlyphsPerFace>1000</maxGlyphsPerFace>
</fonts>
  • Type: info.rvin.mojo.flexmojo.compiler.Font
  • Required: No

frames :

Sets a SWF frame label with a sequence of class names that are linked onto the frame. This is equivalent to using the frames.frame option of the mxmlc or compc compilers.
Usage:
<frames>
<frame>
<label>frame1</label>
<classNames>
<className>com.acme.AClass</className>
</classNames>
</frame>
</frames>
  • Type: info.rvin.mojo.flexmojo.compiler.FrameLabel[]
  • Required: No

headlessServer :

Sets the compiler when it runs on a server without a display. This is equivalent to using the compiler.headless-server option of the mxmlc or compc compilers. that value determines if the compiler is running on a server without a display.
  • Type: boolean
  • Required: No
  • Default: false

includes :

Sets a list of definitions to always link in when building an application. This is equivalent to using the includes option of the mxmlc or compc compilers. An array of definitions (for example, classes, functions, variables, or namespaces).
Usage:
<includes>
<include>com.acme.AClass</include>
</includes>
  • Type: java.lang.String[]
  • Required: No

incremental :

If the incremental input argument is false, this method recompiles all parts of the object. If the incremental input argument is true, this method compiles only the parts of the object that have changed since the last compilation.
  • Type: boolean
  • Required: No
  • Expression: ${incremental}
  • Default: false

keepAllTypeSelectors :

Instructs the compiler to keep a style sheet's type selector in a SWF file, even if that type (the class) is not used in the application. This is equivalent to using the compiler.keep-all-type-selectors option of the mxmlc or compc compilers.
  • Type: boolean
  • Required: No
  • Default: false

keepAs3Metadatas :

Keep the following AS3 metadata in the bytecodes.
Usage:
<keepAs3Metadatas>
<metadata>Bindable</metadata>
<metadata>Events</metadata>
</keepAs3Metadatas>
  • Type: java.lang.String[]
  • Required: No

keepGeneratedActionscript :

Turn on writing of generated/*.as files to disk. These files are generated by the compiler during mxml translation and are helpful with understanding and debugging Flex applications.
  • Type: boolean
  • Required: No
  • Default: false

licenses :

licenses: specifies a list of product and serial number pairs.
Usage:
<licenses>
<flexbuilder3>xxxx-xxxx-xxxx-xxxx</flexbuilder3>
</licenses>
  • Type: java.util.Map
  • Required: No

linkReport :

Uses the default compiler options as base
  • Type: boolean
  • Required: No
  • Default: false

loadExterns :

Sets a list of artifacts to omit from linking when building an application. This is equivalent to using the load-externs option of the mxmlc or compc compilers.
Usage:
<loadExterns>
<loadExtern>
<groupId>com.acme</groupId>
<artifactId>flexmodule</artifactId>
<version>1.0.0</version>
</loadExtern>
<loadExtern>
<groupId>org.tabajara</groupId>
<artifactId>flexmodule</artifactId>
<version>1.0.0</version>
</loadExtern>
</loadExterns>
  • Type: info.rvin.mojo.flexmojo.compiler.MavenArtifact[]
  • Required: No

loadExternsOnModules :

When true, tells flex-mojos to use link reports/load externs on modules compilation
  • Type: boolean
  • Required: No
  • Default: true

localRepository :

Local repository to be used by the plugin to resolve dependencies.
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

locales :

Sets the locales that the compiler uses to replace {locale} tokens that appear in some configuration values. This is equivalent to using the compiler.locale option of the mxmlc or compc compilers.
Usage:
<locales>
<locale>en_US</locale>
<locale>pt_BR</locale>
<locale>es_ES</locale>
</locales>
  • Type: java.lang.String[]
  • Required: No

mergeResourceBundle :

When true resources are compiled into Application or Library. When false resources are compiled into separated Application or Library files. If not defined no resourceBundle generation is done
  • Type: java.lang.Boolean
  • Required: No

metadata :

SWF metadata useless there is no API to read it.
Usage:
<metadata>
<contributor>buddy</contributor>
<creator>me</creator>
<date>01/01/01</date>
<descriptions>
<en_US>Simple description</en_US>
</descriptions>
<language>en_US</language>
<publishers>
<publisher>publisher1</publisher>
<publisher>publisher2</publisher>
</publishers>
<titles>
<en_US>Project title</en_US>
</titles>
</metadata>
  • Type: info.rvin.mojo.flexmojo.compiler.Metadata
  • Required: No

moduleFiles :

The list of modules files to be compiled. The path must be relative with source folder.
Usage:
<moduleFiles>
<module>com/acme/AModule.mxml</module>
</moduleFiles>
  • Type: java.lang.String[]
  • Required: No

namespaces :

Specify a URI to associate with a manifest of components for use as MXML elements.
Usage:
<namespaces>
<namespace>
<uri>http://www.adobe.com/2006/mxml</uri>
<manifest>${basedir}/manifest.xml</manifest>
</namespace>
</namespaces>
  • Type: info.rvin.mojo.flexmojo.compiler.Namespace[]
  • Required: No

optimize :

Enable post-link SWF optimization.
  • Type: boolean
  • Required: No
  • Default: true

output :

The filename of the SWF movie to create
  • Type: java.lang.String
  • Required: No

pluginArtifacts :

(no description)
  • Type: java.util.List
  • Required: No
  • Expression: ${plugin.artifacts}

policyFileUrls :

policyFileUrls array of policy file URLs. Each entry in the rslUrls array must have a corresponding entry in this array. A policy file may be needed in order to allow the player to read an RSL from another domain. If a policy file is not required, then set it to an empty string. Accept some special tokens:
{contextRoot} - replace by defined context root
{groupId} - replace by library groupId
{artifactId} - replace by library artifactId
{version} - replace by library version
{extension} - replace by library extension swf or swz

Usage:
<policyFileUrls>
<url>/{contextRoot}/rsl/policy-{artifactId}-{version}.xml</url>
</policyFileUrls>
  • Type: java.lang.String[]
  • Required: No

quick :

Quick compile mode. When true, flex-mojos will check if the last artifact available at maven repository is newer then sources. If so, will not recompile.
  • Type: boolean
  • Required: No
  • Expression: ${quick.compile}
  • Default: false

rawMetadata :

Sets the metadata section of the application SWF. This is equivalent to the raw-metadata option of the mxmlc or compc compilers. Need a well-formed XML fragment
  • Type: java.lang.String
  • Required: No

remoteRepositories :

List of remote repositories to be used by the plugin to resolve dependencies.
  • Type: java.util.List
  • Required: No
  • Expression: ${project.remoteArtifactRepositories}

resourceBundlePath :

Define the base path to locate resouce bundle files Accept some special tokens:
{locale} - replace by locale name
  • Type: java.lang.String
  • Required: No
  • Default: ${basedir}/src/main/locales/{locale}

rslUrls :

rslUrls array of URLs. The first RSL URL in the list is the primary RSL. The remaining RSL URLs will only be loaded if the primary RSL fails to load. Accept some special tokens:
{contextRoot} - replace by defined context root
{groupId} - replace by library groupId
{artifactId} - replace by library artifactId
{version} - replace by library version
{extension} - replace by library extension swf or swz
default-value="/{contextRoot}/rsl/{artifactId}-{version}.{extension}"
Usage:
<rslUrls>
<url>/{contextRoot}/rsl/{artifactId}-{version}.{extension}</url>
</rslUrls>
  • Type: java.lang.String[]
  • Required: No

scriptMaxExecutionTime :

Sets the default script execution limits (which can be overridden by root attributes). This is equivalent to using the default-script-limits option of the mxmlc or compc compilers. Execution time, in seconds
  • Type: int
  • Required: No
  • Default: 60

scriptMaxRecursionDepth :

Sets the default script execution limits (which can be overridden by root attributes). This is equivalent to using the default-script-limits option of the mxmlc or compc compilers. Recursion depth
  • Type: int
  • Required: No
  • Default: 1000

services :

Sets the location of the Flex Data Services service configuration file. This is equivalent to using the compiler.services option of the mxmlc and compc compilers. If not define will look inside resources directory for services-config.xml
  • Type: java.io.File
  • Required: No

showWarnings :

Run the AS3 compiler in a mode that detects legal but potentially incorrect code
  • Type: boolean
  • Required: No
  • Default: true

sourceFile :

The file to be compiled. The path must be relative with source folder
  • Type: java.lang.String
  • Required: No

sourcePaths :

List of path elements that form the roots of ActionScript class hierarchies.
Usage:
<sourcePaths>
<path>${baseDir}/src/main/flex</path>
</sourcePaths>
By default use Maven source and resources folders.
  • Type: java.io.File[]
  • Required: No

strict :

Run the AS3 compiler in strict error checking mode.
  • Type: boolean
  • Required: No
  • Default: true

targetPlayer :

specifies the version of the player the application is targeting. Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
  • Type: java.lang.String
  • Required: No
  • Default: 9.0.0

useNetwork :

Enables SWFs to access the network.
  • Type: boolean
  • Required: No
  • Default: true

useResourceBundleMetadata :

Determines whether resources bundles are included in the application. This is equivalent to using the compiler.use-resource-bundle-metadata option of the mxmlc or compc compilers.
  • Type: boolean
  • Required: No
  • Default: true

verboseStacktraces :

Turns on the display of stack traces for uncaught runtime errors.
  • Type: boolean
  • Required: No
  • Default: false

verifyDigests :

Verifies the RSL loaded has the same digest as the RSL specified when the application was compiled. This is equivalent to using the verify-digests option in the mxmlc compiler.
  • Type: boolean
  • Required: No
  • Default: true

warnings :

Enables checking of the following ActionScript warnings:
--compiler.warn-array-tostring-changes
--compiler.warn-assignment-within-conditional
--compiler.warn-bad-array-cast
--compiler.warn-bad-bool-assignment
--compiler.warn-bad-date-cast
--compiler.warn-bad-es3-type-method
--compiler.warn-bad-es3-type-prop
--compiler.warn-bad-nan-comparison
--compiler.warn-bad-null-assignment
--compiler.warn-bad-null-comparison
--compiler.warn-bad-undefined-comparison
--compiler.warn-boolean-constructor-with-no-args
--compiler.warn-changes-in-resolve
--compiler.warn-class-is-sealed
--compiler.warn-const-not-initialized
--compiler.warn-constructor-returns-value
--compiler.warn-deprecated-event-handler-error
--compiler.warn-deprecated-function-error
--compiler.warn-deprecated-property-error
--compiler.warn-duplicate-argument-names
--compiler.warn-duplicate-variable-def
--compiler.warn-for-var-in-changes
--compiler.warn-import-hides-class
--compiler.warn-instance-of-changes
--compiler.warn-internal-error
--compiler.warn-level-not-supported
--compiler.warn-missing-namespace-decl
--compiler.warn-negative-uint-literal
--compiler.warn-no-constructor
--compiler.warn-no-explicit-super-call-in-constructor
--compiler.warn-no-type-decl
--compiler.warn-number-from-string-changes
--compiler.warn-scoping-change-in-this
--compiler.warn-slow-text-field-addition
--compiler.warn-unlikely-function-value
--compiler.warn-xml-class-has-changed

Usage:
<warnigs>
<arrayTostringChanges>true</arrayTostringChanges>
<assignmentWithinConditional>false</assignmentWithinConditional>
</warnigs>
  • Type: info.rvin.mojo.flexmojo.compiler.Warning
  • Required: No