Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 70182 invoked from network); 20 Dec 2008 00:26:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2008 00:26:51 -0000 Received: (qmail 89676 invoked by uid 500); 20 Dec 2008 00:26:50 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 89652 invoked by uid 500); 20 Dec 2008 00:26:50 -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 89641 invoked by uid 99); 20 Dec 2008 00:26:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2008 16:26:50 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgitman@gmail.com designates 209.85.219.10 as permitted sender) Received: from [209.85.219.10] (HELO mail-ew0-f10.google.com) (209.85.219.10) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Dec 2008 00:26:44 +0000 Received: by ewy3 with SMTP id 3so1422767ewy.4 for ; Fri, 19 Dec 2008 16:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=30vj+HIFnb8KQasa4KChiYz0eRSzBDqzrTdiy7c2JAs=; b=I/Du/m6XLd75O331TmVGRpSBvxCQ8+zBFk+PiIrZJXLMKVxNCk+HgPJCTnZ12Bjr07 raoWuAFdiDNLaC8vn/W4xxcGI3l4U5lUVyoBm8yS5ruSPTJvTDLg5ich0znzO5tWm10r lxdTo4y+ytdXXW6uRA1zM8ptKGLzDtFiFnku4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=V6GSrNMMC6woGVIi7swTINWI/5gp4ztikW392lII2VBt+zu+mUKrWBhQYGtwyM1TPQ 44ETGYMlZ62OxOk2hVTO8A38CTkyn+vFAjzexvjPPiDWEof88APP4L1s9kJmTWGSBbyw 4fKHKsSxJUYXHPFjhi1vTtQLo76hiYldxq+6g= Received: by 10.210.21.13 with SMTP id 13mr4212095ebu.29.1229732782121; Fri, 19 Dec 2008 16:26:22 -0800 (PST) Received: by 10.210.135.3 with HTTP; Fri, 19 Dec 2008 16:26:22 -0800 (PST) Message-ID: <7916a6a60812191626i31cccdd2t7dca4892300e2a65@mail.gmail.com> Date: Fri, 19 Dec 2008 16:26:22 -0800 From: "Mitch Gitman" To: ivy-user@ant.apache.org Subject: Re: trying to Ivy-fy the Ant script task In-Reply-To: <7916a6a60812182159qdbf45f3i44b3568981c40aca@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_56873_7555934.1229732782099" References: <7916a6a60812182159qdbf45f3i44b3568981c40aca@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_56873_7555934.1229732782099 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just had a "Well duh, no kidding" moment. I'm used to using the *ivy:cachepath *task for establishing my classpaths from Ivy. But there's nothing stopping me from doing an *ivy:retrieve *in addition where the destination is the destination pattern would go like so: pattern="${user.home}/.ant/lib/[artifact].[ext] I tried to set the configuration so that only the commons-logging JAR gets copied over. On Thu, Dec 18, 2008 at 9:59 PM, Mitch Gitman wrote: > I'm trying to do some inline Ant scripting via the Ant *script *task. > The same could go for the Ant *scriptdef *task > . > > And I'm trying to make Ivy be the provider of all the libraries on which > the *script *task depends. That works with the Bean Scripting Framework > (BSF) JAR (for the common scripting API), and the BSF implementation I'm > using--in this case, beanshell. But it isn't working for > commons-logging.jar, on which BSF depends. If I make my bsf/bsf module > depend on org.apache/commons-logging, the dependency gets dowloaded into my > Ivy cache, but I see the following error: > BUILD FAILED > java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory > at org.apache.bsf.BSFManager.(BSFManager.java:102) > at > org.apache.tools.ant.util.optional.ScriptRunner.createManager(ScriptRunner.java:170) > ... > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.logging.LogFactory > at > org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400) > at > org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341) > at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > ... 20 more > > The only way I can get this *ClassNotFoundException *to go away is if I > put the commons-logging JAR in *USER_HOME*/.ant/lib or *ANT_HOME*/lib. Any > ideas how I can make this *AntClassLoader *use the commons-logging JAR > provided by Ivy? > ------=_Part_56873_7555934.1229732782099--