Ferguson, Doug wrote:

I built the repository code using Maven and got the class files that I
needed to test the repository.
Although maven failed on the avalong::activation target. Where can I find a
plugin that provides that?


On the presumption that you meant avalon:artifact - this is automatically installed if you have build the avalon/util package from CVS. If not you can add the plugin manually. The avalon-plugin-1.0.jar is available here:


http://www.dpml.net/avalon-util/plugins/


I was testing out the repository code for my purposes and it seems to work
good. But once it downloaded a file it always uses the cached version.
From the code it seemed like it was suppose to download it from the host
again if there was a newer file there.
Is there a limited amount of support for that HTTP header? And/or does it
have limited scope in the timing?



The handling of file and http repositories is somewhat different due to differences in the precision of last modification dates returned from the respective input streams. In the case of file repositories if the repository returns a more recent version then this is returned and the search is concidered as resolved. In the case of a HTTP repository the evaluation of last modification only occurs if a cached value exists, and the requested version ends with "SNAPSHOT". In this case, if the repository has a more recent version the the resource is cached and the search stops.


Also, if it is truely search for the newest deployment, why would it stop
after find the first server?



Mainly because this is a very expensive operation in terms of time consumed doing modification date checks. What the repo package is concerned about is maintaining a local cache relative to a set of remote repositories where the prioncipal of multiple remotes is simply to provide redundancy during the lookup process.


Stephen.


-----Original Message----- From: Ferguson, Doug [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 3:34 PM To: 'Avalon framework users' Subject: Repository


I am investigating the posibility of using the avalon repository from the java api.

My plan was to construct CacheManager and work from there. However I can't seem to find a jar with CacheManager in it.

d./

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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to