maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alix Lourme (JIRA)" <>
Subject [jira] Commented: (MASSEMBLY-546) Cannot supply escapeString for filtering
Date Thu, 31 Mar 2011 14:10:22 GMT


Alix Lourme commented on MASSEMBLY-546:

Is it possible not have any escape character (escapeString = _blank_) ?

Because if the plugin is used to valorize some login/password, the default escape (backslashe)
is contraignant.

+Exemple+ : 
With a _filter_ containing : 
my.password1 = @^\u5
my.password2 = simple\password

And a file _myConfig.xxx_ : 
The password1 is ${my.password1}
The password2 is ${my.password2}

The backslashe is interpreted and must be doubled.

In the exemple, we have a 
* Case 1 : IllegalArgumentException: Malformed \uxxxx encoding.
* Case 2 : (without UTF-8 character), the \ disappears ... result is _simplepassword_

Understand the escape mecanism is not easy in key/value definition.

> Cannot supply escapeString for filtering
> ----------------------------------------
>                 Key: MASSEMBLY-546
>                 URL:
>             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:
For more information on JIRA, see:


View raw message