Package net.jangaroo.jooc.mvnplugin
Class AbstractCompilerMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.jangaroo.jooc.mvnplugin.JangarooMojo
-
- net.jangaroo.jooc.mvnplugin.AbstractJangarooMojo
-
- net.jangaroo.jooc.mvnplugin.AbstractCompilerMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CompilerMojo,TestCompilerMojo
public abstract class AbstractCompilerMojo extends AbstractJangarooMojo
Super class for mojos compiling Jangaroo sources.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringUNDECLARED_DEPENDENCIES_KEYprotected static StringUNUSED_DECLARED_DEPENDENCIES_WARNINGprotected static StringUNUSED_DEPENDENCIES_KEYprotected static StringUSED_UNDECLARED_DEPENDENCIES_WARNING
-
Constructor Summary
Constructors Constructor Description AbstractCompilerMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected net.jangaroo.jooc.config.JoocConfigurationcreateJoocConfiguration(org.apache.maven.plugin.logging.Log log)protected abstract List<String>createUsedUndeclaredDependencyWarning(org.apache.maven.artifact.Artifact dependency)voidexecute()Runs the compile mojoprotected booleanfindUnusedDependencies(int staleMillis)protected abstract List<File>getActionScriptClassPath()protected abstract List<File>getActionScriptCompilePath()protected abstract FilegetApiOutputDirectory()protected FilegetCatalogOutputDirectory()protected FilegetClassesOutputDirectory()protected abstract List<File>getCompileSourceRoots()protected abstract Set<String>getExcludes()FilegetGeneratedSourcesDirectory()protected abstract Set<String>getIncludes()protected abstract FilegetOutputDirectory()booleanisMigrateToTypeScript()booleanisSuppressCommentedActionScriptCode()protected abstract voidprintDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, Map<String,Object> dependencyWarnings)protected voidprintUndeclaredDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, List<String> undeclaredDependencies, String dependencyNamePrefix)protected voidprintUnusedDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, List<String> unusedDependencies)protected Optional<org.apache.maven.artifact.Artifact>resolveDependency(String combinedDependencyName)-
Methods inherited from class net.jangaroo.jooc.mvnplugin.AbstractJangarooMojo
getNamespaces, getSourceDirectory
-
Methods inherited from class net.jangaroo.jooc.mvnplugin.JangarooMojo
getMavenPluginHelper, getProject
-
-
-
-
Field Detail
-
USED_UNDECLARED_DEPENDENCIES_WARNING
protected static final String USED_UNDECLARED_DEPENDENCIES_WARNING
- See Also:
- Constant Field Values
-
UNUSED_DEPENDENCIES_KEY
protected static final String UNUSED_DEPENDENCIES_KEY
- See Also:
- Constant Field Values
-
UNDECLARED_DEPENDENCIES_KEY
protected static final String UNDECLARED_DEPENDENCIES_KEY
- See Also:
- Constant Field Values
-
UNUSED_DECLARED_DEPENDENCIES_WARNING
protected static final String UNUSED_DECLARED_DEPENDENCIES_WARNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOutputDirectory
protected abstract File getOutputDirectory()
-
getClassesOutputDirectory
protected File getClassesOutputDirectory()
-
getGeneratedSourcesDirectory
public File getGeneratedSourcesDirectory()
-
isMigrateToTypeScript
public boolean isMigrateToTypeScript()
-
isSuppressCommentedActionScriptCode
public boolean isSuppressCommentedActionScriptCode()
-
getCatalogOutputDirectory
protected File getCatalogOutputDirectory()
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionRuns the compile mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
createJoocConfiguration
protected net.jangaroo.jooc.config.JoocConfiguration createJoocConfiguration(org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
findUnusedDependencies
protected boolean findUnusedDependencies(int staleMillis)
-
printDependencyWarnings
protected abstract void printDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, Map<String,Object> dependencyWarnings)
-
printUnusedDependencyWarnings
protected void printUnusedDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, List<String> unusedDependencies)
-
printUndeclaredDependencyWarnings
protected void printUndeclaredDependencyWarnings(net.jangaroo.jooc.config.JoocConfiguration joocConfiguration, List<String> undeclaredDependencies, String dependencyNamePrefix)
-
resolveDependency
protected Optional<org.apache.maven.artifact.Artifact> resolveDependency(String combinedDependencyName)
-
createUsedUndeclaredDependencyWarning
protected abstract List<String> createUsedUndeclaredDependencyWarning(org.apache.maven.artifact.Artifact dependency)
-
-