org.codehaus.mojo.javascript
Class InPlaceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.javascript.AbstractJavascriptMojo
          extended by org.codehaus.mojo.javascript.CompileMojo
              extended by org.codehaus.mojo.javascript.CompileSourceMojo
                  extended by org.codehaus.mojo.javascript.WarPackageMojo
                      extended by org.codehaus.mojo.javascript.InPlaceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InPlaceMojo
extends WarPackageMojo

Goal that copies javascript dependencies to the web application script folder, inside the webapp source directory. This allows to prepare the webapp for running on a lightweight servlet container that does not requires packaging (when using the jetty:run goal).

Author:
nicolas De Loof

Field Summary
 
Fields inherited from class org.codehaus.mojo.javascript.WarPackageMojo
javascriptArtifactManager, libsDirectory, scriptsDirectory, useArtifactId, webappDirectory
 
Fields inherited from class org.codehaus.mojo.javascript.CompileSourceMojo
DEFAULT_INCLUDES, descriptor, descriptorFormat, excludes, includes, outputDirectory, sourceDirectory
 
Fields inherited from class org.codehaus.mojo.javascript.CompileMojo
assemblerReaderManager
 
Fields inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
pluginArtifactMap, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InPlaceMojo()
           
 
Method Summary
 void execute()
          Set super's webappDirectory = warSourceDirectory and then execute as usual.
 
Methods inherited from class org.codehaus.mojo.javascript.CompileSourceMojo
getDefaultIncludes, getDescriptor, getDescriptorFormat, getExcludes, getIncludes, getOutputDirectory, getSourceDirectory
 
Methods inherited from class org.codehaus.mojo.javascript.CompileMojo
assemble
 
Methods inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
unpackJavascriptDependency, unpackJavascriptDependency
 
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
 

Constructor Detail

InPlaceMojo

public InPlaceMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Set super's webappDirectory = warSourceDirectory and then execute as usual.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class WarPackageMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
See Also:
Mojo.execute()


Copyright © 2010. All Rights Reserved.