Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 22019 invoked from network); 2 Jul 2007 15:10:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 15:10:18 -0000 Received: (qmail 9583 invoked by uid 500); 2 Jul 2007 15:10:20 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 9537 invoked by uid 500); 2 Jul 2007 15:10:20 -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 9528 invoked by uid 99); 2 Jul 2007 15:10:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 08:10:20 -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; Mon, 02 Jul 2007 08:10:16 -0700 Received: by wa-out-1112.google.com with SMTP id n4so1347288wag for ; Mon, 02 Jul 2007 08:09:56 -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=LrRJ3nQLB2xczWgAhKPhU27fk0wvVvYyrGzIx3B8MNmKmKzxGqd5ws6M/BexWGwEu/hzFyCTUuIIMDHdhTanG4Lx9G7/S6LIe2iTW4dUVB0WskKKRj4O+lywehtm5qbJ4bYIFo6oct5RlqkCnZCD3/k75Vr/USwTz8q6EQy5ny0= 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=LY4HClqaOLADEu4IrWEeTSVMcLSl4nvOJLCn1IXekOxxYiddvGI30k6FmHMvwsVtNnd6krVQTSZYv8wbAk0DqpYEiUEmbPUV9vHAnUjf7ez4/UA9cbw/zcEe63IVMRD3Ndo4fysxfg9Zp0JjbFB/QauLBwP5SYef7+Fg9joeVSw= Received: by 10.115.76.1 with SMTP id d1mr5226820wal.1183388995851; Mon, 02 Jul 2007 08:09:55 -0700 (PDT) Received: by 10.114.124.10 with HTTP; Mon, 2 Jul 2007 08:09:55 -0700 (PDT) Message-ID: <635a05060707020809p61143c0dyc620d6f4d7fd5317@mail.gmail.com> Date: Mon, 2 Jul 2007 17:09:55 +0200 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: Source in eclipse IvyDE In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_94931_8731272.1183388995525" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_94931_8731272.1183388995525 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 7/2/07, Bhatia Saurabh wrote: > > I am able to publish the sources fine but now I get sources in the /jars > too :-( > > > > > > > publi= sh this > project's jar in the ivy repository for a specific revision"> > artifactspattern=3D"${jar}/[artifact].[ext]" pubrevision=3D"${revision}" = /> > artifactspattern=3D"${src}/[artifact].[ext]" pubrevision=3D"${revision}" = /> You shouldn't call publish twice, but only once. You can use several artifact patterns in the same publish to make both your source and regular artifact reachable in one publish only. Maybe [type] should be part of your artifact pattern, since it's the only difference between the two artifacts. Xavier > > -----Message d'origine----- > De: Maarten Coene [mailto:maarten_coene@yahoo.com] > Envoy=E9: lundi, 2. juillet 2007 12:52 > =C0: ivy-user@incubator.apache.org > Objet: Re: Source in eclipse IvyDE > > Hi Alex, > > we use the following setup which works with IvyDE 1.2. > > the patterns for jar and corresponding source file is: > > jar: lib/[artifact]-[revision].jar > source: src/[artifact]-[revision]-src.zip > > I use the following pattern for my local filesystem repository: > > pattern=3D"${repository}/[module]/[module]-[revision]/[type]/[artifact]-[= revision].[ext]" > /> > pattern=3D"${repository}/[module]/[module]-[revision]/[type]/[artifact]-[= revision]-src.[ext]" > /> > > My Ivy files defines 2 artifacts: > > > > > > > > regards, > Maarten > > > > > > ----- Original Message ---- > From: "Foreman, Alex (IT)" > To: ivy-user@incubator.apache.org > Sent: Monday, July 2, 2007 12:19:04 PM > Subject: RE: Source in eclipse IvyDE > > HI, > John, I actually tried this before I posted. I'm am intrigued that you > claim it works as It doesn't completely for me. > > I have had: > > > > As you state but when I click on the source it says source not attached. > When I go to the properties for the jar I have included the source to I > get a Location path for the source attachment which is > 'cache/org/library/sources/library.jar' OFC if I change this to > 'cache/org/library/sources/library.src.jar' I can see the source > perfectly. > > This is not acceptable for our enviroment as we have projects with tens > of different jars and developers are not going to be happy or at there > most productive if they have to do this for every jar. (imagine > debugging :( ). If this happened perfectly for you I would like to know > what version of IvyED / eclipse you used and the steps that you took so > I can find out what I did wrong. > It is copying the source/jars over correctly but not pointing to them in > eclipse. > > One of the nice things abuot ivy is the seperation of ivy meta data from > the actual data. It's therefore a shame that ivy/ivyde doesn't seem to > recognize that source and jars can be in differnet locations. > > I think this would solve the problems but am not sure if it would need > to be fixed in ivyDE. If url=3D"" was used first to search for the > artifact you could have: > > url=3D"/../..//library/library.src.jar" /> > > And we would grab this first and presumably be used by ivyDe correctly. > > Is the src.jar not being added just a small bug in ivyDE using [.jar] by > default instead of [ext] at the end? > > I am really grateful for your replies and help. We are highly > interested in this but this is the major blocker atm so any resolution > is great. We really need the ability to automatically attach the source > with no developer input needed. > > I also saw the post about adding source similar to maven2 by having a > postfix. Maybe this would resolve the problem in a better way? > > Many thanks, > > Alex > > -----Original Message----- > From: Xavier Hanin [mailto:xavier.hanin@gmail.com] > Sent: 29 June 2007 09:29 > To: ivy-user@incubator.apache.org > Subject: Re: Source in eclipse IvyDE > > On 6/29/07, John Gill wrote: > > > > That's a very clever trick Frank. Why didn't I think of that? > > > Neither did I :-) It's the power of a community, hundreds of brains are > much better than one :-) > > Xavier > > On 6/29/07, Frank Kemmer wrote: > > > > > > On 6/28/07, Xavier Hanin wrote: > > > > John is right, the source artifact must have the same name as the > > > artifact > > > > itself ATM, so the only way to make it work is to checkout the > > > > IvyDE > > > sources > > > > from svn, hack in the IvyClasspathContainer source and make it > > > > work > > for > > > you. > > > > If you find a generic enough way to declare how to associate a jar > > with > > > a > > > > source artifact, we'll be happy to integrate a patch :-) > > > > > > > > > > > And then the ivy file has this inside it: > > > > > > > > > > > > > name=3D"library.src" type=3D"source" ext=3D"jar" /> > > > > > > for me the following worked (I think only the artifact name has to > > > be the same, the extension can be different): > > > > > > > > name=3D"library" type=3D"source" ext=3D"src.jar" /> > > > > > > With this setting mylib.src.jar will be accepted as valid source > > > attachment for mylib.jar. > > > > > > My 2 cents ... > > > > > > Frank > > > > > > > > > > > -- > > Regards, > > John Gill > > > > > > -- > Xavier Hanin - Independent Java Consultant Creator of Ivy, xooki and > xoocode.org More about me: http://xhab.blogspot.com/ > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this email = is > prohibited when received in error. > > > > > > > ___________________________________________________________________= _________________ > Park yourself in front of a world of choices in alternative vehicles. > Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > --=20 Xavier Hanin - Independent Java Consultant Creator of Ivy, xooki and xoocode.org More about me: http://xhab.blogspot.com/ ------=_Part_94931_8731272.1183388995525--