|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
info.rvin.mojo.flexmojo.AbstractIrvinMojo
info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo<E>
public abstract class AbstractFlexCompilerMojo<E extends flex2.tools.oem.Builder>
| Field Summary | |
|---|---|
protected E |
builder
Builder to be used by compiler |
protected java.lang.String[] |
compiledLocales
Sets the locales that the compiler uses to replace {locale} tokens that appear in some configuration
values. |
protected java.io.File |
configFile
Load a file containing configuration options If not defined, by default will search for one on resources folder. |
protected flex2.tools.oem.Configuration |
configuration
Flex OEM compiler configurations |
protected org.apache.maven.execution.MavenSession |
context
LW : needed for expression evaluation The maven MojoExecution needed for ExpressionEvaluation |
protected java.lang.String |
debugPassword
A password that is embedded in the application |
protected org.apache.maven.plugin.MojoExecution |
execution
LW : needed for expression evaluation Note : needs at least maven 2.0.8 because of MNG-3062 The maven MojoExecution needed for ExpressionEvaluation |
protected boolean |
isSetProjectFile
When true sets the artifact generated by this mojos as pom artifact |
protected boolean |
linkReport
Uses the default compiler options as base |
protected java.io.File |
linkReportFile
Generated link report file |
protected MavenArtifact[] |
loadExterns
Sets a list of artifacts to omit from linking when building an application. |
protected java.lang.String[] |
locales
Deprecated. |
protected java.lang.String |
resourceBundlePath
Define the base path to locate resouce bundle files Accept some special tokens: {locale} - replace by locale name |
protected java.lang.String[] |
runtimeLocales
Sets the locales that should be used to generate resource bundles. |
protected java.io.File[] |
sourcePaths
List of path elements that form the roots of ActionScript class hierarchies. |
| Fields inherited from class info.rvin.mojo.flexmojo.AbstractIrvinMojo |
|---|
artifactFactory, artifactMetadataSource, build, localRepository, mavenProjectBuilder, pluginArtifacts, project, projectHelper, remoteRepositories, resolver |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractFlexCompilerMojo()
Construct instance |
|
| Method Summary | |
|---|---|
protected void |
build(E builder)
|
protected void |
configure()
Setup builder configuration |
protected abstract java.lang.String |
getDefaultLocale()
|
protected java.io.File[] |
getDependenciesPath(java.lang.String scope)
Get array of files for dependency artfacts for given scope |
java.lang.String |
getFDKVersion()
|
protected java.io.File |
getFontsSnapshot()
Get Fonts snapshot |
protected java.io.File[] |
getGlobalDependency()
|
protected abstract java.io.File |
getOutput()
|
protected java.io.File[] |
getResourcesBundles(java.lang.String... requestedLocales)
Get resource bundles for the given locale |
protected java.io.File[] |
getThemes()
|
protected java.util.List<java.io.File> |
getValidSourceRoots(java.util.List<?> sourceRoots)
|
protected abstract boolean |
isApplication()
|
protected abstract boolean |
isDebug()
|
protected void |
resolveDependencies()
|
void |
rslsSort(java.util.List<org.apache.maven.artifact.Artifact> rslArtifacts)
|
void |
run()
Perform compilation of Flex source |
protected void |
setLocales(java.lang.String... locales)
|
void |
setUp()
Setup before compilation of source |
protected void |
tearDown()
Perform actions after compilation has run |
protected abstract void |
writeResourceBundle(java.lang.String[] bundles,
java.lang.String locale,
java.io.File localePath)
Write resource bundle |
| Methods inherited from class info.rvin.mojo.flexmojo.AbstractIrvinMojo |
|---|
execute, getDependencyArtifacts, getDependencyArtifacts |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute, getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.plugin.MojoExecution execution
protected org.apache.maven.execution.MavenSession context
protected java.lang.String[] locales
{locale} tokens that appear in some configuration
values. This is equivalent to using the compiler.locale option of the mxmlc or compc compilers.
<locales>
<locale>en_US</locale>
<locale>pt_BR</locale>
<locale>es_ES</locale>
</locales>
protected java.io.File[] sourcePaths
<sourcePaths>
<path>${baseDir}/src/main/flex</path>
</sourcePaths>
By default use Maven source and resources folders.
protected java.lang.String debugPassword
protected boolean linkReport
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 java.io.File configFile
protected java.lang.String resourceBundlePath
{locale} - replace by locale name
protected E extends flex2.tools.oem.Builder builder
protected flex2.tools.oem.Configuration configuration
protected boolean isSetProjectFile
protected java.io.File linkReportFile
protected java.lang.String[] runtimeLocales
<runtimeLocales>
<locale>en_US</locale>
<locale>pt_BR</locale>
<locale>es_ES</locale>
</runtimeLocales>
protected java.lang.String[] compiledLocales
{locale} tokens that appear in some configuration
values. This is equivalent to using the compiler.locale option of the mxmlc or compc compilers.
<compiledLocales>
<locale>en_US</locale>
<locale>pt_BR</locale>
<locale>es_ES</locale>
</compiledLocales>
| Constructor Detail |
|---|
public AbstractFlexCompilerMojo()
| Method Detail |
|---|
public void setUp()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
setUp in class AbstractIrvinMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected java.util.List<java.io.File> getValidSourceRoots(java.util.List<?> sourceRoots)
public void run()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
run in class AbstractIrvinMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void configure()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected abstract java.lang.String getDefaultLocale()
protected abstract boolean isApplication()
protected abstract boolean isDebug()
protected void resolveDependencies()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected java.io.File[] getThemes()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void setLocales(java.lang.String... locales)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.io.File[] getGlobalDependency()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void rslsSort(java.util.List<org.apache.maven.artifact.Artifact> rslArtifacts)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.io.File getFontsSnapshot()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.io.File[] getResourcesBundles(java.lang.String... requestedLocales)
throws org.apache.maven.plugin.MojoExecutionException
requestedLocales - the locale for which you want bundles, null for all locales
org.apache.maven.plugin.MojoExecutionException
protected java.io.File[] getDependenciesPath(java.lang.String scope)
throws org.apache.maven.plugin.MojoExecutionException
scope - for which to get files
org.apache.maven.plugin.MojoExecutionException
protected void tearDown()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
tearDown in class AbstractIrvinMojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void writeResourceBundle(java.lang.String[] bundles,
java.lang.String locale,
java.io.File localePath)
throws org.apache.maven.plugin.MojoExecutionException
bundles - locale - localePath -
org.apache.maven.plugin.MojoExecutionException
protected void build(E builder)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic java.lang.String getFDKVersion()
getFDKVersion in interface FlexMojoprotected abstract java.io.File getOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||