ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] Resolved: (IVYDE-49) Improve the logic of determining docs&sources artifact
Date Fri, 23 May 2008 22:17:55 GMT

     [ https://issues.apache.org/jira/browse/IVYDE-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nicolas Lalevée resolved IVYDE-49.
----------------------------------

    Resolution: Duplicate

Stanislav, if IVYDE-66 doesn't fill your need, please reopen.

> Improve the logic of determining docs&sources artifact
> ------------------------------------------------------
>
>                 Key: IVYDE-49
>                 URL: https://issues.apache.org/jira/browse/IVYDE-49
>             Project: IvyDE
>          Issue Type: Improvement
>          Components: classpath container
>            Reporter: Stanislav Tsybyshev
>
> 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();)
>             {
>                 Artifact a = (Artifact)iter.next();
>                 if(a.getName().equals(artifact.getName()) && ..... <other
conditions>
>                     return _ivy.getArchiveFileInCache(_ivy.getDefaultCache(), a);
>             }
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message