org.codehaus.mojo.javascript
Class WarPackageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.javascript.AbstractJavascriptMojo
org.codehaus.mojo.javascript.CompileMojo
org.codehaus.mojo.javascript.CompileSourceMojo
org.codehaus.mojo.javascript.WarPackageMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- InPlaceMojo
public class WarPackageMojo
- extends CompileSourceMojo
Compile scripts in a WAR the same way as for a stand-alone javascript project,
except output the scripts to the webapp's target directory instead of
a dedicated scripts output directory.
- Author:
- Nicolas De Loof
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
execute()
Set the output directory to webappDirectory/scriptsDirectory and then
copy all dependencies to webappDirectory/scriptsDirectory/libDirectory. |
| 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 |
webappDirectory
protected java.io.File webappDirectory
- The directory where the webapp is built.
scriptsDirectory
protected java.lang.String scriptsDirectory
- The folder in webapp for javascripts
libsDirectory
protected java.lang.String libsDirectory
- The folder for javascripts dependencies
useArtifactId
protected boolean useArtifactId
- Use the artifactId as folder
javascriptArtifactManager
protected JavascriptArtifactManager javascriptArtifactManager
WarPackageMojo
public WarPackageMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Set the output directory to webappDirectory/scriptsDirectory and then
copy all dependencies to webappDirectory/scriptsDirectory/libDirectory.
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class CompileMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
Copyright © 2010. All Rights Reserved.