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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to