From: Botelho, M. <Mau...@tu...> - 2003-08-01 14:03:03
|
Looking at the code trying to figure out what I did wrong I noticed that the artifact is being responsible for generating the URL based on checking the type of repository it is being passed in. I think that a better design would be to let the repository define the URL. This would make the system more flexible, now adding a new repository would require somebody to change the Artifact classes. I understand that this could be due to the intention of grabbing things other than Jar files, but in the case of, say Javadoc, we'd probably need another repository type, since you'd need to download a whole web, and not just 1 or 2 files. Mauro |