[ 
https://issues.apache.org/jira/browse/MRESOURCES-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684968#comment-15684968
 ] 

Hudson commented on MRESOURCES-230:
-----------------------------------

FAILURE: Integrated in Jenkins build maven-shared Jigsaw #4 (See 
[https://builds.apache.org/job/maven-shared%20Jigsaw/4/])
[MSHARED-599] Escaping the escape string produces incorrect output.

o Updated to correctly suppress exceptions when closing resources.
o Updated to add tests for MSHARED-599.

-- dIESE und die folgenden Zeilen werden ignoriert --

M    src/main/java/org/apache/maven/shared/filtering/DefaultMavenFileFilter.java
M    src/main/java/org/apache/maven/shared/filtering/PropertyUtils.java
M    
src/test/java/org/apache/maven/shared/filtering/AbstractInterpolatorFilterReaderLineEndingTest.java
M    
src/test/java/org/apache/maven/shared/filtering/DefaultMavenResourcesFilteringTest.java
M    src/test/java/org/apache/maven/shared/filtering/EscapeStringTest.java
M    
src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java
M    
src/test/java/org/apache/maven/shared/filtering/MuliLinesMavenResourcesFilteringTest.java
A    src/test/units-files/MRESOURCES-230
AM   src/test/units-files/MRESOURCES-230/expected.txt
AM   src/test/units-files/MRESOURCES-230/resource.txt (schulte: 
[http://svn.apache.org/viewvc/?view=rev&rev=1770766])
* (edit) 
maven-filtering/src/main/java/org/apache/maven/shared/filtering/DefaultMavenFileFilter.java
* (edit) 
maven-filtering/src/main/java/org/apache/maven/shared/filtering/PropertyUtils.java
* (edit) 
maven-filtering/src/test/java/org/apache/maven/shared/filtering/AbstractInterpolatorFilterReaderLineEndingTest.java
* (edit) 
maven-filtering/src/test/java/org/apache/maven/shared/filtering/DefaultMavenResourcesFilteringTest.java
* (edit) 
maven-filtering/src/test/java/org/apache/maven/shared/filtering/EscapeStringTest.java
* (edit) 
maven-filtering/src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java
* (edit) 
maven-filtering/src/test/java/org/apache/maven/shared/filtering/MuliLinesMavenResourcesFilteringTest.java
* (add) maven-filtering/src/test/units-files/MRESOURCES-230
* (add) maven-filtering/src/test/units-files/MRESOURCES-230/expected.txt
* (add) maven-filtering/src/test/units-files/MRESOURCES-230/resource.txt


> Can't escape the escape string
> ------------------------------
>
>                 Key: MRESOURCES-230
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-230
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: escape string
>    Affects Versions: 3.0.1
>            Reporter: Thomas Mortagne
>            Assignee: Christian Schulte
>             Fix For: 3.0.2
>
>
> I have the following use case in a XML file:
> {code:xml}
>     <variable name="xwikiDataDir" 
> value="%APPDATA%\XWiki\${project.version}\data" 
> condition="windowsSevenAndGreater"/>
> {code}
> Before 3.0 it used to produce
> {code:xml}
>     <variable name="xwikiDataDir" value="%APPDATA%\XWiki\8.2\data" 
> condition="windowsSevenAndGreater"/>
> {code}
> \ is now the default escape character, I'm fine with that but then it should 
> be possible to escape the escape string which is buggy right now.
> The following source
> {code:xml}
>     <variable name="xwikiDataDir" 
> value="%APPDATA%\XWiki\\${project.version}\data" 
> condition="windowsSevenAndGreater"/>
> {code}
> gives me
> {code:xml}
>     <variable name="xwikiDataDir" value="%APPDATA%\\XWiki\8.2\data" 
> condition="windowsSevenAndGreater"/>
> {code}
> Notice the still doubled \. The first one should be removed from the result.
> I tried escapeWindowsPaths bu it does not seems to be matching my string as a 
> Windows path which is probably another bug.
> Since I can't find any way to disable escaping (see MRESOURCES-231),
> I ended up finding a character I don't have in my file and set it as 
> escapeString.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to