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
protected  boolean skip
          Set this to 'true' to bypass unit tests entirely.
protected  File testOutputDirectory
          Output directory for the jangaroo artifact unarchiver.
protected  List<org.apache.maven.model.Resource> testResources
          the tests.html file relative to the test resources folder
 
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 fw)
           
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
createWebapp, getArtifacts, sort, unpack, unpack
 
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
 

Field Detail

testOutputDirectory

protected File testOutputDirectory
Output directory for the jangaroo artifact unarchiver. All jangaroo dependencies will be unpacked into this directory.


skip

protected boolean skip
Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.


testResources

protected List<org.apache.maven.model.Resource> testResources
the tests.html file relative to the test resources folder

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 fw)
                                      throws IOException
Overrides:
writeThisJangarooModuleScript in class PackageApplicationMojo
Throws:
IOException


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