maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Hennessy <shenne...@astutenetworks.com>
Subject RE: Properties: backslashes in pathname on Windows
Date Fri, 24 Apr 2009 15:20:48 GMT
 ant's ${file.separator} ??

-----Original Message-----
From: stug23 [mailto:pat.podenski@gmail.com]
Sent: Thursday, April 23, 2009 8:56 PM
To: users@maven.apache.org
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: 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


Mime
View raw message