Cedric, I assume you have this bundle already used in another app and you want to reuse it in you new GWT app, right ?
In this case, you could simply insert in your build process : * an ANT task to copy this file (and all its localized versions) from your first project to your GWT project (on build) * another ANT task to remove this file from your GWT project (on clean) Thomas On Fri, 5 Feb 2010 08:54:09 +0100, nicolas de loof <nicolas.del...@gmail.com> wrote: > It may have nothing to do, but GWT is not designed to accept any JAR as a > valid GWT library. > Your core JAR will still work the same way in JVM with some java files and > a > .gwt.xml as resources ! > > it is simple to make a JAR GWT compliant, this doesn't mean any jar can be > used as is inside GWT. The plugin goal is not to hack GWT and let it > support > a development process that the standard SDK would not. > > 2010/2/4 Cédric Thiébault <cedric.thieba...@gmail.com> > >> I cannot do that because my core module is not depending on GWT. It >> contains only models and services and has nothing to do with GWT. >> But this module contains the i18n messages I also want to use from GWT... >> >> Cedric >> >> >> On Thu, Feb 4, 2010 at 3:57 PM, nicolas de loof >> <nicolas.del...@gmail.com>wrote: >> >>> define a gwt.xml module file in your core project and use the >>> gwt-maven-plugin to genrate code inside this module, not outside. >>> >>> Then, from other modules inherit from core.gwt.xml >>> >>> 2010/2/4 Cédric Thiébault <cedric.thieba...@gmail.com> >>> >>> Hi, >>>> >>>> I'm using gwt-maven-plugin to generate my Message interface (using >>>> gwt:i18n). >>>> My properties file is located in the "core" module of a multi-module >>>> project: >>>> . >>>> |-- core >>>> | `-- src/main/resources/Labels.properties >>>> | `-- pom.xml >>>> |-- gwt >>>> | `-- pom.xml >>>> `-- parent >>>> `-- pom.xml >>>> >>>> The gwt module depends on the core module. >>>> >>>> Here is my configuration in the "gwt" module: >>>> <plugin> >>>> <groupId>org.codehaus.mojo</groupId> >>>> <artifactId>gwt-maven-plugin</artifactId> >>>> [...] >>>> <configuration> >>>> <i18nMessagesBundle>Labels</i18nMessagesBundle> >>>> </configuration> >>>> </plugin> >>>> >>>> When I execute gwt:i18n, I have the following error: "Properties file >>>> not >>>> found". >>>> This is because the properties file is not in the current module but in >>>> an imported jar (core.jar from core module). >>>> >>>> Is there a way to generate Message interfaces with gwt:i18n using a >>>> properties file defined in an other module? >>>> >>>> Thanks for your help. >>>> >>>> Cedric >>>> >>> >>> >> --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email