Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Now IvyDE automatically attaches javadoc and sources to artifact if they have the same name.
That's because IvyClasspathContainer.getSourcesArtifact and IvyClasspathContainer.getJavadocArtifact both use the same logic:
for(Iterator iter = all.iterator(); iter.hasNext()
In absence of any other means to set relationship between artifacts in Ivy repository file, I suggest to slightly modify this logic to smth like this:
if( (a.getName().equals(artifact.getName() ) || (a.getName.startsWith(artifact.getName) && a.getName().endsWith(a.getType())) )
In other words:
Artifact is considered a javadoc/source for a given jar-artifact, if it starts with the jar name and ends on "doc", or "source".
It seems rather simple and selective criteria and conforms to the way most javadoc/source archives are currently named.
Attachments
Issue Links
- duplicates
-
IVYDE-66 Recognize more source and javadoc artifacts names
- Resolved