org.codehaus.mojo.gwt
Class AbstractGWTMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.gwt.AbstractGWTMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CompileMojo, ShellMojo, TestMojo

public abstract class AbstractGWTMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract superclass for all Google Web Toolkit mojos.

Author:
Bob Allison

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGWTMojo()
           
 
Method Summary
protected  String getHomePage()
          Get the name of the home page.
protected  String getModuleName()
          Get the name of the GWT module.
protected  void runGWT(String classname, String target)
          Run the GWT tool.
protected  void runGWT(String classname, String target, String arg)
          Run the GWT tool.
protected  void runGWT(String classname, String target, String[] arguments)
          Run the GWT tool.
protected  void runGWT(String classname, String target, String arg1, String arg2)
          Run the GWT tool.
protected  void runJUnit(String classname)
          Run the GWT tool.
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractGWTMojo

public AbstractGWTMojo()
Method Detail

getModuleName

protected String getModuleName()
Get the name of the GWT module.

Returns:
The name of the GWT module

getHomePage

protected String getHomePage()
Get the name of the home page.

Returns:
The name of the home page

runGWT

protected void runGWT(String classname,
                      String target)
               throws org.apache.maven.plugin.MojoExecutionException
Run the GWT tool.

Parameters:
classname - The class to execute
target - The target for GWT to operate on
Throws:
org.apache.maven.plugin.MojoExecutionException - if a problem occurs running GWT

runGWT

protected void runGWT(String classname,
                      String target,
                      String arg)
               throws org.apache.maven.plugin.MojoExecutionException
Run the GWT tool.

Parameters:
classname - The class to execute
target - The target for GWT to operate on
arg - Extra arguments to pass
Throws:
org.apache.maven.plugin.MojoExecutionException - if a problem occurs running GWT

runGWT

protected void runGWT(String classname,
                      String target,
                      String arg1,
                      String arg2)
               throws org.apache.maven.plugin.MojoExecutionException
Run the GWT tool.

Parameters:
classname - The class to execute
target - The target for GWT to operate on
arg1 - Extra arguments to pass
arg2 - Extra arguments to pass
Throws:
org.apache.maven.plugin.MojoExecutionException - if a problem occurs running GWT

runGWT

protected void runGWT(String classname,
                      String target,
                      String[] arguments)
               throws org.apache.maven.plugin.MojoExecutionException
Run the GWT tool.

Parameters:
classname - The class to execute
target - The target for GWT to operate on
arguments - Extra arguments to pass
Throws:
org.apache.maven.plugin.MojoExecutionException - if a problem occurs running GWT

runJUnit

protected void runJUnit(String classname)
                 throws org.apache.maven.plugin.MojoExecutionException
Run the GWT tool.

Parameters:
classname - The class to test
Throws:
org.apache.maven.plugin.MojoExecutionException - if a problem occurs running JUnit


Copyright © 2007. All Rights Reserved.