|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.codehaus.mojo.javascript.PrepareTitaniumJasmineTestMojo
public class PrepareTitaniumJasmineTestMojo
This Mojo create the titanium project structure required to execute the jasmine tests.
Field Summary | |
---|---|
protected static java.lang.String[] |
DEFAULT_INCLUDES
default includes pattern |
protected java.io.File |
jasmineTestSourceDirectory
The location of the javascript test files |
protected java.lang.String |
libsDirectory
The folder for javascripts dependencies |
protected java.io.File |
outputDirectory
The output directory of the assembled js file. |
protected java.lang.String |
platform
The platform for which the code should be packaged. |
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
Location of the source files. |
protected java.lang.String[] |
specExcludes
Exclusion pattern. |
protected java.lang.String |
specsDirectory
The output folder for jasmine spec files. |
protected java.io.File |
testOutputDirectory
The output directory of the test files. |
protected boolean |
useArtifactId
Use the artifactId as folder |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
PrepareTitaniumJasmineTestMojo()
|
Method Summary | |
---|---|
protected void |
copySpecFiles()
|
protected void |
createTestAppJs(java.util.List<java.lang.String> sourceFiles)
|
protected void |
ensureTiApp()
|
void |
execute()
|
protected java.io.File |
getPlatformTestOutputDirectory()
|
protected java.io.File |
getPlatformTestSourceDirectory()
|
protected java.io.File |
getTiProjectDirectory()
|
protected java.io.File |
getTiProjectResourceDirectory()
|
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 |
---|
protected static final java.lang.String[] DEFAULT_INCLUDES
protected java.util.List<java.lang.String> preloadSources
<preloadSources>
<source>vendor/z.js</source>
</preloadSources>
And z.js would load before all the other sources and specs.
protected java.lang.String libsDirectory
protected java.lang.String specsDirectory
protected java.io.File jasmineTestSourceDirectory
protected java.lang.String platform
The platform for which the code should be packaged.
Supported platforms are:
protected java.io.File sourceDirectory
protected java.io.File outputDirectory
protected java.io.File testOutputDirectory
protected java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
protected boolean skipTests
protected java.lang.String[] specExcludes
Allow to specify which jasmine spec files should be excluded.
protected boolean useArtifactId
Constructor Detail |
---|
public PrepareTitaniumJasmineTestMojo()
Method Detail |
---|
protected java.io.File getPlatformTestSourceDirectory()
protected java.io.File getPlatformTestOutputDirectory()
protected java.io.File getTiProjectDirectory()
protected java.io.File getTiProjectResourceDirectory()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void ensureTiApp() throws java.io.IOException
java.io.IOException
protected void copySpecFiles() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void createTestAppJs(java.util.List<java.lang.String> sourceFiles) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |