org.codehaus.mojo.gwt.shell
Class RunMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.gwt.AbstractGwtMojo
          extended by org.codehaus.mojo.gwt.AbstractGwtModuleMojo
              extended by org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
                  extended by org.codehaus.mojo.gwt.shell.AbstractGwtWebMojo
                      extended by org.codehaus.mojo.gwt.shell.RunMojo
All Implemented Interfaces:
ContextEnabled, Mojo, GwtModuleReader
Direct Known Subclasses:
DebugMojo

public class RunMojo
extends AbstractGwtWebMojo

Goal which run a GWT module in the GWT Hosted mode.

Version:
$Id: RunMojo.java 13275 2010-12-08 21:11:16Z olamy $
Author:
ccollins, cooper
Requires a direct invocation by the user:
false
Requires the dependencies in this specified scope:
test
Is defined to be executed in:
phase:
process-classes
Is defined by the goal name:
run

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
AbstractGwtShellMojo.JavaCommand
 
Field Summary
protected  org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
          To look up Archiver/UnArchiver implementations
 
Fields inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
out
 
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
GWT_MODULE_EXTENSION
 
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
artifactFactory, classpathBuilder, GWT_GROUP_ID, gwtSdkFirstInClasspath, localRepository, remoteRepositories, resolver, warSourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
RunMojo()
           
 
Method Summary
 void doExecute()
           
 File getContextXml()
           
protected  String getFileName()
           
 int getPort()
           
 MavenProject getProject()
           
 String getRunModule()
           
 String getRunTarget()
           
 String getStartupUrl()
           
 File getTomcat()
           
protected  void postProcessClassPath(Collection<File> classPath)
          hook to post-process the dependency-based classpath
 void setExecutedProject(MavenProject executedProject)
           
 void setRunTimeOut(int runTimeOut)
           
 
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtWebMojo
getWebXml, isWebXmlServletPathAsIs
 
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
execute, getExtraJvmArgs, getGen, getJvm, getLogLevel, getStyle, setTimeOut
 
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
addCompileSourceRoot, getGwtModules, getModules, readModule
 
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
addClasspathElements, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getLocalRepository, getOutputDirectory, getProjectArtifacts, getRemoteRepositories, resolve
 
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

archiverManager

protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
To look up Archiver/UnArchiver implementations

Since:
2.1.0-1
Is a Plexus component defined by:
Constructor Detail

RunMojo

public RunMojo()
Method Detail

getRunTarget

public String getRunTarget()

getRunModule

public String getRunModule()
                    throws MojoExecutionException
Returns:
the GWT module to run (gwt 1.6+) -- expected to be unique
Throws:
MojoExecutionException

getStartupUrl

public String getStartupUrl()
                     throws MojoExecutionException
Returns:
the startup URL to open in hosted browser (gwt 1.6+)
Throws:
MojoExecutionException

getFileName

protected String getFileName()

doExecute

public void doExecute()
               throws MojoExecutionException,
                      MojoFailureException
Specified by:
doExecute in class AbstractGwtShellMojo
Throws:
MojoExecutionException
MojoFailureException

postProcessClassPath

protected void postProcessClassPath(Collection<File> classPath)
Description copied from class: AbstractGwtShellMojo
hook to post-process the dependency-based classpath

Overrides:
postProcessClassPath in class AbstractGwtShellMojo

getContextXml

public File getContextXml()

getPort

public int getPort()

getTomcat

public File getTomcat()

setRunTimeOut

public void setRunTimeOut(int runTimeOut)
Parameters:
runTimeOut - the runTimeOut to set

setExecutedProject

public void setExecutedProject(MavenProject executedProject)

getProject

public MavenProject getProject()
Overrides:
getProject in class AbstractGwtMojo
Returns:
the project


Copyright © 2007-2012 Codehaus. All Rights Reserved.