Package org.codehaus.mojo.gwt.shell
Class RunMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,GwtModuleReader
- Direct Known Subclasses:
DebugMojo
@Mojo(name="run", requiresDirectInvocation=true, requiresDependencyResolution=TEST) @Execute(phase=PROCESS_CLASSES, goal="war:exploded") public class RunMojo extends AbstractGwtWebMojoRuns the project in the GWT (Classic or Super) Dev Mode for development.- Version:
- $Id$
- Author:
- ccollins, cooper
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.archiver.manager.ArchiverManagerarchiverManagerTo look up Archiver/UnArchiver implementations-
Fields inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
widgetsetMode
-
Fields inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
artifactFactory, artifactMetadataSource, classpathBuilder, GWT_GROUP_ID, gwtSdkFirstInClasspath, localRepository, modulePathPrefix, remoteRepositories, resolver, VAADIN_GROUP_ID, warSourceDirectory
-
-
Constructor Summary
Constructors Constructor Description RunMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute()intgetPort()org.apache.maven.project.MavenProjectgetProject()java.lang.StringgetStartupUrl()protected voidpostProcessClassPath(java.util.Collection<java.io.File> classPath)hook to post-process the dependency-based classpathvoidsetExecutedProject(org.apache.maven.project.MavenProject executedProject)voidsetRunTimeOut(int runTimeOut)-
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtWebMojo
getWebXml, isWebXmlServletPathAsIs
-
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
addArgumentDeploy, addArgumentGen, addCompileSourceArtifacts, addPersistentUnitCache, createJavaCommand, createWidgetsetRequest, execute, getExtraJvmArgs, getJvm, getLogLevel, getStyle, setTimeOut
-
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtModuleMojo
getGwtModules, getModules, readModule
-
Methods inherited from class org.codehaus.mojo.gwt.AbstractGwtMojo
addClasspathElements, addCompileSourceRoot, getArtifact, getClasspath, getGenerateDirectory, getGwtDevJar, getGwtUserJar, getJarAndDependencies, getLocalRepository, getOutputDirectory, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory
-
-
-
-
Method Detail
-
getStartupUrl
public java.lang.String getStartupUrl() throws org.apache.maven.plugin.MojoExecutionException- Returns:
- the startup URL to open in hosted browser (gwt 1.6+)
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doExecutein classAbstractGwtShellMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
postProcessClassPath
protected void postProcessClassPath(java.util.Collection<java.io.File> classPath)
Description copied from class:AbstractGwtShellMojohook to post-process the dependency-based classpath- Overrides:
postProcessClassPathin classAbstractGwtShellMojo
-
getPort
public int getPort()
-
setRunTimeOut
public void setRunTimeOut(int runTimeOut)
- Parameters:
runTimeOut- the runTimeOut to set
-
setExecutedProject
public void setExecutedProject(org.apache.maven.project.MavenProject executedProject)
-
getProject
public org.apache.maven.project.MavenProject getProject()
- Overrides:
getProjectin classAbstractGwtMojo- Returns:
- the project
-
-