public abstract class AbstractFlexCompilerMojo<CFG,C extends AbstractFlexCompilerMojo<CFG,C>> extends AbstractMavenMojo implements ICompilerConfiguration, IFramesConfiguration, ILicensesConfiguration, IMetadataConfiguration, IMxmlConfiguration, INamespacesConfiguration, IExtensionsConfiguration, Cacheable, Cloneable, FlexMojo, IRuntimeSharedLibrarySettingsConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
benchmark
Output performance benchmark
|
protected String |
classifier
Classifier to add to the artifact generated.
|
protected FlexCompiler |
compiler |
protected String |
compilerName
Name of the Flex Tool Group that should be used for the build.
|
protected String |
debugPassword
The password to include in debuggable SWFs
|
protected String |
finalName
The name of the compiled file
|
protected List<String> |
includeResourceBundles
A list of resource bundles to include in the output SWC
|
protected MavenArtifact[] |
loadExterns
Deprecated.
use dependency with type "xml" and classifier "link-report"
|
protected File |
localesSourcePath
Define the base path to locate resouce bundle files Accept some special tokens:
|
static String |
PROJECT_TYPE |
protected String |
resourceBundleNames
Pattern to be used for locales resurce bundles names generation.
|
protected String |
toolsLocale
Configures the LocalizationManager's locale, which is used when reporting compile time errors, warnings, and
info.
|
AIR_GLOBAL, AIR_GROUP_ID, airVersion, archiverManager, cache, configDirectory, DATE_FORMAT, DEFAULT_RSL_URLS, DEFAULT_RUNTIME_LOCALE_OUTPUT_PATH, FLASH_GROUP_ID, flashVersion, fullSynchronization, GLOBAL_MATCHER, localRepository, packaging, PLAYER_GLOBAL, pluginArtifacts, project, projectHelper, quick, remoteRepositories, repositorySystem, resources, RETURNS_NULL, session, skip, TARGET_DIRECTORY, targetDirectoryACCESSIBLE, ACTIONSCRIPT_FILE_ENCODING, ADJUST_OPDEBUGLINE, ADVANCED_TELEMETRY, ALLOW_DUPLICATE_DEFAULT_STYLE_DECLARATIONS, ALLOW_SOURCE_PATH_OVERLAP, ARCHIVE_CLASSES_AND_ASSETS, AS3, COMPRESS, CONSERVATIVE, CONTEXT_ROOT, DEBUG, DEFAULTS_CSS_FILES, DEFAULTS_CSS_URL, DEFINE, DISABLE_INCREMENTAL_OPTIMIZATIONS, DOC, ENABLE_RUNTIME_DESIGN_LAYERS, ENABLE_SWC_VERSION_FILTERING, ES, EXTERNAL_LIBRARY_PATH, GENERATE_ABSTRACT_SYNTAX_TREE, HEADLESS_SERVER, INCLUDE_LIBRARIES, INCREMENTAL, ISOLATE_STYLES, JAVA_PROFILER_CLASS, KEEP_ALL_TYPE_SELECTORS, KEEP_AS3_METADATA, KEEP_GENERATED_ACTIONSCRIPT, KEEP_GENERATED_SIGNATURES, LIBRARY_PATH, LOCALE, MEMORY_USAGE_FACTOR, MINIMUM_SUPPORTED_VERSION, MOBILE, OMIT_TRACE_STATEMENTS, OPTIMIZE, PRELOADER, REPORT_INVALID_STYLES_AS_WARNINGS, REPORT_MISSING_REQUIRED_SKIN_PARTS_AS_WARNINGS, RESOURCE_HACK, SERVICES, SHOW_ACTIONSCRIPT_WARNINGS, SHOW_BINDING_WARNINGS, SHOW_DEPENDENCY_WARNINGS, SHOW_DEPRECATION_WARNINGS, SHOW_INVALID_CSS_PROPERTY_WARNINGS, SHOW_SHADOWED_DEVICE_FONT_WARNINGS, SHOW_UNUSED_TYPE_SELECTOR_WARNINGS, SIGNATURE_DIRECTORY, SOURCE_PATH, STRICT, THEME, TRANSLATION_FORMAT, USE_RESOURCE_BUNDLE_METADATA, VERBOSE_STACKTRACES, WARN_ARRAY_TOSTRING_CHANGES, WARN_ASSIGNMENT_WITHIN_CONDITIONAL, WARN_BAD_ARRAY_CAST, WARN_BAD_BOOL_ASSIGNMENT, WARN_BAD_DATE_CAST, WARN_BAD_ES3_TYPE_METHOD, WARN_BAD_ES3_TYPE_PROP, WARN_BAD_NAN_COMPARISON, WARN_BAD_NULL_ASSIGNMENT, WARN_BAD_NULL_COMPARISON, WARN_BAD_UNDEFINED_COMPARISON, WARN_BOOLEAN_CONSTRUCTOR_WITH_NO_ARGS, WARN_CHANGES_IN_RESOLVE, WARN_CLASS_IS_SEALED, WARN_CONST_NOT_INITIALIZED, WARN_CONSTRUCTOR_RETURNS_VALUE, WARN_DEPRECATED_EVENT_HANDLER_ERROR, WARN_DEPRECATED_FUNCTION_ERROR, WARN_DEPRECATED_PROPERTY_ERROR, WARN_DUPLICATE_ARGUMENT_NAMES, WARN_DUPLICATE_VARIABLE_DEF, WARN_FOR_VAR_IN_CHANGES, WARN_IMPORT_HIDES_CLASS, WARN_INSTANCE_OF_CHANGES, WARN_INTERNAL_ERROR, WARN_LEVEL_NOT_SUPPORTED, WARN_MISSING_NAMESPACE_DECL, WARN_NEGATIVE_UINT_LITERAL, WARN_NO_CONSTRUCTOR, WARN_NO_EXPLICIT_SUPER_CALL_IN_CONSTRUCTOR, WARN_NO_TYPE_DECL, WARN_NUMBER_FROM_STRING_CHANGES, WARN_SCOPING_CHANGE_IN_THIS, WARN_SLOW_TEXT_FIELD_ADDITION, WARN_UNLIKELY_FUNCTION_VALUE, WARN_XML_CLASS_HAS_CHANGEDFRAMELICENSECONTRIBUTOR, CREATOR, DATE, DESCRIPTION, LANGUAGE, LOCALIZED_DESCRIPTION, LOCALIZED_TITLE, PUBLISHER, TITLECOMPATIBILITY_VERSION, MINIMUM_SUPPORTED_VERSION, QUALIFIED_TYPE_SELECTORSNAMESPACEEXTENSIONAPPLICATION_DOMAIN, FORCE_RSLS| Constructor and Description |
|---|
AbstractFlexCompilerMojo() |
as3ClassesFileSet, checkResult, createSwfDescriptor, execute, filterClasses, filterFiles, fmExecute, getAirGlobal, getAirTarget, getAirVersion, getBasedir, getBuildDirectory, getCache, getCompilerArtifact, getCompilerGroupId, getCompilerVersion, getDependencies, getDependencies, getDependency, getFdkGroupId, getFlashGlobal, getFlashVersion, getFrameworkArtifact, getFrameworkArtifactVersion, getFrameworkConfig, getFrameworkGroupId, getFrameworkVersion, getFromPluginContext, getGlobalArtifact, getIsAirProject, getIsFlashProject, getLog, getMavenLogger, getMavenPathResolver, getOutputDirectory, getPluginContext, getResourcesTargetDirectories, getSession, getTargetDirectory, getUnpackedArtifact, getUnpackedArtifact, getUnpackedFrameworkConfig, initGlobalMatcher, isSkip, putPluginContext, resolve, scan, scan, scan, setArchiverManager, setLog, setPluginContext, toClass, wait, waitequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompilerVersionpublic static final String PROJECT_TYPE
protected Boolean benchmark
Equivalent to -benchmark
protected String classifier
protected FlexCompiler compiler
protected String debugPassword
Equivalent to -debug-password
protected String finalName
protected List<String> includeResourceBundles
Equivalent to -include-resource-bundles
Usage:<includeResourceBundles> <rb>SharedResources</rb> <rb>Collections</rb> </includeResourceBundles>
@Deprecated protected MavenArtifact[] loadExterns
load-externs option of the mxmlc or compc compilers.
<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>
protected File localesSourcePath
{locale} - replace by locale name
protected String resourceBundleNames
{locale} - replace by locale name
{artifactId} - replace by artifactId
{groupId} - replace by groupId
{version} - replace by version
{classifier} - replace by classifier
protected String toolsLocale
Equivalent to -tools-locale
protected String compilerName
protected org.apache.maven.artifact.Artifact adaptResourceBundle(org.apache.maven.artifact.Artifact baseRbSwc,
String requestedLocale)
protected Map<String,String> calculateRuntimeLibraryPath(org.apache.maven.artifact.Artifact artifact, String[] rslUrls, String[] policyFileUrls)
protected void configureResourceBundle(String locale, AbstractFlexCompilerMojo<?,?> cfg)
public abstract Result doCompile(CFG cfg, boolean synchronize) throws Exception
Exceptionprotected Result executeCompiler(CFG cfg, boolean synchronize) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic Boolean getAccessible()
getAccessible in interface ICompilerConfigurationpublic String getActionscriptFileEncoding()
getActionscriptFileEncoding in interface ICompilerConfigurationpublic Boolean getAdjustOpdebugline()
getAdjustOpdebugline in interface ICompilerConfigurationpublic Boolean getAllowDuplicateDefaultStyleDeclarations()
getAllowDuplicateDefaultStyleDeclarations in interface ICompilerConfigurationpublic Boolean getAllowSourcePathOverlap()
getAllowSourcePathOverlap in interface ICompilerConfigurationpublic IApplicationDomain[] getApplicationDomain()
getApplicationDomain in interface IRuntimeSharedLibrarySettingsConfigurationpublic Boolean getArchiveClassesAndAssets()
getArchiveClassesAndAssets in interface ICompilerConfigurationpublic Boolean getAs3()
getAs3 in interface ICompilerConfigurationpublic Boolean getBenchmark()
public Integer getBenchmarkCompilerDetails()
public Long getBenchmarkTimeFilter()
public String getClassifier()
public String getCompatibilityVersion()
getCompatibilityVersion in interface IMxmlConfigurationprotected Collection<org.apache.maven.artifact.Artifact> getCompiledResouceBundles()
public ICompilerConfiguration getCompilerConfiguration()
protected File getCompilerOutput()
public Boolean getCompress()
getCompress in interface ICompilerConfigurationpublic Boolean getConservative()
getConservative in interface ICompilerConfigurationpublic String getContextRoot()
getContextRoot in interface ICompilerConfigurationpublic String[] getContributor()
getContributor in interface IMetadataConfigurationpublic String[] getCreator()
getCreator in interface IMetadataConfigurationpublic String getDate()
getDate in interface IMetadataConfigurationpublic Boolean getDebug()
getDebug in interface ICompilerConfigurationpublic String getDebugPassword()
public Integer getDefaultBackgroundColor()
public Integer getDefaultFrameRate()
public IDefaultScriptLimits getDefaultScriptLimits()
public List<String> getDefaultsCssFiles()
getDefaultsCssFiles in interface ICompilerConfigurationpublic String getDefaultsCssUrl()
getDefaultsCssUrl in interface ICompilerConfigurationpublic IDefaultSize getDefaultSize()
public IDefine[] getDefine()
getDefine in interface ICompilerConfigurationpublic String getDescription()
getDescription in interface IMetadataConfigurationpublic Boolean getDisableIncrementalOptimizations()
getDisableIncrementalOptimizations in interface ICompilerConfigurationpublic Boolean getDoc()
getDoc in interface ICompilerConfigurationpublic String getDumpConfig()
public Boolean getEnableRuntimeDesignLayers()
getEnableRuntimeDesignLayers in interface ICompilerConfigurationpublic Boolean getEnableSwcVersionFiltering()
getEnableSwcVersionFiltering in interface ICompilerConfigurationpublic Boolean getEs()
getEs in interface ICompilerConfigurationpublic IExtension[] getExtension()
getExtension in interface IExtensionsConfigurationpublic IExtensionsConfiguration getExtensionsConfiguration()
getExtensionsConfiguration in interface ICompilerConfigurationpublic File[] getExternalLibraryPath()
getExternalLibraryPath in interface ICompilerConfigurationpublic String getFinalName()
public IFontsConfiguration getFontsConfiguration()
getFontsConfiguration in interface ICompilerConfigurationpublic String[] getForceRsls()
getForceRsls in interface IRuntimeSharedLibrarySettingsConfigurationpublic IFrame[] getFrame()
getFrame in interface IFramesConfigurationpublic IFramesConfiguration getFramesConfiguration()
public String getFramework()
public Boolean getGenerateAbstractSyntaxTree()
getGenerateAbstractSyntaxTree in interface ICompilerConfigurationpublic Boolean getGenerateFrameLoader()
public Collection<org.apache.maven.artifact.Artifact> getGlobalArtifactCollection()
public Boolean getHeadlessServer()
getHeadlessServer in interface ICompilerConfigurationpublic final String[] getHelp()
public Boolean getIncludeInheritanceDependenciesOnly()
public File[] getIncludeLibraries()
getIncludeLibraries in interface ICompilerConfigurationpublic Boolean getIncremental()
getIncremental in interface ICompilerConfigurationpublic Boolean getIsolateStyles()
getIsolateStyles in interface ICompilerConfigurationpublic String getJavaProfilerClass()
getJavaProfilerClass in interface ICompilerConfigurationpublic Boolean getKeepAllTypeSelectors()
getKeepAllTypeSelectors in interface ICompilerConfigurationpublic String[] getKeepAs3Metadata()
getKeepAs3Metadata in interface ICompilerConfigurationpublic Boolean getKeepGeneratedActionscript()
getKeepGeneratedActionscript in interface ICompilerConfigurationpublic Boolean getKeepGeneratedSignatures()
getKeepGeneratedSignatures in interface ICompilerConfigurationpublic String[] getLanguage()
getLanguage in interface IMetadataConfigurationpublic Boolean getLazyInit()
public File[] getLibraryPath()
getLibraryPath in interface ICompilerConfigurationpublic ILicense[] getLicense()
getLicense in interface ILicensesConfigurationpublic ILicensesConfiguration getLicensesConfiguration()
public String getLinkReport()
public String[] getLoadConfig()
public String[] getLoadExterns()
public String[] getLocale()
getLocale in interface ICompilerConfigurationpublic String[] getLocalesRuntime()
public ILocalizedDescription[] getLocalizedDescription()
getLocalizedDescription in interface IMetadataConfigurationpublic ILocalizedTitle[] getLocalizedTitle()
getLocalizedTitle in interface IMetadataConfigurationpublic Integer getMemoryUsageFactor()
getMemoryUsageFactor in interface ICompilerConfigurationpublic IMetadataConfiguration getMetadataConfiguration()
public String getMinimumSupportedVersion()
getMinimumSupportedVersion in interface ICompilerConfigurationgetMinimumSupportedVersion in interface IMxmlConfigurationpublic Boolean getMobile()
getMobile in interface ICompilerConfigurationpublic IMxmlConfiguration getMxmlConfiguration()
getMxmlConfiguration in interface ICompilerConfigurationpublic INamespace[] getNamespace()
getNamespace in interface INamespacesConfigurationpublic INamespacesConfiguration getNamespacesConfiguration()
getNamespacesConfiguration in interface ICompilerConfigurationpublic Boolean getOmitTraceStatements()
getOmitTraceStatements in interface ICompilerConfigurationpublic Boolean getOptimize()
getOptimize in interface ICompilerConfigurationpublic String getOutput()
public String[] getPolicyFileUrls()
public String getPreloader()
getPreloader in interface ICompilerConfigurationpublic String getProjectType()
public String[] getPublisher()
getPublisher in interface IMetadataConfigurationpublic Boolean getQualifiedTypeSelectors()
getQualifiedTypeSelectors in interface IMxmlConfigurationpublic String getRawMetadata()
public Boolean getRemoveUnusedRsls()
public Boolean getReportInvalidStylesAsWarnings()
getReportInvalidStylesAsWarnings in interface ICompilerConfigurationpublic Boolean getReportMissingRequiredSkinPartsAsWarnings()
getReportMissingRequiredSkinPartsAsWarnings in interface ICompilerConfigurationpublic String getResourceBundleList()
protected File getResourceBundleListFile()
bundles = containers core effects skins styles
public Boolean getResourceHack()
getResourceHack in interface ICompilerConfigurationpublic String[] getRslUrls()
public final String[] getRuntimeSharedLibraries()
public IRuntimeSharedLibraryPath[] getRuntimeSharedLibraryPath()
public IRuntimeSharedLibrarySettingsConfiguration getRuntimeSharedLibrarySettingsConfiguration()
public String getServices()
getServices in interface ICompilerConfigurationpublic Boolean getShowActionscriptWarnings()
getShowActionscriptWarnings in interface ICompilerConfigurationpublic Boolean getShowBindingWarnings()
getShowBindingWarnings in interface ICompilerConfigurationpublic Boolean getShowDependencyWarnings()
getShowDependencyWarnings in interface ICompilerConfigurationpublic Boolean getShowDeprecationWarnings()
getShowDeprecationWarnings in interface ICompilerConfigurationpublic Boolean getShowInvalidCssPropertyWarnings()
getShowInvalidCssPropertyWarnings in interface ICompilerConfigurationpublic Boolean getShowShadowedDeviceFontWarnings()
getShowShadowedDeviceFontWarnings in interface ICompilerConfigurationpublic Boolean getShowUnusedTypeSelectorWarnings()
getShowUnusedTypeSelectorWarnings in interface ICompilerConfigurationpublic File getSignatureDirectory()
getSignatureDirectory in interface ICompilerConfigurationpublic String getSizeReport()
public File[] getSourcePath()
getSourcePath in interface ICompilerConfigurationpublic Boolean getStaticLinkRuntimeSharedLibraries()
public Boolean getStrict()
getStrict in interface ICompilerConfigurationpublic Boolean getSwcChecksum()
public Integer getSwfVersion()
public String getTargetPlayer()
public List<String> getTheme()
getTheme in interface ICompilerConfigurationpublic String getTitle()
getTitle in interface IMetadataConfigurationpublic String getToolsLocale()
public String getTranslationFormat()
getTranslationFormat in interface ICompilerConfigurationpublic Boolean getUseDirectBlit()
public Boolean getUseGpu()
public Boolean getUseNetwork()
public Boolean getUseResourceBundleMetadata()
getUseResourceBundleMetadata in interface ICompilerConfigurationpublic Boolean getVerboseStacktraces()
getVerboseStacktraces in interface ICompilerConfigurationpublic Boolean getVerifyDigests()
public Boolean getAdvancedTelemetry()
getAdvancedTelemetry in interface ICompilerConfigurationpublic final Boolean getVersion()
public Boolean getWarnArrayTostringChanges()
getWarnArrayTostringChanges in interface ICompilerConfigurationpublic Boolean getWarnAssignmentWithinConditional()
getWarnAssignmentWithinConditional in interface ICompilerConfigurationpublic Boolean getWarnBadArrayCast()
getWarnBadArrayCast in interface ICompilerConfigurationpublic Boolean getWarnBadBoolAssignment()
getWarnBadBoolAssignment in interface ICompilerConfigurationpublic Boolean getWarnBadDateCast()
getWarnBadDateCast in interface ICompilerConfigurationpublic Boolean getWarnBadEs3TypeMethod()
getWarnBadEs3TypeMethod in interface ICompilerConfigurationpublic Boolean getWarnBadEs3TypeProp()
getWarnBadEs3TypeProp in interface ICompilerConfigurationpublic Boolean getWarnBadNanComparison()
getWarnBadNanComparison in interface ICompilerConfigurationpublic Boolean getWarnBadNullAssignment()
getWarnBadNullAssignment in interface ICompilerConfigurationpublic Boolean getWarnBadNullComparison()
getWarnBadNullComparison in interface ICompilerConfigurationpublic Boolean getWarnBadUndefinedComparison()
getWarnBadUndefinedComparison in interface ICompilerConfigurationpublic Boolean getWarnBooleanConstructorWithNoArgs()
getWarnBooleanConstructorWithNoArgs in interface ICompilerConfigurationpublic Boolean getWarnChangesInResolve()
getWarnChangesInResolve in interface ICompilerConfigurationpublic Boolean getWarnClassIsSealed()
getWarnClassIsSealed in interface ICompilerConfigurationpublic Boolean getWarnConstNotInitialized()
getWarnConstNotInitialized in interface ICompilerConfigurationpublic Boolean getWarnConstructorReturnsValue()
getWarnConstructorReturnsValue in interface ICompilerConfigurationpublic Boolean getWarnDeprecatedEventHandlerError()
getWarnDeprecatedEventHandlerError in interface ICompilerConfigurationpublic Boolean getWarnDeprecatedFunctionError()
getWarnDeprecatedFunctionError in interface ICompilerConfigurationpublic Boolean getWarnDeprecatedPropertyError()
getWarnDeprecatedPropertyError in interface ICompilerConfigurationpublic Boolean getWarnDuplicateArgumentNames()
getWarnDuplicateArgumentNames in interface ICompilerConfigurationpublic Boolean getWarnDuplicateVariableDef()
getWarnDuplicateVariableDef in interface ICompilerConfigurationpublic Boolean getWarnForVarInChanges()
getWarnForVarInChanges in interface ICompilerConfigurationpublic Boolean getWarnImportHidesClass()
getWarnImportHidesClass in interface ICompilerConfigurationpublic Boolean getWarnings()
public Boolean getWarnInstanceOfChanges()
getWarnInstanceOfChanges in interface ICompilerConfigurationpublic Boolean getWarnInternalError()
getWarnInternalError in interface ICompilerConfigurationpublic Boolean getWarnLevelNotSupported()
getWarnLevelNotSupported in interface ICompilerConfigurationpublic Boolean getWarnMissingNamespaceDecl()
getWarnMissingNamespaceDecl in interface ICompilerConfigurationpublic Boolean getWarnNegativeUintLiteral()
getWarnNegativeUintLiteral in interface ICompilerConfigurationpublic Boolean getWarnNoConstructor()
getWarnNoConstructor in interface ICompilerConfigurationpublic Boolean getWarnNoExplicitSuperCallInConstructor()
getWarnNoExplicitSuperCallInConstructor in interface ICompilerConfigurationpublic Boolean getWarnNoTypeDecl()
getWarnNoTypeDecl in interface ICompilerConfigurationpublic Boolean getWarnNumberFromStringChanges()
getWarnNumberFromStringChanges in interface ICompilerConfigurationpublic Boolean getWarnScopingChangeInThis()
getWarnScopingChangeInThis in interface ICompilerConfigurationpublic Boolean getWarnSlowTextFieldAddition()
getWarnSlowTextFieldAddition in interface ICompilerConfigurationpublic Boolean getWarnUnlikelyFunctionValue()
getWarnUnlikelyFunctionValue in interface ICompilerConfigurationpublic Boolean getWarnXmlClassHasChanged()
getWarnXmlClassHasChanged in interface ICompilerConfigurationpublic boolean isCompilationRequired()
public void versionCheck()
Copyright © 2008–2017 Sonatype, Inc.. All rights reserved.