Class AbstractThemeMojo

    • Constructor Detail

      • AbstractThemeMojo

        public AbstractThemeMojo()
    • 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
      • checkVaadinVersion

        protected abstract void checkVaadinVersion()
                                            throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • isVaadin7

        protected boolean isVaadin7()
      • isVaadin71

        protected boolean isVaadin71()
      • isAtLeastVaadinVersion

        protected boolean isAtLeastVaadinVersion​(int major,
                                                 int minor)
      • processTheme

        protected abstract void processTheme​(java.lang.String theme)
                                      throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • configureThemeClasspath

        protected java.io.File configureThemeClasspath​(JavaCommand cmd,
                                                       java.lang.String theme)
                                                throws org.apache.maven.plugin.MojoExecutionException
        Configure the classpath for theme update/compilation.
        Parameters:
        cmd - command for which to configure the classpath
        theme - theme path relative to a resource directory
        Returns:
        the first suitable theme directory found (to be used as the output directory)
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getThemes

        protected java.lang.String[] getThemes()
        Return the available themes in the project source/resources folder. If a theme has been set by expression, only that theme is returned. It is possible to specify more themes, comma separated.
        Returns:
        the theme names