ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitch Gitman" <>
Subject Re: trying to Ivy-fy the Ant script task
Date Sat, 20 Dec 2008 06:35:15 GMT
Just to wrap up, I may have to file this one in the unsolved mysteries bin.
The commons-logging dependency is now getting picked up, without the JAR
getting copied to *USER_HOME*/.ant/lib. I could swear I made no relevant
changes to the relevant Ivy files, but the only rational explanation I can
give for this working now is that somehow I did.

Consider the original query a false alarm.

On Fri, Dec 19, 2008 at 4:26 PM, Mitch Gitman <> wrote:

> 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:
>> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>>         at org.apache.bsf.BSFManager.<init>(
>>         at
>> ...
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.LogFactory
>>         at
>>         at
>>         at
>>         at java.lang.ClassLoader.loadClass(
>>         at java.lang.ClassLoader.loadClassInternal(
>>         ... 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?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message