Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 22826 invoked from network); 1 Aug 2007 11:09:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 11:09:01 -0000 Received: (qmail 9759 invoked by uid 500); 1 Aug 2007 11:09:01 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 9647 invoked by uid 500); 1 Aug 2007 11:09:00 -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 9638 invoked by uid 99); 1 Aug 2007 11:09:00 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gscokart@gmail.com designates 209.85.198.190 as permitted sender) Received: from [209.85.198.190] (HELO rv-out-0910.google.com) (209.85.198.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 04:09:00 -0700 Received: by rv-out-0910.google.com with SMTP id k20so162294rvb for ; Wed, 01 Aug 2007 04:08:22 -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:content-transfer-encoding:content-disposition:references; b=LJ+OmOKiFfzEnq8M09UBGm9unsM/NJYzRkZFXgsrIHtddWKPNhT6aRFoKNi+zhPOdOflNPPvZt+IHc2mBUxbFXyX9OaDu90Gv8+Ya+9F4pW2VshDG+iWJw6atfkV8E4rTrRnD+XMym8LJi6arObN/vF1cWRTb/n+RU9xPd8fgQ4= 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:content-transfer-encoding:content-disposition:references; b=a+9wAWqtUAFhLn9zQfR3zONmj+kBib7Ntv8UsmcDSVLjW/7kwHihRqa0ewy3M0bbr4GNuU9yEca4Fu/1GghEQxl6Er3FmuCsUafXBz0jsNWWyhVYr+fY5G5lQjxttdelVE1wh9eDMCTCwvd/1cfLmEWALsZV8rdW1CZzFpgJ+yw= Received: by 10.114.153.18 with SMTP id a18mr577166wae.1185966502551; Wed, 01 Aug 2007 04:08:22 -0700 (PDT) Received: by 10.114.103.16 with HTTP; Wed, 1 Aug 2007 04:08:22 -0700 (PDT) Message-ID: Date: Wed, 1 Aug 2007 13:08:22 +0200 From: "Gilles Scokart" To: ivy-user@incubator.apache.org Subject: Re: listmodules In-Reply-To: <000301c7d422$03461690$ae85a8c0@woedsteinwedel> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000301c7d422$03461690$ae85a8c0@woedsteinwedel> X-Virus-Checked: Checked by ClamAV on apache.org To search dependencies, you should look at : http://mvnrepository.com You should also check that the thing you have found really exist at: http://repo1.maven.org/maven2 And for index, I'm not sure what would be the right value to give to it. Gilles 2007/8/1, Dieter Steinwedel : > Hi, > > > > I'm currently doing my first steps with ivy. I wonder why no way is > described to find a library in the public repository. Thefore I have decided > to use the listmodules task from ivy. Unfortunally, I run in some trouble > using this task. Ivy returns a search result with version 1.4.1, but > [organisation] contains always the value "content.xsl". Using ivy version > 2.0.0-alpha2 the listmodules task returns no result. I would prefer an > solution for version 2.0.0. I have to implement a dependency management > quickly. Therefore I would be very thankful about help. I don't want to > pom-inize the projects ;) > > > > Btw, it would be great having an additional variable like [index] to > [organisation], [module] and [revision] for a better enumeration of the > result. Try following ant script: > > > > > > > > > > > > > > > > includes="*.jar"/> > > includes="*.jar"/> > > > > > resource="fr/jayasoft/ivy/ant/antlib.xml" > > > uri="antlib:org.apache.ivy.ant" > > classpathref="ivy.lib.path"/> > > > > > > > > > > > > message="Organisation - default: " > > defaultvalue="*" > > addproperty="ivy.input.organisation" > > /> > > > message="Module - default: " > > defaultvalue="hibernate" > > addproperty="ivy.input.module" > > /> > > > message="Revision - default: " > > defaultvalue="*" > > addproperty="ivy.input.revision" > > /> > > > organisation="${ivy.input.organisation}" > > module="${ivy.input.module}" > > revision="${ivy.input.revision}" > > > property="ivy.list.[organisation].[module].[revision]" > > value=" { [organisation] | [module] | > [revision] }"/> > > > > > > < !--ivy:listmodules > > organisation="${ivy.input.organisation}" > > module="${ivy.input.module}" > > revision="${ivy.input.revision}" > > property="ivy.list.[index]" > > value=" { [organisation] | [module] | > [revision] }"/--> > > > > > > > > > > > > Thanks for helping! > > D. Steinwedel > > -- Gilles SCOKART