Class MavenPluginHelper


  • public class MavenPluginHelper
    extends Object
    • Constructor Detail

      • MavenPluginHelper

        public MavenPluginHelper​(org.apache.maven.project.MavenProject project,
                                 org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • createDefaultManifest

        @Nonnull
        public static File createDefaultManifest​(org.apache.maven.project.MavenProject project)
                                          throws org.codehaus.plexus.archiver.jar.ManifestException,
                                                 IOException,
                                                 org.codehaus.plexus.archiver.ArchiverException
        Creates a default manifest file for any Jangaroo-packaged Maven project
        Parameters:
        project - the Maven project with packaging type "jangaroo-app" or "pkg"
        Returns:
        the default manifest file
        Throws:
        org.codehaus.plexus.archiver.jar.ManifestException
        IOException
        org.codehaus.plexus.archiver.ArchiverException
      • computeStaleSources

        public List<File> computeStaleSources​(List<File> compileSourceRoots,
                                              Set<String> includes,
                                              Set<String> excludes,
                                              File outputDirectory,
                                              String inputFileSuffix,
                                              String outputFileSuffix,
                                              int staleMillis)
                                       throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • computeStalePropertiesSources

        public List<File> computeStalePropertiesSources​(List<File> compileSourceRoots,
                                                        Set<String> includes,
                                                        Set<String> excludes,
                                                        File outputDirectory,
                                                        int staleMillis)
                                                 throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getActionScriptClassPath

        public List<File> getActionScriptClassPath​(boolean includeTestScope)
      • getActionScriptCompilePath

        public List<File> getActionScriptCompilePath​(boolean includeInTestScope)
      • extractFileTemplate

        public static void extractFileTemplate​(File targetDirectory,
                                               File templateFile,
                                               String[] includes,
                                               String[] excludes,
                                               org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
                                        throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getArtifact

        @Nullable
        public static org.apache.maven.artifact.Artifact getArtifact​(org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                                                     List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
                                                                     org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
                                                                     org.apache.maven.repository.RepositorySystem repositorySystem,
                                                                     String groupId,
                                                                     String artifactId,
                                                                     String version,
                                                                     String scope,
                                                                     String type)
                                                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException