commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@apache.org>
Subject Re: [VFS] bug ?
Date Fri, 19 Aug 2005 13:11:41 GMT

>>> fsm.setBaseFile( new File( System.getProperty( "user.dir" ) ) );
>
> well, it's somewhat obvious :

yepp - but to me the other way around ;)

> when you load an HTML document from a web server, you have :
> http://www.acme.com/path/to/document.html
> if the document contain :
> <img src="picture.jpg"/>
> <link rel="stylesheet" href="style.css">
> both will be resolved according to the document location :
> http://www.acme.com/path/to/picture.jpg
> http://www.acme.com/path/to/style.css
>
> i think there are many other examples where FILES are referencing  
> resources they are using

IMHO this would only apply if you were
setting a base URI on the fsm.
Matter of fact you are setting a File
object.

But anyway ...would probably nice to
add a directory check on setBaseFile.
...using the parent if it's a file.

cheers
--
Torsten



Mime
View raw message