gwt-maven-plugin/gwt-maven-plugin — Issue #28: Maven MOJO "generateAsync" does not handle java constant values in Annotation Processing
Author: lmeckes
Created: 2012-02-22 10:11:49+00:00
State: open

Current implementation expects raw String value in RemoteServiceRelativePath annotation.

Works for :
@RemoteServiceRelativePath("testService.rpc")
public interface TestService extends RemoteService {
[...]

Does not work for:
@RemoteServiceRelativePath(TestService.URL)
public interface TestService extends RemoteService {
public static final String URL = "testservice.rpc";
[...]

Related Source Code (GenerateAsyncMojo.java:317):

// remove quotes
uri = uri.substring( 1, uri.length() - 1 );
getLog().debug( "@RemoteServiceRelativePath annotation found on service interface " + uri );