ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supriya Saha" <ss...@bowcutter.com>
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
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:tmaster@iknowledgeinc.com]
Sent: Wednesday, August 22, 2001 3:18 PM
To: ant-user@jakarta.apache.org
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" <shea@gtsdesign.com>
To: <ant-user@jakarta.apache.org>
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
> shea@gtsdesign.com
>


Mime
View raw message