You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Laird Nelson <lj...@gmail.com> on 2010/05/19 17:54:54 UTC

Maven filtering adding backslashes into Windows file paths?

I have an XML file that uses ${user.home} in an attribute.

When Maven filters this and expands it, it expands to:

C\:\Documents and Settings\...(and so on)

Note the backslash before the colon, which of course makes this an invalid
path on Windows.

How can I prevent Maven from doing this?

Best,
Laird

Re: Maven filtering adding backslashes into Windows file paths?

Posted by Laird Nelson <lj...@gmail.com>.
On Wed, May 19, 2010 at 12:47 PM, Jamie Whitehouse <
Jamie.Whitehouse@alcatel-lucent.com> wrote:

> I think you want to be using a maven-resources-plugin that's version
> 2.4.1 or greater, see MRESOURCES-100 and MRESOURCES-106.
>

Thank you; that did it.

Best,
Laird

RE: Maven filtering adding backslashes into Windows file paths?

Posted by Jamie Whitehouse <Ja...@alcatel-lucent.com>.
I think you want to be using a maven-resources-plugin that's version
2.4.1 or greater, see MRESOURCES-100 and MRESOURCES-106.

http://jira.codehaus.org/browse/MRESOURCES-100 
http://jira.codehaus.org/browse/MRESOURCES-106

> -----Original Message-----
> From: Laird Nelson [mailto:ljnelson@gmail.com] 
> Sent: Wednesday, May 19, 2010 11:55 AM
> To: Maven Users List
> Subject: Maven filtering adding backslashes into Windows file paths?
> 
> I have an XML file that uses ${user.home} in an attribute.
> 
> When Maven filters this and expands it, it expands to:
> 
> C\:\Documents and Settings\...(and so on)
> 
> Note the backslash before the colon, which of course makes 
> this an invalid path on Windows.
> 
> How can I prevent Maven from doing this?
> 
> Best,
> Laird
> 

					
-------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or its affiliated entities.
					

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