net.jangaroo.jooc.mvnplugin.test
Class JooGenerateTestResourcesMojo

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

public class JooGenerateTestResourcesMojo
extends PackageApplicationMojo

Prepares the Javascript Testenvironment including generation of the HTML page and decompression of jangaroo dependencies. This plugin is executed in the generate-test-resources phase of the jangaroo lifecycle.


Field Summary
 
Fields inherited from class net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JooGenerateTestResourcesMojo()
           
 
Method Summary
 void execute()
           
 File getPackageSourceDirectory()
           
protected  boolean isTestAvailable()
           
protected  void writeThisJangarooModuleScript(File scriptDirectory, Writer jangarooApplicationWriter, Writer jangarooApplicationAllWriter)
           
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
createWebapp, getArtifacts, unpack, unpack, writeModule
 
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
 

Constructor Detail

JooGenerateTestResourcesMojo

public JooGenerateTestResourcesMojo()
Method Detail

getPackageSourceDirectory

public File getPackageSourceDirectory()
Specified by:
getPackageSourceDirectory in class PackageApplicationMojo

isTestAvailable

protected boolean isTestAvailable()

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

writeThisJangarooModuleScript

protected void writeThisJangarooModuleScript(File scriptDirectory,
                                             Writer jangarooApplicationWriter,
                                             Writer jangarooApplicationAllWriter)
                                      throws IOException
Overrides:
writeThisJangarooModuleScript in class PackageApplicationMojo
Throws:
IOException


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.