[ 
http://jira.codehaus.org/browse/MEAR-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116366
 ] 

Ian Springer commented on MEAR-43:
----------------------------------

Here's an example:

1) In your pom, add:

   <resources>
      [...]
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
      [...]
    </resources>

2) Put your application.xml in src/main/resources/ (use ${foo} for a property 
named foo that you want the resources plugin to expand)

So, it's pretty much the same way you'd do it for a package=jar project.


> add ability to do filtering (i.e. template var replacement) for files in 
> src/main/application/
> ----------------------------------------------------------------------------------------------
>
>                 Key: MEAR-43
>                 URL: http://jira.codehaus.org/browse/MEAR-43
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: Ian Springer
>            Assignee: Stephane Nicoll
>            Priority: Minor
>             Fix For: 2.3.2
>
>
> I need to do some template var replacements in files in 
> src/main/application/. It would be great if the ear plugin could provide a 
> filtering configuration in a similar manner to the war plugin. That is, 
> something along the lines of:
> <configuration>
>   ...
>   <!-- enable filtering -->
>   <filtering>true</filtering>
> </configuration>

-- 
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

        

Reply via email to