searls.jasmine
Class AbstractJasmineMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by searls.jasmine.AbstractJasmineMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateManualRunnerMojo, JasmineMojo, PrepareJasmineTestsMojo

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


Field Summary
protected  java.lang.String[] browsers
          The Browser simulation used for Unit tests (default to FF3.6)
protected  java.io.File jasmineTargetDir
           
protected  java.io.File jasmineTestSourceDirectory
           
protected  java.io.File jsunitTestSourceDirectory
          Base directory for jsunit test.
protected  java.lang.String libsDirectory
          The folder for javascripts dependencies
protected  java.lang.String manualSpecRunnerHtmlFileName
           
protected  org.apache.maven.project.MavenProject mavenProject
           
protected  java.io.File packageDir
           
protected  java.lang.String packageJavaScriptPath
           
protected  java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
           
protected  java.util.List<java.lang.String> preloadSources
          JavaScript sources (typically vendor/lib dependencies) that need to be loaded before other sources (and specs) in a particular order, these are relative to the ${sourceDirectory} directory! Therefore, if jquery.js is in `${sourceDirectory}/vendor`, you would configure: <preloadSources> <source>vendor/z.js</source> </preloadSources> And z.js would load before all the other sources and specs.
protected  boolean skipTests
          Set this to 'true' to bypass unit tests entirely.
protected  java.io.File sourceDirectory
           
protected  java.lang.String specDirectoryName
           
protected  java.lang.String specRunnerHtmlFileName
           
protected  java.lang.String srcDirectoryName
           
protected  boolean testFailureIgnore
          Set this to true to ignore a failure during testing.
protected  boolean useArtifactId
          Use the artifactId as folder
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractJasmineMojo()
           
 
Method Summary
 
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

sourceDirectory

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

jsunitTestSourceDirectory

protected java.io.File jsunitTestSourceDirectory
Base directory for jsunit test.

Is defined by:
expression:
${jsunitTestSourceDirectory}
default-value:
${project.basedir}${file.separator}src${file.separator}test${file.separator}javascript

jasmineTestSourceDirectory

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

packageJavaScriptPath

protected java.lang.String packageJavaScriptPath
Is defined by:
expression:
${packageJavaScriptPath}
default-value:
js

preloadSources

protected java.util.List<java.lang.String> preloadSources
JavaScript sources (typically vendor/lib dependencies) that need to be loaded before other sources (and specs) in a particular order, these are relative to the ${sourceDirectory} directory! Therefore, if jquery.js is in `${sourceDirectory}/vendor`, you would configure: <preloadSources> <source>vendor/z.js</source> </preloadSources> And z.js would load before all the other sources and specs.

Is defined by:

jasmineTargetDir

protected java.io.File jasmineTargetDir
Is defined by:
default-value:
${project.build.directory}${file.separator}jasmine

libsDirectory

protected java.lang.String libsDirectory
The folder for javascripts dependencies

Is defined by:
expression:
${scripts}
default-value:
lib

browsers

protected java.lang.String[] browsers
The Browser simulation used for Unit tests (default to FF3.6)

Is defined by:

useArtifactId

protected boolean useArtifactId
Use the artifactId as folder

Is defined by:

skipTests

protected boolean skipTests
Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.

Is defined by:
expression:
${maven.test.skip}

testFailureIgnore

protected boolean testFailureIgnore
Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.

Is defined by:
expression:
${maven.test.failure.ignore}

packageDir

protected java.io.File packageDir
Is defined by:
default-value:
${project.build.directory}${file.separator}${project.build.finalName}

specRunnerHtmlFileName

protected java.lang.String specRunnerHtmlFileName
Is defined by:
default-value:
SpecRunner.html

manualSpecRunnerHtmlFileName

protected java.lang.String manualSpecRunnerHtmlFileName
Is defined by:
default-value:
ManualSpecRunner.html

specDirectoryName

protected java.lang.String specDirectoryName
Is defined by:
default-value:
spec

srcDirectoryName

protected java.lang.String srcDirectoryName
Is defined by:
default-value:
src

mavenProject

protected org.apache.maven.project.MavenProject mavenProject
Is defined by:
default-value:
${project}

pluginArtifacts

protected java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
Is defined by:
default-value:
${plugin.artifacts}
Constructor Detail

AbstractJasmineMojo

public AbstractJasmineMojo()


Copyright © 2011 SOFTEC sa. All Rights Reserved.