org.codehaus.mojo.gwt.shell
Class AbstractGwtShellMojo

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
All Implemented Interfaces:
ContextEnabled, Mojo, GwtModuleReader
Direct Known Subclasses:
AbstractGwtWebMojo, CompileMojo, CSSMojo, I18NMojo, TestMojo

public abstract class AbstractGwtShellMojo
extends AbstractGwtModuleMojo

Support running GWT SDK Tools as forked JVM with classpath set according to project source/resource directories and dependencies.

Version:
$Id: AbstractGwtShellMojo.java 13196 2010-11-25 16:39:40Z olamy $
Author:
ccollins, cooper, willpugh

Nested Class Summary
 class AbstractGwtShellMojo.JavaCommand
          Deprecated. use the new JavaCommand Create a command to execute using builder pattern
 
Field Summary
protected  org.codehaus.plexus.util.cli.StreamConsumer out
          A plexus-util StreamConsumer to redirect messages to plugin log
 
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
AbstractGwtShellMojo()
           
 
Method Summary
abstract  void doExecute()
           
 void execute()
          
protected  String getExtraJvmArgs()
           
protected  File getGen()
           
protected  String getJvm()
           
protected  String getLogLevel()
           
protected  String getStyle()
           
protected  void postProcessClassPath(Collection<File> classpath)
          hook to post-process the dependency-based classpath
 void setTimeOut(int timeOut)
           
 
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, getProject, 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

out

protected org.codehaus.plexus.util.cli.StreamConsumer out
A plexus-util StreamConsumer to redirect messages to plugin log

Constructor Detail

AbstractGwtShellMojo

public AbstractGwtShellMojo()
Method Detail

execute

public final void execute()
                   throws MojoExecutionException,
                          MojoFailureException

Throws:
MojoExecutionException
MojoFailureException
See Also:
Mojo.execute()

doExecute

public abstract void doExecute()
                        throws MojoExecutionException,
                               MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

getExtraJvmArgs

protected String getExtraJvmArgs()

getGen

protected File getGen()

getLogLevel

protected String getLogLevel()

getStyle

protected String getStyle()

getJvm

protected String getJvm()

postProcessClassPath

protected void postProcessClassPath(Collection<File> classpath)
                             throws MojoExecutionException
hook to post-process the dependency-based classpath

Throws:
MojoExecutionException

setTimeOut

public void setTimeOut(int timeOut)
Parameters:
timeOut - the timeOut to set


Copyright © 2007-2012 Codehaus. All Rights Reserved.