public abstract class AbstractMavenMojo extends Object implements org.apache.maven.plugin.Mojo, Cacheable, org.apache.maven.plugin.ContextEnabled
| Modifier and Type | Field and Description |
|---|---|
static String |
AIR_GLOBAL |
static String |
AIR_GROUP_ID |
protected String |
airVersion
Adobe AIR version
|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager |
protected Map<String,Object> |
cache |
protected File |
configDirectory
The maven configuration directory
|
static DateFormat |
DATE_FORMAT |
static String[] |
DEFAULT_RSL_URLS |
static String |
DEFAULT_RUNTIME_LOCALE_OUTPUT_PATH |
static String |
FLASH_GROUP_ID |
protected String |
flashVersion
Adobe Flash version
|
protected boolean |
fullSynchronization
When false (faster) Flexmojos will compiler modules and resource bundles using multiple threads (One per SWF).
|
protected org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact> |
GLOBAL_MATCHER |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local repository to be used by the plugin to resolve dependencies.
|
protected String |
packaging |
static String |
PLAYER_GLOBAL |
protected List<org.apache.maven.artifact.Artifact> |
pluginArtifacts |
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper |
protected boolean |
quick
Quick compile mode.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepositories
List of remote repositories to be used by the plugin to resolve dependencies.
|
protected org.apache.maven.repository.RepositorySystem |
repositorySystem |
protected List<org.apache.maven.model.Resource> |
resources
The maven resources
|
static org.mockito.stubbing.Answer<Object> |
RETURNS_NULL |
protected org.apache.maven.execution.MavenSession |
session
The Maven Session Object
|
protected boolean |
skip
Skips flexmojos goal execution
|
static String |
TARGET_DIRECTORY |
protected File |
targetDirectory |
| Constructor and Description |
|---|
AbstractMavenMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.maven.model.FileSet> |
as3ClassesFileSet(File... files) |
protected void |
checkResult(Result result) |
protected File |
createSwfDescriptor(File swf) |
void |
execute() |
protected List<String> |
filterClasses(List<org.apache.maven.model.FileSet> classesPattern,
File[] directories) |
protected Collection<File> |
filterFiles(List<org.apache.maven.model.FileSet> patterns,
List<File> directories) |
abstract void |
fmExecute() |
org.apache.maven.artifact.Artifact |
getAirGlobal() |
String |
getAirTarget() |
String |
getAirVersion() |
protected File |
getBasedir() |
File |
getBuildDirectory() |
Map<String,Object> |
getCache() |
protected org.apache.maven.artifact.Artifact |
getCompilerArtifact() |
String |
getCompilerGroupId() |
String |
getCompilerVersion() |
Set<org.apache.maven.artifact.Artifact> |
getDependencies() |
protected Set<org.apache.maven.artifact.Artifact> |
getDependencies(org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact>... matchers) |
protected org.apache.maven.artifact.Artifact |
getDependency(org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact>... matchers) |
String |
getFdkGroupId() |
org.apache.maven.artifact.Artifact |
getFlashGlobal() |
String |
getFlashVersion() |
protected org.apache.maven.artifact.Artifact |
getFrameworkArtifact() |
String |
getFrameworkArtifactVersion(String groupId,
String artifactId) |
protected org.apache.maven.artifact.Artifact |
getFrameworkConfig() |
String |
getFrameworkGroupId() |
String |
getFrameworkVersion() |
<E> E |
getFromPluginContext(String key) |
protected org.apache.maven.artifact.Artifact |
getGlobalArtifact() |
boolean |
getIsAirProject() |
boolean |
getIsFlashProject() |
org.apache.maven.plugin.logging.Log |
getLog() |
flex2.compiler.Logger |
getMavenLogger() |
flex2.compiler.common.SinglePathResolver |
getMavenPathResolver() |
File |
getOutputDirectory() |
Map<Object,Object> |
getPluginContext() |
protected List<File> |
getResourcesTargetDirectories() |
org.apache.maven.execution.MavenSession |
getSession() |
File |
getTargetDirectory() |
File |
getUnpackedArtifact(File destDir,
String groupId,
String artifactId,
String version,
String classifier,
String type) |
File |
getUnpackedArtifact(String groupId,
String artifactId,
String version,
String classifier,
String type) |
protected File |
getUnpackedFrameworkConfig() |
protected org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact> |
initGlobalMatcher() |
boolean |
isSkip() |
<E> void |
putPluginContext(String key,
E value) |
org.apache.maven.artifact.Artifact |
resolve(String groupId,
String artifactId,
String version,
String classifier,
String type) |
protected org.codehaus.plexus.util.DirectoryScanner |
scan(org.apache.maven.model.FileSet pattern) |
protected org.codehaus.plexus.util.DirectoryScanner |
scan(org.apache.maven.model.PatternSet pattern,
File directory) |
protected org.codehaus.plexus.util.DirectoryScanner |
scan(org.apache.maven.model.Resource resource) |
void |
setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager) |
void |
setLog(org.apache.maven.plugin.logging.Log log) |
void |
setPluginContext(Map pluginContext) |
protected String |
toClass(String filename) |
void |
wait(Collection<Result> results) |
protected void |
wait(Result... results) |
public static final DateFormat DATE_FORMAT
public static final String[] DEFAULT_RSL_URLS
public static final String DEFAULT_RUNTIME_LOCALE_OUTPUT_PATH
public static final String AIR_GROUP_ID
public static final String FLASH_GROUP_ID
public static final String AIR_GLOBAL
public static final String PLAYER_GLOBAL
public static final org.mockito.stubbing.Answer<Object> RETURNS_NULL
public static final String TARGET_DIRECTORY
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected File configDirectory
protected boolean fullSynchronization
protected String flashVersion
protected String airVersion
protected final org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact> GLOBAL_MATCHER
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected String packaging
protected List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.project.MavenProjectHelper projectHelper
protected boolean quick
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories
protected org.apache.maven.repository.RepositorySystem repositorySystem
protected List<org.apache.maven.model.Resource> resources
protected org.apache.maven.execution.MavenSession session
protected boolean skip
protected File targetDirectory
protected void checkResult(Result result) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected List<String> filterClasses(List<org.apache.maven.model.FileSet> classesPattern, File[] directories)
protected Collection<File> filterFiles(List<org.apache.maven.model.FileSet> patterns, List<File> directories)
public String getAirTarget()
protected File getBasedir()
protected org.apache.maven.artifact.Artifact getCompilerArtifact()
protected org.apache.maven.artifact.Artifact getFrameworkArtifact()
public String getFdkGroupId()
public String getCompilerGroupId()
public String getFrameworkGroupId()
public String getCompilerVersion()
public String getFrameworkArtifactVersion(String groupId, String artifactId)
public Set<org.apache.maven.artifact.Artifact> getDependencies()
protected Set<org.apache.maven.artifact.Artifact> getDependencies(org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact>... matchers)
protected org.apache.maven.artifact.Artifact getDependency(org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact>... matchers)
protected org.apache.maven.artifact.Artifact getFrameworkConfig()
public String getFrameworkVersion()
public <E> E getFromPluginContext(String key)
protected org.apache.maven.artifact.Artifact getGlobalArtifact()
public org.apache.maven.artifact.Artifact getAirGlobal()
public boolean getIsAirProject()
public String getAirVersion()
public org.apache.maven.artifact.Artifact getFlashGlobal()
public boolean getIsFlashProject()
public String getFlashVersion()
public org.apache.maven.plugin.logging.Log getLog()
getLog in interface org.apache.maven.plugin.Mojopublic flex2.compiler.Logger getMavenLogger()
public flex2.compiler.common.SinglePathResolver getMavenPathResolver()
public File getOutputDirectory()
public File getBuildDirectory()
public Map<Object,Object> getPluginContext()
getPluginContext in interface org.apache.maven.plugin.ContextEnabledContextEnabled.getPluginContext()public org.apache.maven.execution.MavenSession getSession()
public File getTargetDirectory()
public File getUnpackedArtifact(String groupId, String artifactId, String version, String classifier, String type)
public File getUnpackedArtifact(File destDir, String groupId, String artifactId, String version, String classifier, String type)
protected File getUnpackedFrameworkConfig()
protected org.hamcrest.Matcher<? extends org.apache.maven.artifact.Artifact> initGlobalMatcher()
public boolean isSkip()
public <E> void putPluginContext(String key, E value)
public org.apache.maven.artifact.Artifact resolve(String groupId, String artifactId, String version, String classifier, String type) throws RuntimeMavenResolutionException
RuntimeMavenResolutionExceptionprotected org.codehaus.plexus.util.DirectoryScanner scan(org.apache.maven.model.FileSet pattern)
protected org.codehaus.plexus.util.DirectoryScanner scan(org.apache.maven.model.PatternSet pattern,
File directory)
protected org.codehaus.plexus.util.DirectoryScanner scan(org.apache.maven.model.Resource resource)
public void setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
public void setLog(org.apache.maven.plugin.logging.Log log)
setLog in interface org.apache.maven.plugin.Mojopublic void setPluginContext(Map pluginContext)
setPluginContext in interface org.apache.maven.plugin.ContextEnabledContextEnabled.setPluginContext(java.util.Map)public void wait(Collection<Result> results) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected void wait(Result... results) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic abstract void fmExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2008–2017 Sonatype, Inc.. All rights reserved.