[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Inconsistent behaviour between artifact and metadata factories

Hi,

I've done some work adding support for caching artifact repositories ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=274272 ) and discovered that there is inconsistent behaviour between how artifact & metadata factories handle the addresses passed to them.

If the SimpleArtifactRepositoryFactory is provided http://example.org/artifacts.xml it will look for repositories at:
http://example.org/artifacts.xml/artifacts.jar
http://example.org/artifacts.xml


However if the SimpleMetadataRepositoryFactory is provided http://example.org/content.xml it will look for repositories at:
http://example.org/content.xml/content.jar
http://example.org/content.xml/content.xml


As the URIs are created within the CacheManager I'd like to switch the behaviour in the artifact repository factories to avoid adding an alternate path to CacheManager. Would anyone have a problem with this change?

Matthew