Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A8709A94 for ; Fri, 24 Feb 2012 21:51:35 +0000 (UTC) Received: (qmail 99217 invoked by uid 500); 24 Feb 2012 21:51:35 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 99052 invoked by uid 500); 24 Feb 2012 21:51:34 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Delivered-To: moderator for ivy-user@ant.apache.org Received: (qmail 31116 invoked by uid 99); 24 Feb 2012 21:31:10 -0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FROM_12LTRDOM,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received-SPF: pass (google.com: domain of alan@mechnicality.com designates 10.68.204.106 as permitted sender) client-ip=10.68.204.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of alan@mechnicality.com designates 10.68.204.106 as permitted sender) smtp.mail=alan@mechnicality.com Message-ID: <4F480174.2030705@mechnicality.com> Date: Fri, 24 Feb 2012 13:30:28 -0800 From: Alan Chaney User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: "'ivy-user@ant.apache.org'" Subject: Ivyde, ivy-roundup and 'source' Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQm1T8XjrmSUapyLwV7J5xir7GEmYid+Qttcu5i6LdNxe0EFd+7QS42otUqjNysUfhlAjuOI Hi Everybody For a long while I've been rather frustrated with the "the jar of this class file belongs to ivy.xml" message that pops up in eclipse with certain projects. I searched for other messages on this subject but found nothing conclusive. I'm using eclipse indigo and helios, both with ivy 2.2 and ivyde 2.1. Generally, it works really well, but I've been hitting the above problem, so I had a look into it and found the following: 1. The files that were giving a problem where ones with the following in the ivy.xml: what this says to Ivy, or so I understand, is publish the jar in a folder called jar with the name [project]-[revision].jar and publish the source in a folder called sources with the name source-[revision].zip. I was experimenting with javax.transaction (jta) so my jar path was: jta/jar/jta-1.1.jar and my source path was jta/sources/source-1.1.zip It seems that there is no 'sources' pattern that I can find that matches sources/source.zip. If you double-click on a class name in the eclipse browser, you get the dreaded 'jar of class... " message and a disassembly of the java. I found that if I edited the element as: and renamed my source file in the cache as [project]-[revision].zip (in my example above to jta-1.1.zip) then, magically, it all worked! Sadly, the pattern name="source" type="source" extn="zip" appears to be widely used in ivy-roundup. So it seems to me that there are three solutions to this problem: 1. Tell me what pattern to use in the Advanced--sources field of ivyde to resolve patterns of the form source-[revision].zip 2. Fix ivyde so that it will match source-[revision].zip 3. modify ivy-roundup by removing name="source" or changing it to name the sources as the project name, e.g in my example name="jta" I'm partly doing this because other people I work with are moaning about how Ivy is not allowing them to see the sources of the files they download, and the only other fix is for me to build a corporate repository. Does anyone have any other thoughts? Thanks Alan