Class AbstractGwtShellMojo

    • Field Detail

      • style

        @Parameter(property="gwt.style")
        protected String style
        GWT JavaScript compiler output style (-style OBF[USCATED], PRETTY, or DETAILED).

        Can be set from command line using '-Dgwt.style=...'

    • Constructor Detail

      • AbstractGwtShellMojo

        public AbstractGwtShellMojo()
    • Method Detail

      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.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.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getExtraJvmArgs

        protected String getExtraJvmArgs()
      • getLogLevel

        protected String getLogLevel()
      • getStyle

        protected String getStyle()
      • getJvm

        protected String getJvm()
      • postProcessClassPath

        protected void postProcessClassPath​(Collection<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)