public abstract class AbstractOptimizerMojo extends AbstractMavenMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.model.Build |
build |
protected FlexCompiler |
compiler |
protected String |
compilerName
Name of the Flex Tool Group that should be used for the build.
|
protected File |
configDirectory
The maven configuration directory
|
protected String[] |
keepAs3Metadatas
Keep the specified metadata in the SWF
|
protected File |
loadConfig
Load a file containing configuration options.
|
protected File[] |
loadConfigs
Load a file containing configuration options
|
protected String |
packaging
The project packaging type.
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper |
protected boolean |
reduce
Use apparat to reduce the file size of SWFs by making use of the full feature set the Flash Player provides and
which is ignored by the ActionScript compiler.
|
protected boolean |
strip
Use apparat to strip
|
AIR_GLOBAL, AIR_GROUP_ID, airVersion, archiverManager, cache, DATE_FORMAT, DEFAULT_RSL_URLS, DEFAULT_RUNTIME_LOCALE_OUTPUT_PATH, FLASH_GROUP_ID, flashVersion, fullSynchronization, GLOBAL_MATCHER, localRepository, PLAYER_GLOBAL, pluginArtifacts, quick, remoteRepositories, repositorySystem, resources, RETURNS_NULL, session, skip, TARGET_DIRECTORY, targetDirectory| Constructor and Description |
|---|
AbstractOptimizerMojo() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getInput() |
String[] |
getKeepAs3Metadata() |
String[] |
getLoadConfig() |
IOptimizerConfiguration |
getOptimizerConfiguration(File input,
File output) |
String |
getOutput() |
protected File |
optimize() |
protected abstract File |
optimize(File input) |
protected void |
optimize(File input,
File output) |
protected void |
reduce(File input,
File output) |
protected void |
strip(File input,
File output) |
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, waitprotected org.apache.maven.model.Build build
protected FlexCompiler compiler
protected File configDirectory
protected String[] keepAs3Metadatas
Equivalent to -compiler.keep-as3-metadata
Usage:<keepAs3Metadatas> <keepAs3Metadata>Bindable</keepAs3Metadata> <keepAs3Metadata>Events</keepAs3Metadata> </keepAs3Metadatas>
protected File loadConfig
Equivalent to -load-config
Overwrite loadConfigs when defined!protected File[] loadConfigs
Equivalent to -load-config
Usage:<loadConfigs> <loadConfig>???</loadConfig> <loadConfig>???</loadConfig> </loadConfigs>
protected String packaging
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.project.MavenProjectHelper projectHelper
protected boolean reduce
Equivalent to apparat reducer
Reducer will only touch lossless images and not touch you encoded JPEG imagesprotected boolean strip
Equivalent to apparat stripper
protected String compilerName
public abstract String getInput()
public String[] getKeepAs3Metadata()
public String[] getLoadConfig()
public IOptimizerConfiguration getOptimizerConfiguration(File input, File output)
public String getOutput()
protected File optimize() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected abstract File optimize(File input) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected void optimize(File input, File output) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2008–2017 Sonatype, Inc.. All rights reserved.