Mojo's GWT Maven Plugin
  1. Mojo's GWT Maven Plugin
  2. MGWT-285

Filtered resource files are not used to create generated sources

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0-1, 2.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Hello,

      when I use filtered resources for messages or constant files in my maven gwt project it seems like the original source .properties files are used instead of the filtered ones from the target directory.

      As far as I can see it, I have the same problem as MGWT-216 which seems to be closed. But it does not work for me in 2.1.0-1 or 2.2.0.

      Example:

      Following command is executed by the maven gwt plugin:

      /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin/java -Xmx512m -classpath PROJECTPATH/src/main/java:PROJECTPATH/src/main/resources:PROJECTPATH/target/admingui/WEB-INF/classes:HOME/.m2/repository/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar:HOME/.m2/repository/com/google/gwt/inject/gin/1.0/gin-1.0.jar:HOME/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar:HOME/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:HOME/.m2/repository/com/google/code/gwt-log/gwt-log/3.0.2/gwt-log-3.0.2.jar:HOME/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar:HOME/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:HOME/.m2/repository/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar:HOME/.m2/repository/com/google/gwt/gwt-dev/2.1.1/gwt-dev-2.1.1.jar com.google.gwt.i18n.tools.I18NSync -out PROJECTPATH/target/generated-sources/gwt namespace.client.constants.Version

      What works is the following, without PROJECTPATH/src/main/resources maybe it even should be without PROJECTPATH/src/main/java:

      /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin/java -Xmx512m -classpath PROJECTPATH/src/main/java:PROJECTPATH/target/admingui/WEB-INF/classes:HOME/.m2/repository/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar:HOME/.m2/repository/com/google/gwt/inject/gin/1.0/gin-1.0.jar:HOME/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar:HOME/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:HOME/.m2/repository/com/google/code/gwt-log/gwt-log/3.0.2/gwt-log-3.0.2.jar:HOME/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar:HOME/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:HOME/.m2/repository/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar:HOME/.m2/repository/com/google/gwt/gwt-dev/2.1.1/gwt-dev-2.1.1.jar com.google.gwt.i18n.tools.I18NSync -out PROJECTPATH/target/generated-sources/gwt namespace.client.constants.Version

      Looking at the plugin source it seems the whole compile classpath is used to build the messages files, maybe a different classpath should be used here. I fear I don't have enough knowledge to make those changes myself but I guess shell/I18NMojo.java and AbstractGwtMojo.java maybe with SCOPEs are involved.

        Activity

        jieryn made changes -
        Field Original Value New Value
        Attachment MGWT-285.zip [ 54776 ]
        Thomas Broyer made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Benjamin Peter
          • Votes:
            12 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: