org.codehaus.mojo.javascript
Class PrepareJsunitTestsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.javascript.PrepareJsunitTestsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class PrepareJsunitTestsMojo
extends org.apache.maven.plugin.AbstractMojo

Goal which copies scripts to the test-script directory.

Author:
Nicolas De Loof
Is defined by the goal name:
prepare-jsunit-tests
Is bound to the specified phase of the standard build lifecycle:
test-compile
Requires the dependencies in this specified scope:
test

Field Summary
protected  java.io.File jasmineTestSourceDirectory
           
protected  java.io.File jsunitTestSourceDirectory
          Location of the source files.
protected  java.io.File sourceDirectory
          Location of the source files.
protected  java.io.File workDirectory
          Location of the source files.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PrepareJsunitTestsMojo()
           
 
Method Summary
 void execute()
          
 
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

sourceDirectory

protected java.io.File sourceDirectory
Location of the source files.

Is defined by:
default-value:
${basedir}/src/main/javascript

jsunitTestSourceDirectory

protected java.io.File jsunitTestSourceDirectory
Location of the source files.

Is defined by:
default-value:
${basedir}/src/test/javascript

jasmineTestSourceDirectory

protected java.io.File jasmineTestSourceDirectory
Is defined by:
expression:
${testSourceDirectory}
default-value:
${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript

workDirectory

protected java.io.File workDirectory
Location of the source files.

Is defined by:
default-value:
${project.build.directory}/test-scripts
Constructor Detail

PrepareJsunitTestsMojo

public PrepareJsunitTestsMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException

Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
See Also:
Mojo.execute()


Copyright © 2011 SOFTEC sa. All Rights Reserved.