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:50:09 GMT
If you go through Ant documentation and the FAQ, you will see that it is
suggested as a permanent solution for custom tasks. I just referred to that.
Supriyo

-----Original Message-----
From: T Master [mailto:tmaster@iknowledgeinc.com]
Sent: Wednesday, August 22, 2001 3:32 PM
To: ant-user@jakarta.apache.org
Subject: Re: taskdef and <property> declarations

Don't include it in ant.jar.  When you update your ant.jar you will have
problems and curse for a few hours until you realise what a bozo you were in
putting the properties file there :p

Simpler to declare it in your build file.  IMHO.

T Master

----- Original Message -----
From: "Supriya Saha" <ssaha@bowcutter.com>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, August 22, 2001 1:30 PM
Subject: RE: taskdef and <property> declarations


> 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