Jaroslav Záruba
Jaroslav Záruba

Reputation: 4876

How to tell gwt-maven-plugin not to use certain parameters when calling the GWT-compiler

I am trying to migrate a GWT-2.0.2 project to the net.ltgt.gwt.maven:gwt-maven-plugin, but it seems to be calling the GWT-compiler with parameters that weren't recognized back in times of GWT 2.0.2, like -deploy, -sourceLevel etc.

I know it is possible to add extra parameters, but is it possible to exclude some?

Upvotes: 0

Views: 145

Answers (1)

Jaroslav Záruba
Jaroslav Záruba

Reputation: 4876

Not possible: https://github.com/tbroyer/gwt-maven-plugin/blob/main/src/main/java/net/ltgt/gwt/maven/GwtOptions.java

  class CommandlineBuilder {
    public static List<String> buildArgs(Log log, GwtOptions options) {
      List<String> args = new ArrayList<>();
      if (options.getLogLevel() != null) {
        args.add("-logLevel");
        args.add(options.getLogLevel());
      }
      args.add("-war");
      args.add(options.getWarDir().getAbsolutePath());
      args.add("-workDir");
      args.add(options.getWorkDir().getAbsolutePath());
      args.add("-deploy");
      args.add(options.getDeployDir().getAbsolutePath());```

Upvotes: 1

Related Questions