commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [jelly] Using ant custom tasks
Date Wed, 05 Mar 2003 08:19:15 GMT
 From: "Prabhakar Chaganti" <>
> Could someone please point me to an example of how to use custom ant tasks
> inside jelly scripts? I am able to use all of the ant core tasks without
> problem, but am not sure how to point jelly to custom ant task library.

It should work exactly the same as in Ant.  If you're having ClassLoader
issues then you might need to specify a nested <classpath> or use a
classpathref to specify how to load your custom tag.

<j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">
    <taskdef name="foo" classname="com.acme.Foo"/>
    <foo a="b" c="${someBean.calculateSomething(else)}"/>


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

View raw message