flex2:compile-swc

Compilation action for Flex2 actionscript 3 classes.

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: runtime
  • Automatically executes within the lifecycle phase: compile

Required Parameters

Name Type Description
finalName String Name of the generated compiled binary file.
flexHome File The directory in which Flex (command-line or builder) is installed.

Optional Parameters

Name Type Description
classifier String Classifier to add to the artifact generated. If given, the artifact will be an attachment instead.
dataServicesConfig File No description.
debug boolean No description.
extraParameters Parameter[] No description.
flexConfig File The location of the flex configuration file.
flexLibPropertiesFile File An optional file provided which provides a list of classes and resources to be included in the swc. The format of this file is identical to that generated by the flex builder file .flexLibProperties, and the .flexLibProperties can be used and set here.
includedClasses List An optional list of included classes. If this is present, then only those classes present in this list will be included in the .swc.
includedNamespaces List An optional list of included namespaces. If present, then the specified namespaces will be included as parameters through the -included-namespaces parameter item.
includedResources List An optional list of included resources. If present, then the specified resources will be included from src/main/resources in the swc. If resources are not specified here and no flex lib properties file is specified, then the full contents of src/main/resources will be included in the .swc, except for SCM related files (.svn, or CVS/)
incremental boolean No description.
javaOpts String[] These are additional JVM options used when invoking the Flex compiler
licenses License[] No description.
locale String The current locale.
optimize boolean No description.
profile boolean No description.
projectHelper MavenProjectHelper No description.
resolveExtraSwcsFromFlexFrameworksLibs boolean Resolve extra libraries (such as charts or fds) from ${flex.home}/frameworks/libs. Default is false, in which case these (and other) swcs should be deployed as flex artifacts (swcs).
showActionscriptWarnings boolean No description.
showBindingWarnings boolean No description.
showDeprecationWarnings boolean No description.
source File Location of the flex sources.
strict boolean No description.
useNetwork boolean No description.
warnings boolean No description.

Parameter Details

classifier

Classifier to add to the artifact generated. If given, the artifact will be an attachment instead.

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

dataServicesConfig

No Description.

  • Type : java.io.File
  • Required : No
  • Expression : ${flex.dataservices.config}

debug

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.debug}

extraParameters

No Description.

  • Type : net.israfil.mojo.flex2.Parameter[]
  • Required : No
  • Expression : ${flex.extraParameters}

finalName

Name of the generated compiled binary file.

  • Type : java.lang.String
  • Required : Yes
  • Expression : ${project.build.finalName}

flexConfig

The location of the flex configuration file.

  • Type : java.io.File
  • Required : No
  • Expression : ${flex.config}

flexHome

The directory in which Flex (command-line or builder) is installed.

  • Type : java.io.File
  • Required : Yes
  • Expression : ${flex.home}

flexLibPropertiesFile

An optional file provided which provides a list of classes and resources to be included in the swc. The format of this file is identical to that generated by the flex builder file .flexLibProperties, and the .flexLibProperties can be used and set here.

  • Type : java.io.File
  • Required : No

includedClasses

An optional list of included classes. If this is present, then only those classes present in this list will be included in the .swc.

  • Type : java.util.List
  • Required : No

includedNamespaces

An optional list of included namespaces. If present, then the specified namespaces will be included as parameters through the -included-namespaces parameter item.

  • Type : java.util.List
  • Required : No

includedResources

An optional list of included resources. If present, then the specified resources will be included from src/main/resources in the swc. If resources are not specified here and no flex lib properties file is specified, then the full contents of src/main/resources will be included in the .swc, except for SCM related files (.svn, or CVS/)

  • Type : java.util.List
  • Required : No

incremental

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.incremental}

javaOpts

These are additional JVM options used when invoking the Flex compiler

  • Type : java.lang.String[]
  • Required : No
  • Expression : ${flex.java.options}

licenses

No Description.

  • Type : net.israfil.mojo.flex2.License[]
  • Required : No
  • Expression : ${flex.licenses}

locale

The current locale.

  • Type : java.lang.String
  • Required : No
  • Expression : ${flex.locale}

optimize

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.optimize}

profile

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.profile}

projectHelper

No Description.

  • Type : org.apache.maven.project.MavenProjectHelper
  • Required : No

resolveExtraSwcsFromFlexFrameworksLibs

Resolve extra libraries (such as charts or fds) from ${flex.home}/frameworks/libs. Default is false, in which case these (and other) swcs should be deployed as flex artifacts (swcs).

  • Type : boolean
  • Required : No

showActionscriptWarnings

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.show-actionscript-warnings}

showBindingWarnings

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.show-binding-warnings}

showDeprecationWarnings

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.show-deprecation-warnings}

source

Location of the flex sources.

  • Type : java.io.File
  • Required : No
  • Expression : ${flex.compiler.source}

strict

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.strict}

useNetwork

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.use-network}

warnings

No Description.

  • Type : boolean
  • Required : No
  • Expression : ${flex.compiler.show-warnings}