[ 
https://jira.codehaus.org/browse/MGWT-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280580#comment-280580
 ] 

Vincenzo Vitale commented on MGWT-222:
--------------------------------------

+1

a really simple use case could be an application version number in the ui pages 
and implementing a widget which call a remote service for that seems to me not 
correct.

I would like to just filter my html base pages for that.

> Maven resource filtering should work for resources used by the GWT plugin
> -------------------------------------------------------------------------
>
>                 Key: MGWT-222
>                 URL: https://jira.codehaus.org/browse/MGWT-222
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Geoffrey De Smet
>            Assignee: Olivier Lamy
>             Fix For: 2.1.0-1
>
>
> We have public interface BuildConstants extends ConstantsWithLookup
> which has a String projectVersion();
> The property file src/main/filtered-resources/.../BuildConstants.properties
> contains projectVersion=${pom.version}
> The pom.xml contains the necessary plumbing:
>   <build>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>       <resource>
>         <directory>src/main/filtered-resources</directory>
>         <filtering>true</filtering>
>       </resource>
>     </resources>
>   ...
> After I run "mvn clean install" the file 
> target.classes/.../BuildConstants.properties
> contains projectVersion=5.2.0-SNAPSHOT
> yes in the GWT application "mvn gwt:run" it still shows ${pom.version} 
> because the GWT compiler is run with src/main/resources instead of 
> target/classes apparently.
> Relates to MGWT-216.

--
This message is automatically generated by JIRA.
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