|
From: Darren D. <da...@da...> - 2005-02-23 09:09:55
|
On Wed, 2005-02-23 at 07:52 +0000, Darren Davison wrote:
> On Tue, 2005-02-22 at 16:39 -0800, Darren Davison wrote:
> > [/home/users/d/da/davison/checkouts/spring/home/users/d/da/davison/chec=
kouts/spring/target/sparc-solaris1/test-classes/org/springframework/util/te=
stlog4j.properties]
>=20
> obviously some problem with absolute/relative path names in here - this
> will presumably fail on all of the build machines. I haven't looked at
> it - is the problem specific to Unix or does it fail the same way on
> 'Doze?
I don't see how FileSystemResourceLoader can ever return an absolute
file path (at least on unix filesystems) as required by the
testInitLoggingWithAbsoluteFilePathAndRefreshInterval test since it
deliberately strips a leading / thereby always making the path relative.
protected Resource getResourceByPath(String path) {
if (path !=3D null && path.startsWith("/")) {
path =3D path.substring(1);
}
return new FileSystemResource(path);
}
Am I missing something?
--=20
Darren Davison
Public Key: #DD356B0D
|