Package org.codehaus.mojo.gwt.shell
Class AbstractGwtShellMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.gwt.AbstractGwtMojo
-
- org.codehaus.mojo.gwt.AbstractGwtModuleMojo
-
- org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,GwtModuleReader
- Direct Known Subclasses:
AbstractGwtWebMojo,AbstractThemeMojo,CompileMojo,CSSMojo,I18NMojo,SuperDevModeMojo,TestMojo,UpdateWidgetsetMojo,Vaadin8UpgradeMojo
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$
- Author:
- ccollins, cooper, willpugh
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringwidgetsetModeThe widgetset compilation mode (local / fetch from CDN / CDN only).-
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 AbstractGwtShellMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddArgumentDeploy(JavaCommand cmd)protected voidaddArgumentGen(JavaCommand cmd)protected voidaddCompileSourceArtifacts(JavaCommand cmd)Add sources.jar artifacts for project dependencies listed as compileSourcesArtifacts.protected voidaddPersistentUnitCache(JavaCommand cmd)protected JavaCommandcreateJavaCommand()protected com.vaadin.wscdn.client.WidgetSetRequestcreateWidgetsetRequest()Create a CDN widgetset compilation request.abstract voiddoExecute()voidexecute()protected java.lang.StringgetExtraJvmArgs()protected java.lang.StringgetJvm()protected java.lang.StringgetLogLevel()protected java.lang.StringgetStyle()protected voidpostProcessClassPath(java.util.Collection<java.io.File> classpath)hook to post-process the dependency-based classpathvoidsetTimeOut(int timeOut)-
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, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory
-
-
-
-
Field Detail
-
widgetsetMode
@Parameter(defaultValue="local", property="vaadin.widgetset.mode") protected java.lang.String widgetsetModeThe widgetset compilation mode (local / fetch from CDN / CDN only). The allowed values are "local", "fetch" and "cdn".Can be set from command line using '-Dvaadin.widgetset.mode=...'
-
-
Method Detail
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
-
doExecute
public abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getExtraJvmArgs
protected java.lang.String getExtraJvmArgs()
-
getLogLevel
protected java.lang.String getLogLevel()
-
getStyle
protected java.lang.String getStyle()
-
getJvm
protected java.lang.String getJvm()
-
postProcessClassPath
protected void postProcessClassPath(java.util.Collection<java.io.File> classpath)
hook to post-process the dependency-based classpath
-
setTimeOut
public void setTimeOut(int timeOut)
- Parameters:
timeOut- the timeOut to set
-
createJavaCommand
protected JavaCommand createJavaCommand()
-
addCompileSourceArtifacts
protected void addCompileSourceArtifacts(JavaCommand cmd) throws org.apache.maven.plugin.MojoExecutionException
Add sources.jar artifacts for project dependencies listed as compileSourcesArtifacts. This is a GWT hack to avoid packaging java source files into JAR when sharing code between server and client. Typically, some domain model classes or business rules may be packaged as a separate Maven module. With GWT packaging this requires to distribute such classes with code, that may not be desirable.The hack can also be used to include utility code from external librariries that may not have been designed for GWT.
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addArgumentDeploy
protected void addArgumentDeploy(JavaCommand cmd)
-
addArgumentGen
protected void addArgumentGen(JavaCommand cmd)
-
addPersistentUnitCache
protected void addPersistentUnitCache(JavaCommand cmd)
-
createWidgetsetRequest
protected com.vaadin.wscdn.client.WidgetSetRequest createWidgetsetRequest() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionCreate a CDN widgetset compilation request.- Returns:
- created request
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-