info.rvin.mojo.flexmojo.compiler
Class ApplicationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
info.rvin.mojo.flexmojo.AbstractIrvinMojo
info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo<flex2.tools.oem.Application>
info.rvin.mojo.flexmojo.compiler.ApplicationMojo
- All Implemented Interfaces:
- FlexMojo, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- TestCompilerMojo
public class ApplicationMojo
- extends AbstractFlexCompilerMojo<flex2.tools.oem.Application>
Goal which compiles the Flex sources into an application for either Flex or AIR depending on the package type.
|
Field Summary |
protected java.io.File |
output
The filename of the SWF movie to create |
protected java.io.File |
source
The file to be compiled |
protected java.lang.String |
sourceFile
The file to be compiled. |
| Fields inherited from class info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo |
builder, compiledLocales, configFile, configuration, context, debugPassword, execution, isSetProjectFile, linkReport, linkReportFile, loadExterns, locales, resourceBundlePath, runtimeLocales, sourcePaths |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo |
build, configure, getDependenciesPath, getFDKVersion, getFontsSnapshot, getGlobalDependency, getResourcesBundles, getThemes, getValidSourceRoots, resolveDependencies, rslsSort, run, setLocales |
| 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 |
sourceFile
protected java.lang.String sourceFile
- The file to be compiled. The path must be relative with source folder
source
protected java.io.File source
- The file to be compiled
output
protected java.io.File output
- The filename of the SWF movie to create
ApplicationMojo
public ApplicationMojo()
setUp
public void setUp()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
AbstractFlexCompilerMojo
- Setup before compilation of source
- Overrides:
setUp in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
tearDown
protected void tearDown()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
AbstractFlexCompilerMojo
- Perform actions after compilation has run
- Overrides:
tearDown in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
compileModules
protected void compileModules()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
writeResourceBundle
protected void writeResourceBundle(java.lang.String[] bundles,
java.lang.String locale,
java.io.File localePath)
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
AbstractFlexCompilerMojo
- Write resource bundle
- Specified by:
writeResourceBundle in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
- Throws:
org.apache.maven.plugin.MojoExecutionException
isDebug
protected boolean isDebug()
- Specified by:
isDebug in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
- Returns:
- if should be compiled as debug
isApplication
protected boolean isApplication()
- Specified by:
isApplication in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
getDefaultLocale
protected java.lang.String getDefaultLocale()
- Specified by:
getDefaultLocale in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
getOutput
protected java.io.File getOutput()
- Specified by:
getOutput in class AbstractFlexCompilerMojo<flex2.tools.oem.Application>
Copyright © 2008-2009 Flex-Mojos. All Rights Reserved.