Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 64491 invoked from network); 7 Jul 2007 10:58:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jul 2007 10:58:58 -0000 Received: (qmail 24294 invoked by uid 500); 7 Jul 2007 10:59:01 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 24164 invoked by uid 500); 7 Jul 2007 10:59:01 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 24155 invoked by uid 99); 7 Jul 2007 10:59:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2007 03:59:00 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of xavier.hanin@gmail.com designates 209.85.146.176 as permitted sender) Received: from [209.85.146.176] (HELO wa-out-1112.google.com) (209.85.146.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2007 03:58:56 -0700 Received: by wa-out-1112.google.com with SMTP id n4so1373775wag for ; Sat, 07 Jul 2007 03:58:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Y352jLELA+yQQz0tEaAmwKiNCxQne6cmaWlwOg6kSJg+syFp1p9Nr9Y/PE0DMxL+xE4C5OzxH5keE8BBgt8fPURCtAqsQE04NWV4Ze0wswa5aAwGJGwCSBDG7lFopXSIg3Ooa8uT53zy3sgKHmvJdTsHhCcq+0rkSpCQJtn+Vhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=CRhTpnxHYnhL/10zoGpKqym4cMFBDzZle2qyNo81y7T/QequTXPqSjalre7JEJnvFbvpQYLRKn9FTnnwxpfd3+bOOiohz4fQMNnkqPYsJiRJGVKmjbrL8rhTPWn9ushHarq07U9V3PNEJtTgjo+gfaQXpCrhOFR88SLsapelULA= Received: by 10.114.60.19 with SMTP id i19mr1435132waa.1183805916283; Sat, 07 Jul 2007 03:58:36 -0700 (PDT) Received: by 10.114.124.10 with HTTP; Sat, 7 Jul 2007 03:58:36 -0700 (PDT) Message-ID: <635a05060707070358y6603ec22g501532870cb4d9af@mail.gmail.com> Date: Sat, 7 Jul 2007 12:58:36 +0200 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: Re[3]: IvyDE 1.2.0/Eclipse 3.2.2: source attachments are working, Javadocs are not In-Reply-To: <1969906143.20070706180153@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_164617_29786760.1183805916238" References: <683554650.20070705135455@gmail.com> <635a05060707052314p5751c7bai84d4cfc34b6a607a@mail.gmail.com> <1902484152.20070706093248@gmail.com> <1969906143.20070706180153@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_164617_29786760.1183805916238 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/7/07, Dmitriy Korobskiy wrote: > > Hi, Xavier > > DK> Hi, Xavier > DK> Re: your e-mail from Friday, July 6, 2007 2:14 AM > > DK> Thanks a lot! I'll build the trunks specifically to try this fix. This > issue was > DK> holding our project from repackaging our repository. > > I tried this release today : > http://www.xoocode.org/downloads/tools/org.apache.ivyde.eclipse_1.3.0.20070706085200.jar Just to be accurate, this is not a release, but only a build I've made for my own use. This is NOT an Apache release. It saved me some time of not getting the trunk and building from source. > > The issue (IVYDE-55) is marked as fixed there. I did see the Javadoc > attachment > in my test case which was not attaching before, but now it is attaching > the wrong file - > the JAR itself, not .javadoc.zip. Source attachment (still) works as > expected. This is strange. I admit that I only tested with not declared source and javadoc (see below) I'm also curious about the related IVYDE-46 "Support javadoc and sources > even in > modules where they are not declared". I've read the issue but it does not > have > much detail. How does it work ? Does it mean that the artifact itself is > used as Javadoc > and source? No, I admit the issue is not clear, its purpose is to support maven 2 javadoc and sources. Indeed maven 2 poms do not contain any information about the availability or not of source and javadoc files. So we can't when we parse the pom declare source and javadoc artifacts, otherwise Ivy would raise an error if the artifacts are not present. To have an accurate module descriptor, we should test the availability of the javadoc and source artifacts when parsing the pom. This is not trivial, because Ivy module parser relise on the self containment of the module descriptor, which is not the case for maven poms. We will have to deal with that in Ivy, but as a fast way of making source and javadoc attachments working in IvyDE for maven poms, it's now IvyDE which checks if a javadoc or source artifact is present even if it isn't declare. But those artifacts have to follow maven convention. In your case maybe Ivy think it has found a javadoc file while it's actually the main artifact. I don't have much time now, maybe you can try to investigate a little bit yourself by building IvyDE from source and debugging your use case... You can also reopen IVYDE-55. And I'll try to find time for this next week. Xavier DK> I'm looking forward to have it in a release. > > >> On 7/5/07, Dmitriy Korobskiy wrote: > >>> > >>> Hi all, > >>> > >>> There were previous discussions on this list about source and Javadoc > >>> attachments. I was able to make source attachments work, using double > >>> extensions, but could not make Javadocs work. > >>> > >>> Here is the test case I have isolated: > >>> > >>> 1. IvyDE preferences: > >>> > >>> Accepted types = jar,zip > >>> Sources types = src > >>> Javadoc types = javadoc > >>> > >>> 2. Repository: > >>> > >>> \apache\commons-collections\commons- > >>> collections-3.2\commons-collections-3.2.jar > >>> \apache\commons-collections\commons- > >>> collections-3.2\commons-collections-3.2.javadoc.zip > >>> \apache\commons-collections\commons- > >>> collections-3.2\commons-collections-3.2.src.zip > >>> > >>> 3. Ivy file for Apache Commons 3.2: > >>> > >>> > >>> > >>> xsi:noNamespaceSchemaLocation=" > >>> ivy.xsd"> > >>> >>> status="release"/> > >>> > >>> > >>> > >>> > >>> > >>> conf="default,ide"/> > >>> >>> conf="ide"/> > >>> >>> conf="ide"/> > >>> > >>> > >>> > >>> 4. Project Ivy file (I have simplified it a bit for this test case by > >>> removing > >>> unnecessary parts): > >>> > >>> > >>> xsi:noNamespaceSchemaLocation=" > >>> http://incubator.apache.org/ivy/schemas/ivy.xsd"> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> >>> conf="ide"/> > >>> > >>> > >>> > >>> 5. Now, when I add Ivy library to a project, I have sources > successfully > >>> attached, > >>> but Javadocs are not. > >>> > >>> If anybody made it work (which was mentioned in some previous > threads), I > >>> wonder > >>> what setup worked for you and what is not working in the setup above. > > > >> Indeed, I've never had the javadoc working either; but didn't really > care, > >> since it only prevent from opening external javadoc when you have > source > >> attached. But I'm currently investigating on this issue and I think > I've > >> found the problem. I'll check in a fix in a moment, but it will only be > >> available on IvyDE trunk (which works with Ivy trunk). > > >> Xavier > > > > Dmitriy <1-127-441 @ICQ, DKroot @Skype> > @Yahoo> > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_164617_29786760.1183805916238--