Class 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 AbstractGwtShellMojo
    Updates 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-plugin CompileMojo.
    • 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
    • Constructor Detail

      • UpdateWidgetsetMojo

        public UpdateWidgetsetMojo()
    • Method Detail

      • doExecute

        public final void doExecute()
                             throws org.apache.maven.plugin.MojoExecutionException,
                                    org.apache.maven.plugin.MojoFailureException
        Specified by:
        doExecute in class AbstractGwtShellMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.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.MojoExecutionException
        Create an appropriate widgetset info class and start the build of the widgetset.
        Parameters:
        wsReq - widgetset compilation request
        outputFile - file in which to write the widgetset info class
        fetch - true to only trigger widgetset compilation for a later fetch, false to use the widgetset directly from the CDN
        Throws:
        java.io.IOException
        org.apache.maven.plugin.MojoExecutionException
      • setupGeneratedWidgetsetDirectory

        protected java.io.File setupGeneratedWidgetsetDirectory()