net.jangaroo.jooc.mvnplugin.test
Class JooGenerateTestResourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.jangaroo.jooc.mvnplugin.PackageApplicationMojo
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 janagroo artifact unarchiver. |
protected List<org.apache.maven.model.Resource> |
testResources
the tests.html file relative to the test resources folder |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
testOutputDirectory
protected File testOutputDirectory
- Output directory for the janagroo 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
JooGenerateTestResourcesMojo
public JooGenerateTestResourcesMojo()
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.