You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nodje <no...@gmail.com> on 2008/02/13 06:16:27 UTC

Maven Resources Plugin Windows path \\ parsing problem

I'm using Filters on Resources. 
Some variables are path to files and in some case these are Windows path
containing '\\' occurrences (as this is the way java.io.File recognize
Windows paths).
Resources plugin parses those and replace the ${} variables, but it
transforms '\\' into single '\'

I haven't found anything on the subject.
Has anyone encountered the same issue?

cheers,
--nodje
-- 
View this message in context: http://www.nabble.com/Maven-Resources-Plugin-Windows-path-%5C%5C-parsing-problem-tp15449734s177p15449734.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven Resources Plugin Windows path \\ parsing problem

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
This is standard java processing that is happening. \ is an escape char,
so to get "\" you need \\. If you want "\\" then you need \\\\.


-----Original Message-----
From: nodje [mailto:nodje.co@gmail.com] 
Sent: Tuesday, February 12, 2008 9:16 PM
To: users@maven.apache.org
Subject: Maven Resources Plugin Windows path \\ parsing problem


I'm using Filters on Resources. 
Some variables are path to files and in some case these are Windows path
containing '\\' occurrences (as this is the way java.io.File recognize
Windows paths).
Resources plugin parses those and replace the ${} variables, but it
transforms '\\' into single '\'

I haven't found anything on the subject.
Has anyone encountered the same issue?

cheers,
--nodje
-- 
View this message in context:
http://www.nabble.com/Maven-Resources-Plugin-Windows-path-%5C%5C-parsing
-problem-tp15449734s177p15449734.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org