Jilali Raki created MGWT-329:
--------------------------------

             Summary: Maps in properties file not correctly handled by gwt:18n 
goal
                 Key: MGWT-329
                 URL: https://jira.codehaus.org/browse/MGWT-329
             Project: Maven 2.x GWT Plugin
          Issue Type: Bug
    Affects Versions: 2.4.0
            Reporter: Jilali Raki


Hi

I'm using gwt maven plugin in my projet and I have a problem to create the maps 
from my Constant bundle when executiing 'mvn gwt:i18n'.

For example in my bundle 'Example.properties' I have:
a = X
b = Y
c = Z
someMap = a, b, c

In pom.xml file I have:
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>gwt-maven-plugin</artifactId>
                        <configuration>
                                
<i18nConstantsBundle>com.publigroupe.ueonlineform.web.client.i18n.Example</i18nConstantsBundle>
                        </configuration>
                        <executions>
                                <execution>
                                        <goals>
                                                <goal>i18n</goal>
                                        </goals>
                                </execution>
                        </executions>
                </plugin>

After executing the plugin with 'mvn gwt:i18n', I got the following java 
interface:
package com.publigroupe.ueonlineform.web.client.i18n;

/**
 * Interface to represent the constants contained in resource bundle:
 *      
'D:/projects/ueditoronline-2012/ueonline-forms/src/main/resources/com/publigroupe/ueonlineform/web/client/i18n/Example.properties'.
 */
public interface Example extends com.google.gwt.i18n.client.Constants {
  
  /**
   * Translated "X".
   * 
   * @return translated "X"
   */
  @DefaultStringValue("X")
  @Key("a")
  String a();

  /**
   * Translated "Y".
   * 
   * @return translated "Y"
   */
  @DefaultStringValue("Y")
  @Key("b")
  String b();

  /**
   * Translated "Z".
   * 
   * @return translated "Z"
   */
  @DefaultStringValue("Z")
  @Key("c")
  String c();

  /**
   * Translated "a, b, c".
   * 
   * @return translated "a, b, c"
   */
  @DefaultStringValue("a, b, c")
  @Key("someMap")
  String someMap();
}
Here instead of having a Map type I got a String type for the method someMap().
Is this a bug? Can I have your help please?  Many thanks in advance.

Jilali

Best Regards

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to