net.jangaroo.jooc.mvnplugin
Class PackageApplicationMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
JooGenerateTestResourcesMojo, WarPackageMojo

public abstract class PackageApplicationMojo
extends org.apache.maven.plugin.AbstractMojo

An abstract goal to build a Jangaroo application, either for testing or for an actual application. It aggregates all needed resources into a given Web app directory:


Field Summary
protected  org.apache.maven.project.MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PackageApplicationMojo()
           
 
Method Summary
protected  void createWebapp(File webappDirectory)
          Create the Jangaroo Web app in the given Web app directory.
protected  Set<org.apache.maven.artifact.Artifact> getArtifacts()
           
abstract  File getPackageSourceDirectory()
           
protected  void writeModule(File scriptDirectory, String groupId, String artifactId, String version, Writer jangarooApplicationWriter, Writer jangarooApplicationAllWriter)
           
protected  void writeThisJangarooModuleScript(File scriptDirectory, Writer jangarooApplicationWriter, Writer jangarooApplicationAllWriter)
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

project

protected org.apache.maven.project.MavenProject project
The maven project.

Constructor Detail

PackageApplicationMojo

public PackageApplicationMojo()
Method Detail

getPackageSourceDirectory

public abstract File getPackageSourceDirectory()

createWebapp

protected void createWebapp(File webappDirectory)
                     throws org.apache.maven.plugin.MojoExecutionException
Create the Jangaroo Web app in the given Web app directory.

Parameters:
webappDirectory - the directory where to build the Jangaroo Web app.
Throws:
org.apache.maven.plugin.MojoExecutionException - if anything goes wrong

writeThisJangarooModuleScript

protected void writeThisJangarooModuleScript(File scriptDirectory,
                                             Writer jangarooApplicationWriter,
                                             Writer jangarooApplicationAllWriter)
                                      throws IOException
Throws:
IOException

writeModule

protected void writeModule(File scriptDirectory,
                           String groupId,
                           String artifactId,
                           String version,
                           Writer jangarooApplicationWriter,
                           Writer jangarooApplicationAllWriter)
                    throws IOException
Throws:
IOException

getArtifacts

protected Set<org.apache.maven.artifact.Artifact> getArtifacts()


Copyright © 2002–2014 CoreMedia AG. All rights reserved.