Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate rpc and i18nMessage classes using your plugin? #119

Closed
kissenlall opened this issue Nov 2, 2018 · 3 comments
Closed

How to generate rpc and i18nMessage classes using your plugin? #119

kissenlall opened this issue Nov 2, 2018 · 3 comments
Labels
question Further information is requested

Comments

@kissenlall
Copy link

No description provided.

@ibaca
Copy link
Contributor

ibaca commented Nov 2, 2018

Just use the old plugin to generate I18nMessage, there isn't any downside with this approach. To generate RPC async interfaces you can use the old plugin or https://github.com/intendia-oss/autorpc-gwt, this second option uses APT to generate async interfaces.

@tbroyer tbroyer added the question Further information is requested label Nov 2, 2018
@tbroyer
Copy link
Owner

tbroyer commented Nov 2, 2018

Or you can use the exec-maven-plugin

Those tools are good for one-shot use, to initialize code, but they're not flexible enough for automated use (IMO): you can't decide whether your RPC async interface methods should return a Request or even RequestBuilder; you cannot tell which type your I18N constants should be, or the type of your I18N message arguments, or whether your messages should be String or SafeHtml.

Generating RPC synchronous interfaces from asynchronous ones would be better (but then how about the @RemoteServiceRelativePath or @RpcTokenImplementation annotations?), and similarly properties files should be generated from interfaces rather than the other way around.

See also #18

@tbroyer tbroyer closed this as completed Nov 2, 2018
@donatelloOo
Copy link

That should be clearly stated in the documentation !
This is a very common usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants