Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 51110 invoked from network); 26 Mar 2008 09:27:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 09:27:42 -0000 Received: (qmail 89583 invoked by uid 500); 26 Mar 2008 09:27:41 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 89563 invoked by uid 500); 26 Mar 2008 09:27:41 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 89554 invoked by uid 99); 26 Mar 2008 09:27:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 02:27:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 09:26:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C7C5234C0AB for ; Wed, 26 Mar 2008 02:25:24 -0700 (PDT) Message-ID: <1215734216.1206523524233.JavaMail.jira@brutus> Date: Wed, 26 Mar 2008 02:25:24 -0700 (PDT) From: =?utf-8?Q?Nicolas_Lalev=C3=A9e_=28JIRA=29?= To: notifications@ant.apache.org Subject: [jira] Commented: (IVYDE-49) Improve the logic of determining docs&sources artifact MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-49?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D125821= 95#action_12582195 ]=20 Nicolas Lalev=C3=A9e commented on IVYDE-49: -------------------------------------- With IVYDE-66, you can choose on which suffix IvyDE will match. Does it mat= ch your use case ? > 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 IvyClasspathC= ontainer.getJavadocArtifact both use the same logic: > for(Iterator iter =3D all.iterator(); iter.hasNext();) > { > Artifact a =3D (Artifact)iter.next(); > if(a.getName().equals(artifact.getName()) && ..... > return _ivy.getArchiveFileInCache(_ivy.getDefaultCach= e(), a); > } > In absence of any other means to set relationship between artifacts in Iv= y repository file, I suggest to slightly modify this logic to smth like thi= s: > if( (a.getName().equals(artifact.getName() ) || (a.getName.startsWith= (artifact.getName) && a.getName().endsWith(a.getType())) )=20 > 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 mos= t javadoc/source archives are currently named. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.