ant's ${file.separator} ??

-----Original Message-----
From: stug23 [mailto:[email protected]]
Sent: Thursday, April 23, 2009 8:56 PM
To: [email protected]
Subject: Properties: backslashes in pathname on Windows



Is there a way in Maven 2.0.9 to end up with forward slashes in a 
file/directory pathname on the Windows platform when filtering a property such 
as ${project.parent.basedir}?

I need to supply a file URL for a Hibernate URL specified in a persistence.xml 
configuraton file. The following property statement from a persistence.xml file 
gets filtered as a resource file from src/test/resources into the test-classes 
directory under target.

However on Windows the pathname ends up including backslashes which don't play 
well with Hibernate. The JPA hibernate entity manager cannot resolve a URL with 
backslashes in it.

The XML element in questions looks more or less like this:

<property name="hibernate.connection.url" 
value="jdbc:hsqldb:file:///${project.parent.basedir}/target/hsql/testdb"/>

Suggestions on how to accomplish this would be appreciated.

TIA!

--
View this message in context: 
http://www.nabble.com/Properties%3A-backslashes-in-pathname-on-Windows-tp23209361p23209361.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to