info.rvin.mojo.flexmojo.compiler
Class LibraryMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by info.rvin.mojo.flexmojo.AbstractIrvinMojo
          extended by info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo<flex2.tools.oem.Library>
              extended by info.rvin.mojo.flexmojo.compiler.LibraryMojo
All Implemented Interfaces:
FlexMojo, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
TestLibraryCompilerMojo

public class LibraryMojo
extends AbstractFlexCompilerMojo<flex2.tools.oem.Library>

Goal which compiles the Flex sources into a library for either Flex or AIR depending.


Field Summary
protected  java.io.File[] includeSources
          This is the equilvalent of the include-sources option of the compc compiler.
 
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 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
LibraryMojo()
           
 
Method Summary
protected  java.lang.String getDefaultLocale()
           
protected  java.io.File getOutput()
           
protected  boolean isApplication()
           
protected  boolean isDebug()
           
 void setUp()
          Setup before compilation of source
protected  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.compiler.AbstractFlexCompilerMojo
build, configure, getDependenciesPath, getFDKVersion, getFontsSnapshot, getGlobalDependency, getResourcesBundles, getThemes, getValidSourceRoots, resolveDependencies, rslsSort, run, setLocales, tearDown
 
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

includeSources

protected java.io.File[] includeSources
This is the equilvalent of the include-sources option of the compc compiler.
Usage:
 <includeSources>
   <sources>${baseDir}/src/main/flex</sources>
 </includeSources>
 

Constructor Detail

LibraryMojo

public LibraryMojo()
Method Detail

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.Library>
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

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.Library>
Throws:
org.apache.maven.plugin.MojoExecutionException

isDebug

protected boolean isDebug()
Specified by:
isDebug in class AbstractFlexCompilerMojo<flex2.tools.oem.Library>
Returns:
if should be compiled as debug

isApplication

protected boolean isApplication()
Specified by:
isApplication in class AbstractFlexCompilerMojo<flex2.tools.oem.Library>

getDefaultLocale

protected java.lang.String getDefaultLocale()
Specified by:
getDefaultLocale in class AbstractFlexCompilerMojo<flex2.tools.oem.Library>

getOutput

protected java.io.File getOutput()
Specified by:
getOutput in class AbstractFlexCompilerMojo<flex2.tools.oem.Library>


Copyright © 2008-2009 Flex-Mojos. All Rights Reserved.