Hi... again. Sorry. You must be getting sick and tired of me. :-)

I tried changing the cache to NullFilesCache like below:

  DefaultFileSystemManager mgr = new DefaultFileSystemManager();
  mgr.addProvider("res", new ResourceFileProvider());
  mgr.addProvider("ftp", new FtpFileProvider());
  mgr.addProvider("http", new HttpFileProvider());
  mgr.setFilesCache(new NullFilesCache());
  mgr.setCacheStrategy(CacheStrategy.ON_CALL);
  mgr.init();

but the DefaultFileMonitor reports a change in the file even if no
change has happened. (not all the time though)

So I obviously still need a cache of some type (the DefaultFilesCache
may be the best) but I need to know when the file has been changed too.

I'm not sure what to do from here. Maybe I'll test the other file caches
to see what happens.

All the best,
Tony

-----Original Message-----
From: Tony Cooke [mailto:[EMAIL PROTECTED] 
Sent: Friday, 7 July 2006 9:44 AM
To: Jakarta Commons Users List
Subject: RE: [commons vfs] ftp DefaultFileMonitor issue

Hi again.

I'm at work now and HTTP doesn't work so I'm guessing it is a proxy
issue. (I'm pretty sure actually)

How can I set up commons-vfs (specifically HTTP) to use a proxy AND
authenticate to the site (which is password protected)?

I ask because I cannot see an example. Sorry.

All the best,
Tony

-----Original Message-----
From: Tony Cooke [mailto:[EMAIL PROTECTED] 
Sent: Friday, 7 July 2006 12:01 AM
To: Jakarta Commons Users List
Subject: RE: [commons vfs] ftp DefaultFileMonitor issue

Just to back this up, I've got HTTP working (from home, I think the
proxy server at work stops this though) but the ftp still doesn't work
(at home or at work).

All the best,
Tony


---------------------------------------------------------------------
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