commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: Can Jelly Ant tasks be used with Ant 1.5.4?
Date Thu, 20 Jul 2006 08:01:02 GMT
That's classical ant class-loading hunt which is well know to be very 
delicate... I fear.
Make sure you have all the dependencies of jelly and the taglibs in the 
classpath.
Although not very good style, running "maven pack-fat-jar" will give you 
a jar that merges all dependencies). Dropping this into the base 
classpath of ant (within the lib directory of ant-home) should make 
things work.
I'm afraid the taskdef approach with a classpath may be very itchy...

hope that helps.

paul


Karr, David wrote:
> Ok, I see.
>
> After installing both jars, I was able to get the taskdef to execute
> without complaining (the taskdef specifies a classpath including both
> jars).  However, when I tried executing "<jelly/>" in a target (because
> I don't know what the parameters are), it failed with a
> NoClassDefFoundError.  Unfortunately, it didn't tell me what class it
> couldn't find.
>
> Where is the documentation for the "jelly" ant task itself?  I see the
> documentation for the Jelly tags that can call ant, but not for the ant
> task. 
>
>   
>> -----Original Message-----
>> From: Dion Gillard [mailto:dion.gillard@gmail.com] 
>> Sent: Wednesday, July 19, 2006 8:37 PM
>> To: Jakarta Commons Users List
>> Subject: Re: Can Jelly Ant tasks be used with Ant 1.5.4?
>>
>> Jelly has many 'tag libraries' available along with the core 
>> jelly tags.
>>
>> The 'ant tag library' is this one:
>> http://jakarta.apache.org/commons/jelly/libs/ant/
>>
>> Get the jar from here:
>>
>> http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-
>> tags-ant-1.1.jar
>>
>> On 7/20/06, Karr, David <david.karr@wamu.net> wrote:
>>     
>>> And what is the "ant tag library"?  I just searched all the 
>>>       
>> jar files 
>>     
>>> in the Ant 1.6.5 distribution, and it's not there.
>>>
>>>       
>>>> -----Original Message-----
>>>> From: Dion Gillard [mailto:dion.gillard@gmail.com]
>>>> Sent: Wednesday, July 19, 2006 6:08 PM
>>>> To: Jakarta Commons Users List
>>>> Subject: Re: Can Jelly Ant tasks be used with Ant 1.5.4?
>>>>
>>>> It's in the ant tag library. So you'll need that and the 
>>>>         
>> core jelly 
>>     
>>>> jar file to do the taskdef.
>>>>
>>>> On 7/20/06, Karr, David <david.karr@wamu.net> wrote:
>>>>         
>>>>> What jar file is that class in?  I can't find it in the 
>>>>>           
>> Jelly 1.0 
>>     
>>>>> distribution.  Googling for it hasn't helped much.
>>>>>
>>>>>           
>>>>>> -----Original Message-----
>>>>>> From: Paul Libbrecht [mailto:paul@activemath.org]
>>>>>> Sent: Tuesday, July 11, 2006 12:52 AM
>>>>>> To: Jakarta Commons Users List
>>>>>> Subject: Re: Can Jelly Ant tasks be used with Ant 1.5.4?
>>>>>>
>>>>>> I haven't tested it but there's:
>>>>>>     org.apache.commons.jelly.task.JellyTask
>>>>>> that should do the trick provided you have included all the 
>>>>>> dependencies in the classpath.
>>>>>> hope that helps.
>>>>>>
>>>>>> paul
>>>>>>
>>>>>>
>>>>>> Karr, David wrote:
>>>>>>             
>>>>>>> Ok, then is it straightforward to write a Jelly script to
>>>>>>>               
>>>>>> do sql work,
>>>>>>             
>>>>>>> that can then be easily executed from an Ant script?
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> -----Original Message-----
>>>>>>>> From: Dion Gillard [mailto:dion.gillard@gmail.com]
>>>>>>>> Sent: Saturday, July 08, 2006 4:41 AM
>>>>>>>> To: Jakarta Commons Users List
>>>>>>>> Subject: Re: Can Jelly Ant tasks be used with Ant 1.5.4?
>>>>>>>>
>>>>>>>> David,
>>>>>>>>
>>>>>>>> are you talking about the Jelly SQL Tag Library?
>>>>>>>>
>>>>>>>> If so, the sql tag library is NOT a set of Ant tasks, it's
>>>>>>>>                 
>>>>>> a set of
>>>>>>             
>>>>>>>> tags to be used within a Jelly script, not an ant 
>>>>>>>>                 
>> build file.
>>     
>>>>>>>> Does this help?
>>>>>>>>
>>>>>>>> On 7/8/06, Karr, David <david.karr@wamu.net> wrote:
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> I've never used Jelly before.  I noticed that it has
>>>>>>>>>                   
>>>> some pretty
>>>>         
>>>>>>>>> powerful SQL Ant tasks.  However, I'm limited to Ant
>>>>>>>>>                   
>>>>>> 1.5.4 for now.
>>>>>>             
>>>>>>>>> Will the Jelly Ant tasks work with Ant 1.5.4?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>> --------------------------------------------------------------------
>>     
>>>>>> -
>>>>>>             
>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>                   
>>>>>> commons-user-unsubscribe@jakarta.apache.org
>>>>>>             
>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>> commons-user-help@jakarta.apache.org
>>>>>>>>
>>>>>>>>                 
>>>>>>>> --
>>>>>>>> http://www.multitask.com.au/people/dion/
>>>>>>>> "If you even dream of beating me you'd better wake up and
>>>>>>>>                 
>>>>>> apologize"
>>>>>>             
>>>>>>>> - Muhammad Ali
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>> --------------------------------------------------------------------
>>     
>>>>>> -
>>>>>>             
>>>>>>>> To unsubscribe, e-mail:
>>>>>>>> commons-user-unsubscribe@jakarta.apache.org
>>>>>>>> For additional commands, e-mail:
>>>>>>>>                 
>>>>>> commons-user-help@jakarta.apache.org
>>>>>>             
>>>>>>>>
>>>>>>>>                 
>>>>>>>               
>> --------------------------------------------------------------------
>>     
>>>>>> -
>>>>>>             
>>>>>>> To unsubscribe, e-mail:
>>>>>>> commons-user-unsubscribe@jakarta.apache.org
>>>>>>> For additional commands, e-mail:
>>>>>>>               
>>>>>> commons-user-help@jakarta.apache.org
>>>>>>             
>>>>>>>               
>>>>>>             
>>>>>           
>> --------------------------------------------------------------------
>>     
>>>> -
>>>>         
>>>>> To unsubscribe, e-mail: 
>>>>> commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail:
>>>>>           
>>>> commons-user-help@jakarta.apache.org
>>>>         
>>>>>           
>>>> --
>>>> http://www.multitask.com.au/people/dion/
>>>> "If you even dream of beating me you'd better wake up and 
>>>>         
>> apologize" 
>>     
>>>> - Muhammad Ali
>>>>
>>>>
>>>>         
>> --------------------------------------------------------------------
>>     
>>>> - To unsubscribe, e-mail: 
>>>> commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: 
>>>> commons-user-help@jakarta.apache.org
>>>>
>>>>
>>>>         
>>>       
>> ---------------------------------------------------------------------
>>     
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: 
>>>       
>> commons-user-help@jakarta.apache.org
>>     
>>>       
>> --
>> http://www.multitask.com.au/people/dion/
>> "If you even dream of beating me you'd better wake up and 
>> apologize" - Muhammad Ali
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>   


Mime
View raw message