Package com.vaadin.integration.maven
Class UpdateWidgetsetMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.gwt.AbstractGwtMojo
-
- org.codehaus.mojo.gwt.AbstractGwtModuleMojo
-
- org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
-
- com.vaadin.integration.maven.UpdateWidgetsetMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,GwtModuleReader
@Mojo(name="update-widgetset", defaultPhase=GENERATE_RESOURCES, requiresDependencyResolution=COMPILE) public class UpdateWidgetsetMojo extends AbstractGwtShellMojoUpdates Vaadin widgetsets based on other widgetset packages on the classpath. It is assumed that the project does not directly contain other GWT modules. In part adapted from gwt-maven-pluginCompileMojo.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGWT_MODULE_EXTENSIONstatic java.lang.StringWIDGETSET_BUILDER_CLASS-
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 UpdateWidgetsetMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute()protected java.io.FilesetupGeneratedWidgetsetDirectory()protected voidtriggerCdnBuild(com.vaadin.wscdn.client.WidgetSetRequest wsReq, java.io.File outputFile, boolean fetch)Create an appropriate widgetset info class and start the build of the widgetset.-
Methods inherited from class org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo
addArgumentDeploy, addArgumentGen, addCompileSourceArtifacts, addPersistentUnitCache, createJavaCommand, createWidgetsetRequest, execute, getExtraJvmArgs, getJvm, getLogLevel, getStyle, postProcessClassPath, 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, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolve, setupGenerateDirectory
-
-
-
-
Field Detail
-
WIDGETSET_BUILDER_CLASS
public static final java.lang.String WIDGETSET_BUILDER_CLASS
- See Also:
- Constant Field Values
-
GWT_MODULE_EXTENSION
public static final java.lang.String GWT_MODULE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
doExecute
public final 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- See Also:
Mojo.execute()
-
triggerCdnBuild
protected void triggerCdnBuild(com.vaadin.wscdn.client.WidgetSetRequest wsReq, java.io.File outputFile, boolean fetch) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionExceptionCreate an appropriate widgetset info class and start the build of the widgetset.- Parameters:
wsReq- widgetset compilation requestoutputFile- file in which to write the widgetset info classfetch- true to only trigger widgetset compilation for a later fetch, false to use the widgetset directly from the CDN- Throws:
java.io.IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
setupGeneratedWidgetsetDirectory
protected java.io.File setupGeneratedWidgetsetDirectory()
-
-