Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] [GSOC 2013] LiveDoc Weekly Report

Hi Patrick,

> However, for instantiating, i need a file with models, obtained by the
> repo http://download.eclipse.org/recommenders/models/kepler/ (<--
> default case)
> 
> I can't download this file with aether (since aether requires a
> groupID:artifactID identifier, which I haven't at this point), so how
> can I get this file?

OK, what you know is the GAV (groupId, artifactId, version in
Maven-speak) of the artifact you are generating Javadoc for.

Now, your question is essentially how to get from a ProjectCoordinate
(our version of a GAV) to a ModelArchiveCoordinate (GAV + classifier +
extension, e.g., "call.zip"). The tricky step here is that the version
may change, as we don't mine models for org.group:artifact:1.4.2, but
for org.group:artifact:1.x. The AetherModelArchive should give you a
findBestMatchingModel method (or similar; Marcel is currently
refactoring) that finds the model archive that is closest to the version
you have at hand.

Hope that makes sense.

Andreas
-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top