net.jangaroo.jooc.mvnplugin
Class TestCompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.jangaroo.jooc.mvnplugin.JangarooMojo
          extended by net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
              extended by net.jangaroo.jooc.mvnplugin.TestCompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class TestCompilerMojo
extends AbstractCompilerMojo

Mojo to compile Jangaroo sources from during the test-compile phase.


Field Summary
protected  boolean skip
          Set this to 'true' to bypass unit tests entirely.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TestCompilerMojo()
           
 
Method Summary
 void execute()
          Runs the compile mojo
protected  List<File> getActionScriptClassPath()
           
protected  File getApiOutputDirectory()
           
protected  List<File> getCompileSourceRoots()
           
protected  Set<String> getExcludes()
           
protected  Set<String> getIncludes()
           
 String getModuleClassesJsFileName()
           
protected  File getOutputDirectory()
           
protected  File getTempClassesOutputDirectory()
           
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
getClassesOutputDirectory, getGeneratedSourcesDirectory, getModuleClassesJsFile, getProject, isJangarooPackaging
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.JangarooMojo
getMavenPluginHelper
 
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
 

Field Detail

skip

protected boolean skip
Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.

Constructor Detail

TestCompilerMojo

public TestCompilerMojo()
Method Detail

getApiOutputDirectory

protected File getApiOutputDirectory()
Specified by:
getApiOutputDirectory in class AbstractCompilerMojo
Returns:
null as API stub generation does not make sense for test sources

getCompileSourceRoots

protected List<File> getCompileSourceRoots()
Specified by:
getCompileSourceRoots in class AbstractCompilerMojo

getOutputDirectory

protected File getOutputDirectory()
Specified by:
getOutputDirectory in class AbstractCompilerMojo

getTempClassesOutputDirectory

protected File getTempClassesOutputDirectory()
Specified by:
getTempClassesOutputDirectory in class AbstractCompilerMojo

getIncludes

protected Set<String> getIncludes()
Specified by:
getIncludes in class AbstractCompilerMojo

getExcludes

protected Set<String> getExcludes()
Specified by:
getExcludes in class AbstractCompilerMojo

getModuleClassesJsFileName

public String getModuleClassesJsFileName()
Specified by:
getModuleClassesJsFileName in class AbstractCompilerMojo

getActionScriptClassPath

protected List<File> getActionScriptClassPath()
Specified by:
getActionScriptClassPath in class AbstractCompilerMojo

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Description copied from class: AbstractCompilerMojo
Runs the compile mojo

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractCompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.