Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 29162 invoked from network); 2 Jul 2007 15:26:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 15:26:49 -0000 Received: (qmail 61096 invoked by uid 500); 2 Jul 2007 15:26:52 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 61072 invoked by uid 500); 2 Jul 2007 15:26:52 -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 61063 invoked by uid 99); 2 Jul 2007 15:26:52 -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:26:52 -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:26:48 -0700 Received: by wa-out-1112.google.com with SMTP id n4so1363405wag for ; Mon, 02 Jul 2007 08:26:27 -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=qmfwKzxsLHNRdZsOox4+Gl2WaIp+Hbt3Y0eziMVoPQbcwfyiUvFKxc3UcMAaPwoHy/81WUvdJjQHwrgTSrT5N0SHdCXA4nQmwUrz2N9e9pupnBI0m4JWD1TPtXPrDv77luzNrjtGp6xc764ZgcmnonlTTGJpDamMqXJKiL2mxeY= 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=Gqjeo7xE6QBgn1fwM0/pUua0yd5UnZZFH7gHDXhylk+56OQP/RCSoonHyauG9CupdWssloHoC9VTwyuvWfL82/E2oxKQvlR8nuGVojzfbAmmtDmQ2aQ34FnQBPNfdSrj2XbIbiV0BazMXCXssNj4JVPZkRA1bBHpk2+QIJdYdxU= Received: by 10.114.198.1 with SMTP id v1mr5217949waf.1183389986886; Mon, 02 Jul 2007 08:26:26 -0700 (PDT) Received: by 10.114.124.10 with HTTP; Mon, 2 Jul 2007 08:26:26 -0700 (PDT) Message-ID: <635a05060707020826l20cb3771p9c47465962372c2e@mail.gmail.com> Date: Mon, 2 Jul 2007 17:26:26 +0200 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: Source [war] in eclipse IvyDE In-Reply-To: <49c77ae40707020641k17fa9d3ei94e16f170fcdc39@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_95311_5965903.1183389986830" References: <49c77ae40707020141r3418ab5k4139aa58bf775a73@mail.gmail.com> <635a05060707020156t650a2bf8r621ae31b90d7c49e@mail.gmail.com> <49c77ae40707020641k17fa9d3ei94e16f170fcdc39@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_95311_5965903.1183389986830 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 7/2/07, John Gill wrote: > > Ok thanks Xavier. I'll give that a try. > > I think that implementing a built in classifier attribute in ivy would be > the way to go, but it would be nice if it could be used even if you aren'= t > using maven. If we support it for maven, you'll be able to use it even if you don't use maven, no problem. But I don't know if it makes sense to add yet another standard attribute on the artifact. We already have the name, ext and type, and usually this is enough. The problem we face here is more in the flexibility of patterns. Supporting conditional patterns (IVY-324) would allow to specify one pattern for source artifacts, and nother one for jar artifacts, and so on. I'd prefer this as a solution to the problem rather than making classifier a standard attribute. Xavier On 7/2/07, Xavier Hanin wrote: > > > > On 7/2/07, John Gill wrote: > > > > > > The extension can be whatever you like. I don't think an extension of > > war > > > is > > > a good idea though. I quite like the idea of using .src.war as the > > > extension. > > > > > > Interestingly (or maybe not), I have some legacy source jars which ar= e > > > named > > > mylib-src.jar. However the problem with that is that IvyDE will not > like > > > that unless the names of the actual libs are mylib-src.jar also (whic= h > > > they > > > are not, it is mylib.jar). What would be nice is if instead of using > > > ext=3D"jar", I could use postfix=3D"-src.jar". Obviously "ext" and > "postfix" > > > would be mutually exclusive attributes. > > > > > > The name you have is very similar to maven 2 notations which involves > > another token: classifier. In your case the classifier is "src", and th= e > > pattern is: > > [artifact](-[classifier]).[ext] > > > > Classifier is not yet a supported attribute in Ivy, so you need to use > an > > extra attribute for this (and disable xsd validation). If validation > > disabling is a problem, I suggest voting for > > https://issues.apache.org/jira/browse/IVY-553 or > > https://issues.apache.org/jira/browse/IVY-521. We will probably have > > either > > to implement IVY-553 or make classifier a real ivy attribute before 2.0= , > > because when a pom with a classifier is converted to an ivy file in > cache, > > it later cause a validation error when Ivy use the file from the cache. > So > > using classifier will be standardized in ivy 2.0 either as a standard > att > > or > > as maven2:classifier attribute (which I would prefer). Hence I recommen= d > > using classifier in your case. > > > > Xavier > > > > Does anyone else think the a postfix attribute would be useful (might b= e > > > tricky to implement though)? > > > > > > On 7/2/07, Bhatia Saurabh wrote: > > > > > > > > This is a very valid discussion. > > > > > > > > What should I do to publish the sources of a war file ? > > > > Should I name it \source\mylib.war? > > > > > > > > -----Message d'origine----- > > > > De: John Gill [mailto:llignhoj@gmail.com] > > > > Envoy=E9: jeudi, 28. juin 2007 13:54 > > > > =C0: ivy-user@incubator.apache.org > > > > Objet: Re: Source in eclipse IvyDE > > > > > > > > Make sure the name of the source jar is exactly the same name as th= e > > > > implementation jar. > > > > > > > > For example, if your jar is mylib.jar, then its type would be jar. > The > > > > source would be mylib.jar and it's type would be source, and its ex= t > > > would > > > > be jar (or zip if you like). > > > > > > > > The same applies for javadoc, if you have a zip of javadoc, then > it's > > > name > > > > would be the mylib.zip, but its type would be javadoc. > > > > > > > > So, your repsoitory would have > > > > > > > > myorg\mylib\1.0.0\jar\mylib.jar > > > > myorg\mylib\1.0.0\source\mylib.jar > > > > myorg\mylib\1.0.0\javadoc\mylib.zip > > > > > > > > > > > > On 6/28/07, Foreman, Alex (IT) > > > > wrote: > > > > > > > > > > Hi, > > > > > > > > > > I have configured eclipseIDE to use Ivy and it is currently > > resolving > > > > > all my complex dependancies. It is imperitive that we have our > > > sources > > > > > available for use by developers. > > > > > > > > > > I noticed in the ivy preferences page there is a source > > > attachment. In > > > > > there I have added 'source' > > > > > In one library I have added an extra artifact of type 'source' an= d > > > > > pointed it to the source jar. However ivy resolves all jars > > downloads > > > > > them to the cache but eclipse doesnot view the source code when I > > view > > > > > it though its java editor. > > > > > > > > > > Have I missed anything out? > > > > > This would be a real blocker if we cannot view the source > > > automatically > > > > > once resolved. > > > > > > > > > > Also is there away to remove the cache to enable it to be > refreshed > > > via > > > > > eclipse? Currently I have to go thrugh a file manager and remove > > the > > > > > directory by hand then refresh in eclipse. > > > > > > > > > > Many thanks, > > > > > > > > > > Alex > > > > > -------------------------------------------------------- > > > > > > > > > > NOTICE: If received in error, please destroy and notify sender. > > Sender > > > > > does not intend to waive confidentiality or privilege. Use of thi= s > > > email > > > > is > > > > > prohibited when received in error. > > > > > > > > > > > > > > > > > > > > > -- > > > > Regards, > > > > John Gill > > > > > > > > > > > > > > > > -- > > > Regards, > > > John Gill > > > > > > > > > > > -- > > Xavier Hanin - Independent Java Consultant > > Creator of Ivy, xooki and xoocode.org > > More about me: http://xhab.blogspot.com/ > > > > > > -- > Regards, > John Gill > --=20 Xavier Hanin - Independent Java Consultant Creator of Ivy, xooki and xoocode.org More about me: http://xhab.blogspot.com/ ------=_Part_95311_5965903.1183389986830--