Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 41691 invoked from network); 18 Feb 2010 21:34:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2010 21:34:58 -0000 Received: (qmail 3592 invoked by uid 500); 18 Feb 2010 21:34:57 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 3537 invoked by uid 500); 18 Feb 2010 21:34:57 -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 Received: (qmail 3527 invoked by uid 99); 18 Feb 2010 21:34:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 21:34:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Feb 2010 21:34:49 +0000 Received: (qmail 5093 invoked by uid 0); 18 Feb 2010 21:34:27 -0000 Received: from 38.100.172.132 by www157.gmx.net with HTTP; Thu, 18 Feb 2010 22:34:26 +0100 (CET) Content-Type: text/plain; charset="us-ascii" Date: Thu, 18 Feb 2010 22:34:26 +0100 From: "Antoine Levy-Lambert" In-Reply-To: <2A8E3C1F5D420A4E9AAF66382273C20201F5CAB37B@exlnmb16.eur.nsroot.net> Message-ID: <20100218213426.25190@gmx.net> MIME-Version: 1.0 References: <2A8E3C1F5D420A4E9AAF66382273C20201F5CAB37B@exlnmb16.eur.nsroot.net> Subject: Re: Configuring repositories - trouble with CLASSPATH ? To: ivy-user@ant.apache.org X-Authenticated: #22961642 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+996YqKT+9b39nro7d//+rDIOGEjITy/pMZXIb8d UqIcc21gEAm70L8lORYVnQT/4Ja5SbH99fgA== Content-Transfer-Encoding: 7bit X-GMX-UID: UItOc+I9MmA6WoExNWBn44Y5MjQ1N908 X-FuHaFi: 0.45000000000000001 Hi, I did not read everything but it is bad practice to set the CLASSPATH env var before starting ant. Antoine -------- Original-Nachricht -------- > Datum: Thu, 18 Feb 2010 13:40:27 +0000 > Von: "Jimenez Coelho, Juan " > An: "ivy-user@ant.apache.org" > Betreff: Configuring repositories - trouble with CLASSPATH ? > I am taking my first steps with Ivy and I need to point my shared > repository to an existing Maven 2 repository in the filesystem. > > This is what I have done so far: > > 1.- Copied ivy2.jar to lib directory of my Ant v1.8 installation > 2.- Created the following directory > %ANT_HOME%\lib\org\apache\ivy\core\settings > 3.- Under that directory I copied ivysettings.xml that I found in ivy2.jar > and changed its contents to be: > > > > > file="C:/Java/apache-ant-1.8.0RC1/lib/org/apache/ivy/core/settings/ivysettings-shared.xml"/> > > url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/> > url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/> > > > Where ANT_HOME=C:/Java/apache-ant-1.8.0RC1 > > 4.- I created file > C:/Java/apache-ant-1.8.0RC1/lib/org/apache/ivy/core/settings/ivysettings-shared.xml > > 5.- Before running ANT, I set CLASSPATH to be > C:\Java\apache-ant-1.8.0RC1\lib > > The result is almost right in the sense that ivy finds my 'overridden' > ivysettings.xml but it then fails to find ivysettings-public.xml. I expected > it to search the complete CLASSPATH trying to find that file (just as ANT > itself is correctly finding all the classes it needs) > > This is the output I am getting on the sample app: > > > Buildfile: C:\temp\ivy\example\hello-ivy\build.xml > > resolve: > [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ > :: > [ivy:retrieve] :: loading settings :: url = > file:/C:/Java/apache-ant-1.8.0RC1/lib/org/apache/ivy/core/settings/ivysettings.xml > > BUILD FAILED > C:\temp\ivy\example\hello-ivy\build.xml:41: impossible to configure > ivy:settings with given url: > file:/C:/Java/apache-ant-1.8.0RC1/lib/org/apache/ivy/core/settings/ivysettings.xml : java.text.ParseException: failed to load > settings from > file:/C:/Java/apache-ant-1.8.0RC1/lib/org/apache/ivy/core/settings/ivysettings.xml: io problem while parsing config file: > C:\Java\apache-ant-1.8.0RC1\lib\org\apache\ivy\core\settings\ivysettings-public.xml (The > system cannot find the file specified) > at > org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:165) > at > org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150) > at > org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:408) > at org.apache.ivy.Ivy.configure(Ivy.java:422) > > > Given the above, how to I tell Ivy to keep looking in the classpath? > After all, ivysettings-public.xml can be found in ivy2.jar > > Thanks > > Juan