[
http://jira.codehaus.org/browse/MGWT-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Peter updated MGWT-216:
--------------------------------
Comment: was deleted
(was: I don't see why we should open a new task for this and why it was closed
in the first place. It is not fixed in 2.1.0-1 or 2.2.0 from my experience.
Following command is executed:
/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
)
> Resource Filtering, does not filter all copy's of the resources.
> ----------------------------------------------------------------
>
> Key: MGWT-216
> URL: http://jira.codehaus.org/browse/MGWT-216
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Andrew Hughes
> Assignee: Olivier Lamy
> Fix For: 2.1.0-1
>
>
> h1. About
> When applying maven resource filtering
> (http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html)
> only partial support is encountered.
> h1. Example:
> My 'com.acme.gwtproject.GwtProject' uses the standard gwt-maven directory
> layout, consequently my html is located at...
> ./src/main/resources/com/acme/gwtproject/public/GwtProject.html
> If GwtProject.html contains a token say ${project.version} I want to see this
> in the released artifacts, released sources artifacts and in dev mode. But
> the build lifecycle only seems to filter/replace one copy of the file, that
> strangely end's up @ ./war/WEB-INF/classes/GwtProject.html <--- weird
> location!
> NOTE: I don't believe that this has anything todo with the bug, but my
> project is <packaging>jar</packaging>
> h1. Reproduce
> To reproduce this, and the following to a pom.
> {noformat}
> <build>
> ...
> <resources>
> <resource>
> <directory>src/main/java</directory>
> </resource>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
> ...
> <build>
> {noformat}
> Then add a token to your project's html file...
> ${project.version}
> Try 'gwt:run', look at the html source and see it has not been filtered.
> Also try 'install' to build the war/jar and take a look at it's contents, the
> html file would not have been filtered within these artifacts.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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