Package net.jangaroo.jooc.mvnplugin
Class TestCompilerMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.jangaroo.jooc.mvnplugin.JangarooMojo
-
- net.jangaroo.jooc.mvnplugin.AbstractJangarooMojo
-
- net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
-
- net.jangaroo.jooc.mvnplugin.TestCompilerMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="testCompile", defaultPhase=TEST_COMPILE, requiresDependencyResolution=TEST, threadSafe=true) public class TestCompilerMojo extends AbstractCompilerMojoMojo to compile Jangaroo sources from during the test-compile phase.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanskipSet this to 'true' to bypass unit tests entirely.-
Fields inherited from class net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
UNDECLARED_DEPENDENCIES_KEY, UNUSED_DECLARED_DEPENDENCIES_WARNING, UNUSED_DEPENDENCIES_KEY, USED_UNDECLARED_DEPENDENCIES_WARNING
-
-
Constructor Summary
Constructors Constructor Description TestCompilerMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>createUsedUndeclaredDependencyWarning(org.apache.maven.artifact.Artifact dependency)voidexecute()Runs the compile mojoprotected booleanfindUnusedDependencies(int staleMillis)protected List<File>getActionScriptClassPath()protected List<File>getActionScriptCompilePath()protected FilegetApiOutputDirectory()protected List<File>getCompileSourceRoots()protected Set<String>getExcludes()protected Set<String>getIncludes()protected FilegetOutputDirectory()protected voidprintDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, Map<String,Object> dependencyWarnings)-
Methods inherited from class net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
createJoocConfiguration, getCatalogOutputDirectory, getClassesOutputDirectory, getGeneratedSourcesDirectory, isMigrateToTypeScript, isSuppressCommentedActionScriptCode, printUndeclaredDependencyWarnings, printUnusedDependencyWarnings, resolveDependency
-
Methods inherited from class net.jangaroo.jooc.mvnplugin.AbstractJangarooMojo
getNamespaces, getSourceDirectory
-
Methods inherited from class net.jangaroo.jooc.mvnplugin.JangarooMojo
getMavenPluginHelper, getProject
-
-
-
-
Field Detail
-
skip
@Parameter(defaultValue="${maven.test.skip}") protected boolean skipSet 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.
-
-
Method Detail
-
getApiOutputDirectory
protected File getApiOutputDirectory()
- Specified by:
getApiOutputDirectoryin classAbstractCompilerMojo- Returns:
- null as API stub generation does not make sense for test sources
-
getCompileSourceRoots
protected List<File> getCompileSourceRoots()
- Specified by:
getCompileSourceRootsin classAbstractCompilerMojo
-
getOutputDirectory
protected File getOutputDirectory()
- Specified by:
getOutputDirectoryin classAbstractCompilerMojo
-
getIncludes
protected Set<String> getIncludes()
- Specified by:
getIncludesin classAbstractCompilerMojo
-
getExcludes
protected Set<String> getExcludes()
- Specified by:
getExcludesin classAbstractCompilerMojo
-
getActionScriptCompilePath
protected List<File> getActionScriptCompilePath()
- Specified by:
getActionScriptCompilePathin classAbstractCompilerMojo
-
getActionScriptClassPath
protected List<File> getActionScriptClassPath()
- Specified by:
getActionScriptClassPathin classAbstractCompilerMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractCompilerMojoRuns the compile mojo- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
findUnusedDependencies
protected boolean findUnusedDependencies(int staleMillis)
- Overrides:
findUnusedDependenciesin classAbstractCompilerMojo
-
printDependencyWarnings
protected void printDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, Map<String,Object> dependencyWarnings)- Specified by:
printDependencyWarningsin classAbstractCompilerMojo
-
createUsedUndeclaredDependencyWarning
protected List<String> createUsedUndeclaredDependencyWarning(org.apache.maven.artifact.Artifact dependency)
- Specified by:
createUsedUndeclaredDependencyWarningin classAbstractCompilerMojo
-
-