Where have you defined the property? For custom ant task, in taskdef you
have to provide a name of the task and the classname which is the actual
reference (including the package reference) to the ant task class. Also you
have to include the jar (containing your custom task) under ant.home/lib
directory. A more permanent way of doing it is to include your task in the
default.properties file for Taskdefs in ant.jar. In that case you don't have
to specify taskdef in your xml file.
Supriyo
-----Original Message-----
From: T Master [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: taskdef and <property> declarations
You did imeplement a setFoo() method for an attribute called foo ?
e.g. foo="blah"
That's how i did it.
----- Original Message -----
From: "Gary Shea" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 1:05 PM
Subject: taskdef and <property> declarations
> Hi --
>
> Today I had the pleasure of getting a custom taskdef working, wow!
> Very slick.
>
> My only issue is that I can't seem to use property values (e.g.,
> ${jars.dir}) in the taskdef element. Am I just missing something, or
> is this really not possible?
>
> Regards,
>
> Gary Shea
> [EMAIL PROTECTED]
>