Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 85822 invoked from network); 5 Jun 2008 23:45:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 23:45:14 -0000 Received: (qmail 24765 invoked by uid 500); 5 Jun 2008 23:45:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24733 invoked by uid 500); 5 Jun 2008 23:45:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 24722 invoked by uid 99); 5 Jun 2008 23:45:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 16:45:15 -0700 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FORGED_MUA_OUTLOOK,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.54.246.143 as permitted sender) Received: from [65.54.246.143] (HELO bay0-omc2-s7.bay0.hotmail.com) (65.54.246.143) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 23:44:24 +0000 Received: from hotmail.com ([10.4.65.12]) by bay0-omc2-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Jun 2008 16:44:40 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 5 Jun 2008 16:44:40 -0700 Message-ID: Received: from 76.119.176.250 by BLU142-DAV2.phx.gbl with DAV; Thu, 05 Jun 2008 23:44:37 +0000 X-Originating-IP: [76.119.176.250] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com Reply-To: "Martin" From: "Martin" To: "Ant Users List" References: <93B3B6122B906D44BC7E8B8CEFB0DBBB1844DB8F08@SGP-EXCHANGE.pointserve.com> <635a05060806050040p3725212bp612921622ac01ec6@mail.gmail.com> <635a05060806050951w5ec5a410g366e36f42e678300@mail.gmail.com> Subject: Re: Ivy [2.0-beta-2]: Download Source Jars Date: Thu, 5 Jun 2008 19:44:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-OriginalArrivalTime: 05 Jun 2008 23:44:40.0877 (UTC) FILETIME=[1F7A75D0:01C8C766] X-Virus-Checked: Checked by ClamAV on apache.org Ivy folk- didnt get that far.. load-ivy: [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found. anyone know where I can acquire org/apache/ivy/ant/antlib.xml? Thanks Martin- ----- Original Message ----- From: "Howard Lewis Ship" To: "Ant Users List" Sent: Thursday, June 05, 2008 6:18 PM Subject: Re: Ivy [2.0-beta-2]: Download Source Jars > Wrong paste: here's my results: > > $ find lib -name tapestry-\* | xargs ls -l > -rw-r--r-- 1 Howard Howard 1094871 Jun 5 15:13 > lib/runtime-jars/tapestry-core-5.0.12.jar > -rw-r--r-- 1 Howard Howard 29284 Jun 5 15:13 > lib/runtime-jars/tapestry-hibernate-5.0.12.jar > -rw-r--r-- 1 Howard Howard 307375 Jun 5 15:13 > lib/runtime-jars/tapestry-ioc-5.0.12.jar > -rw-r--r-- 1 Howard Howard 1094871 Jun 5 15:13 > lib/runtime-sources/tapestry-core-5.0.12.jar > -rw-r--r-- 1 Howard Howard 29284 Jun 5 15:13 > lib/runtime-sources/tapestry-hibernate-5.0.12.jar > -rw-r--r-- 1 Howard Howard 307375 Jun 5 15:13 > lib/runtime-sources/tapestry-ioc-5.0.12.jar > > > Not sure how to proceed; the m:qualifier appears to exist to map to a > Maven classifier; > > I've configured Ivy to pull from my own Maven repository: > > http://tapestry.formos.com/maven-repository/org/apache/tapestry/tapestry-core/5.0.12/ > > You can see that the sources artifact is in place there. > > On Thu, Jun 5, 2008 at 3:15 PM, Howard Lewis Ship > wrote: >> I've update selected parts of my ivy.xml as follows: >> >> > rev="5.0.12" conf="runtime"> >> >> > m:qualifier="sources"/> >> >> >> However, it's not working, and the same files are showing up in both >> locations: >> >> > rev="5.0.12" conf="runtime"> >> >> > m:qualifier="sources"/> >> >> >> i.e., via: >> >> > pattern="${ivy.lib.dir}/[conf]-[type]s/[artifact]-[revision].[ext]"/> >> >> >> On Thu, Jun 5, 2008 at 9:51 AM, Xavier Hanin >> wrote: >>> It's a namespace, but the URL doesn't really matter, only nonamespace >>> elements are validated against ivy schema. >>> >>> Internally Ivy generates files with: >>> >>> ... >>> >>> >>> Xavier >>> >>> On Thu, Jun 5, 2008 at 6:33 PM, Howard Lewis Ship >>> wrote: >>> >>>> The m:qualifier part ... is that a namespace? If so, whats the URL? >>>> >>>> On Thu, Jun 5, 2008 at 12:40 AM, Xavier Hanin >>>> wrote: >>>> > As you noted there is an open issue to make Ivy able to find source >>>> > and >>>> > javadoc artifacts automatically from a pom, which is not easy since >>>> there's >>>> > no such information in the pom itself. But this is far from being >>>> > infeasible, especially since we are able to parse parent poms, and >>>> > thus >>>> go >>>> > through the repote repository when converting poms. >>>> > >>>> > Until this is implemented, there are two ways to address what you >>>> > want: >>>> the >>>> > first is what we do in IvyDE, use Ivy API to download source and >>>> > javadoc >>>> > artifacts when available without any change in metadata. BTW if >>>> > you're an >>>> > eclipse user I suggest giving IvyDE a try, you will have source and >>>> javadoc >>>> > attachment for free if you use maven 2 repositories. >>>> > >>>> > The second way is to add source and javadoc artifacts when you >>>> > declare >>>> the >>>> > dependencies. Something like: >>>> > >>>> > >>>> > >>> > m:qualifier="sources" /> >>>> > >>> > m:qualifier="javadoc" /> >>>> > >>>> > >>>> > HTH, >>>> > >>>> > Xavier >>>> > On Wed, Jun 4, 2008 at 4:41 PM, Howard Lewis Ship >>>> wrote: >>>> > >>>> >> Well, this is about pulling down source JARs for existing artifacts, >>>> >> so I'm not sure this applies. Perhaps later, when I'm generating >>>> >> artifacts via Ant/Ivy. >>>> >> >>>> >> On Wed, Jun 4, 2008 at 6:54 AM, Loehr, Ruel >>>> wrote: >>>> >> > I'm not sure of the best practice, but one thing that you can do >>>> >> > is >>>> >> create s a conf called "src". >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > And then publish src artifacts to that configuration >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > You could publish them directly into the same conf, but I don't >>>> >> > like >>>> to >>>> >> do that as I auto configure my classpath to point to the retrieve >>>> location. >>>> >> > >>>> >> > Welcome to ivy. You'll never look to m2 again. >>>> >> > >>>> >> > >>>> >> > -----Original Message----- >>>> >> > From: Howard Lewis Ship [mailto:hlship@gmail.com] >>>> >> > Sent: Tuesday, June 03, 2008 7:48 PM >>>> >> > To: Ant Users List >>>> >> > Subject: Ivy [2.0-beta-2]: Download Source Jars >>>> >> > >>>> >> > I'm just getting started with Ivy, but one thing that is very >>>> >> > important for me is to easily download source JARs where >>>> >> > available. >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>> >> > ext="war"/> >>>> >> > >>>> >> > >>>> >> > >>> >> > rev="5.0.11" conf="runtime->default"> >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>> >> > description="Download external library dependencies"> >>>> >> > >>> >> > pattern="${ivy.lib.dir}/[conf]-[type]s/[artifact]-[revision].[ext]" >>>> >> > type="jar,source"/> >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > This runs and places my expected dependencies in lib/runtime-jars/ >>>> >> > as >>>> >> > I want them. >>>> >> > >>>> >> > However, there is no lib/runtime-sources folder. >>>> >> > >>>> >> > I get the same results if I omit the type attribute on >>>> . >>>> >> > >>>> >> > How does Ivy associate an artifact with its source artifact? >>>> >> > >>>> >> > The things I'm downloading, tapestry JARs and such, all have >>>> >> > source >>>> >> > JARs (built and deployed via Maven). >>>> >> > >>>> >> > Thanks for any pointers, >>>> >> > >>>> >> > Howard >>>> >> > >>>> >> > -- >>>> >> > Howard M. Lewis Ship >>>> >> > >>>> >> > Creator Apache Tapestry and Apache HiveMind >>>> >> > >>>> >> > --------------------------------------------------------------------- >>>> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>> >> > For additional commands, e-mail: user-help@ant.apache.org >>>> >> > >>>> >> > >>>> >> > --------------------------------------------------------------------- >>>> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>> >> > For additional commands, e-mail: user-help@ant.apache.org >>>> >> > >>>> >> > >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> Howard M. Lewis Ship >>>> >> >>>> >> Creator Apache Tapestry and Apache HiveMind >>>> >> >>>> >> --------------------------------------------------------------------- >>>> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>> >> For additional commands, e-mail: user-help@ant.apache.org >>>> >> >>>> >> >>>> > >>>> > >>>> > -- >>>> > Xavier Hanin - Independent Java Consultant >>>> > http://xhab.blogspot.com/ >>>> > http://ant.apache.org/ivy/ >>>> > http://www.xoocode.org/ >>>> > >>>> >>>> >>>> >>>> -- >>>> Howard M. Lewis Ship >>>> >>>> Creator Apache Tapestry and Apache HiveMind >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>>> For additional commands, e-mail: user-help@ant.apache.org >>>> >>>> >>> >>> >>> -- >>> Xavier Hanin - Independent Java Consultant >>> http://xhab.blogspot.com/ >>> http://ant.apache.org/ivy/ >>> http://www.xoocode.org/ >>> >> >> >> >> -- >> Howard M. Lewis Ship >> >> Creator Apache Tapestry and Apache HiveMind >> > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org