ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supriya Saha" <>
Subject RE: taskdef and <property> declarations
Date Wed, 22 Aug 2001 19:30:03 GMT
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 file for Taskdefs in ant.jar. In that case you don't have
to specify taskdef in your xml file.

-----Original Message-----
From: T Master []
Sent: Wednesday, August 22, 2001 3:18 PM
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" <>
To: <>
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

View raw message