You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Ferstl (JIRA)" <ji...@codehaus.org> on 2011/05/10 16:20:22 UTC

[jira] Commented: (MASSEMBLY-546) Cannot supply escapeString for filtering

    [ http://jira.codehaus.org/browse/MASSEMBLY-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266194#action_266194 ] 

Stefan Ferstl commented on MASSEMBLY-546:
-----------------------------------------

The same happens when using a properties file for filtering, for example:

*filter.properties*:
{code}
my.property=${user.home}/somedir
{code}

*plugin config*:
{code}
<plugin>
  <artifactId>maven-assembly-plugin</artifactId>
  <configuration>
    <appendAssemblyId>true</appendAssemblyId>
    <descriptors>
      <descriptor>my-descriptor.xml</descriptor>
    </descriptors>
    <filters>
      <filter>${project.build.directory}/assembly/filter.properties</filter>
    </filters>
  </configuration>
  ...
</plugin>
}
{code}

*resource file*:
{code}
test=${my.property}
{code}

The resource file in the assembly results in:
{code}
test=C:\Documents and Settings\.../somedir
{code}

instead of

{code}
test=${user.home}/somedir
{code}

The filter.properties file itself does not get filtered. Only the resource file does. It would be great to have the ability to exclude some variables from filtering.


> Cannot supply escapeString for filtering
> ----------------------------------------
>
>                 Key: MASSEMBLY-546
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-546
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2-beta-5
>            Reporter: Michael Osipov
>
> I have some txt files filtered in my assembly with <filtered>true</true>. I'd like also some properties tom remain as is and escape filtering. There is no option to. In the resources plugin I can set the filter delims + the escape string. Something like this is necessary for this plugin too.

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