gwt-gradle-plugin
gwt-gradle-plugin copied to clipboard
how to generate i18n
hey @jiakuan,
Thanks for maintaining this plugin. Do you know if there is an easy way to generate the i18n files?
Thanks
Hi @dbaq I didn't use this kind of generating tools before. Could you please explain more how should it work? Perhaps we could add the feature in this plugin, so that it can do it automatically?
Just found this link has more information: https://github.com/steffenschaefer/gwt-gradle-plugin/issues/105
I see. It creates I18N interfaces for constants and messages files, which should be very helpful.
https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/i18n.html http://www.gwtproject.org/doc/latest/RefCommandLineTools.html#i18nCreator
Should be not hard to add to this plugin, as GWT already has the command line tool. Also we may be able to refer the code in gwt-maven-plugin. Any pull requests are welcome. Will have a look when I have a chance too.
Somewhat related to this, somewhat off topic, but maybe someone can answer this question: Is there a way to have the GWT-Compiler read the results of a property file, which was processed by Gradle in the processResources task ? Instead of processing the source property file?
We are trying to produce a version info in each build, where the build version is a Gradle property allowing Gradles processResources task to do a replacement of "${version}" variable. This is ignored by GWT-Compiler.
This plugin provides gwtCompile task to actually compile GWT code. So I think the direction would be to check if you can configure in Gradle so that gwtCompile task can depend on processResources or at least run after processResources.
Hello all, is i18n included now as generate Async interface (https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/async.html)?
We are migrating from maven to gradle and we are missing those two "tasks". I was searching on internet and couldn't find solution for gradle. Tnx