Class 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.
    • Constructor Detail

      • AbstractCompilerMojo

        public AbstractCompilerMojo()
    • Method Detail

      • getCompileSourceRoots

        protected abstract List<File> getCompileSourceRoots()
      • getOutputDirectory

        protected abstract File getOutputDirectory()
      • getClassesOutputDirectory

        protected File getClassesOutputDirectory()
      • getGeneratedSourcesDirectory

        public File getGeneratedSourcesDirectory()
      • getApiOutputDirectory

        @Nullable
        protected abstract File getApiOutputDirectory()
      • 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.MojoFailureException
        Runs the compile mojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.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.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • findUnusedDependencies

        protected boolean findUnusedDependencies​(int staleMillis)
      • getActionScriptCompilePath

        protected abstract List<File> getActionScriptCompilePath()
      • getActionScriptClassPath

        protected abstract List<File> getActionScriptClassPath()
      • 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)
      • getIncludes

        protected abstract Set<String> getIncludes()
      • getExcludes

        protected abstract Set<String> getExcludes()