You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2005/11/01 15:49:47 UTC

[jira] Updated: (MNG-791) Add resource filtering to war plugin

     [ http://jira.codehaus.org/browse/MNG-791?page=all ]

Mark Hobson updated MNG-791:
----------------------------

    Attachment: test.zip

As a workaround to this issue, you can use a project structure like the one attached.  It basically splits webapp resources off into filtered and unfiltered ones - leaving the war plugin to copy the unfiltered resources, and using the resources plugin to copy the filtered resources with a cunning "../finalName" path.  This obviously relies on a standard maven project structure.

It also works if you want to profile-off your filters for different target environments.

> Add resource filtering to war plugin
> ------------------------------------
>
>          Key: MNG-791
>          URL: http://jira.codehaus.org/browse/MNG-791
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-war-plugin
>     Versions: 2.0-beta-1
>     Reporter: Mark Hobson
>     Assignee: Brett Porter
>      Fix For: 2.0.1
>  Attachments: test.zip
>
> Original Estimate: 15 minutes
>         Remaining: 15 minutes
>
> I'd like to patch the war plugin to perform resource filtering as per the resources plugin.  This is a trivial patch but would duplicate the following code from the resources plugin:
> PropertyUtils
> ReflectionProperties
> ResourcesMojo.copyFile(File, File)
> These look like handy util methods that could be incorporated into plexus-utils - what do the developers think?
> Also not sure how resource filtering will be affected by MNG-788.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org