tbroyer / gwt-maven-plugin

Starting fresh on building GWT projects with Maven
https://tbroyer.github.io/gwt-maven-plugin/
Apache License 2.0
166 stars 39 forks source link

Cannot pass port to CodeServer #120

Closed gardellajuanpablo closed 5 years ago

gardellajuanpablo commented 5 years ago

Configuration used:

<plugin>
          <groupId>net.ltgt.gwt.maven</groupId>
          <artifactId>gwt-maven-plugin</artifactId>
          <version>1.0-rc-10</version>
          <extensions>true</extensions>
          <configuration>
            <sourceLevel>1.8</sourceLevel>
            <failOnError>true</failOnError>
            <codeserverArgs>
              <codeserverArg>-port 9877</codeserverArg>
            </codeserverArgs>
          </configuration>
</plugin>

Error:


[INFO] --- gwt-maven-plugin:1.0-rc-10:codeserver (default-cli) @ zzzz ---
[WARNING] Unknown argument: -port 9877

By adding -X I see the argument is passed using "", maybe this is the problem:


[DEBUG] Arguments: com.google.gwt.dev.codeserver.CodeServer -workDir C:\XXXX\target\gwt\codeserver -sourceLevel 1.8 -failOnError -launcherDir  C:\XXXX\target\gwt\launcherDir "-port 9877"
....

OS: Windows 10.

tbroyer commented 5 years ago

maybe this is the problem

It is, but it is also working as intended: -port and 9877 are supposed to be 2 distinct arguments.

<codeserverArgs>
  <arg>-port</arg><arg>9877</arg>
</codeserverArgs>