Re: [Q:] Writing a simple Ant task?

2002-09-26 Thread David M. Smith
In message <[EMAIL PROTECTED]>, Stefan Bodewig <[EMAIL PROTECTED]> writes > Now that was a useful link! I guess that's from the 1.5 documentation? I am sticking with 1.4.1 until NetBeans supports 1.5 so I haven't seen that befo

Re: [Q:] Writing a simple Ant task?

2002-09-26 Thread Stefan Bodewig
On Thu, 26 Sep 2002, Dominique Devienne <[EMAIL PROTECTED]> wrote: > In Ant 1.4.1, a non-Task deriving class needs to have a > setProject(Project) method to work True, I introduced a bug in Ant 1.4 when I added support for setProject (to get off the ground). Try it with Ant 1.3 or earlier and

RE: [Q:] Writing a simple Ant task?

2002-09-26 Thread Dominique Devienne
ssage); } } // END class EchoTask P:\org_apache\antx\echo-task> P:\org_apache\antx\echo-task>type build.xml P:\org_apache\antx\echo-task> -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 1:04 AM To: [EM

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Stefan Bodewig
On Wed, 25 Sep 2002, Erik Hatcher <[EMAIL PROTECTED]> wrote: > Actually even in Ant 1.4.1 a task didn't need to extend from Task > either, Actually even in Ant 1.1 a task didn't need to extend from Task either. 8-) I think it almost never had to, let me see, TaskAdapter has been added to Ant's

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Stefan Bodewig
On Wed, 25 Sep 2002, Ryan Cuprak <[EMAIL PROTECTED]> wrote: > To accomplish this, you need to write a param class yes > that extends DataType, no, this is not required. > has a default constructor not necessarily > and setter/getter methods for the attributes. yes. > In the mytask (e

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
I would recommend *not* extending from DataType unless you have some reusability need for these nested elements and wish to define them outside of your task. Erik Ryan Cuprak wrote: > To accomplish this, you need to write a param class that extends DataType, > has a default construct

RE: [Q:] Writing a simple Ant task?

2002-09-25 Thread Dominique Devienne
I don't think so... I tried it with 1.4.1, and it didn't work. --DD -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 1:46 PM To: Ant Users List Subject: Re: [Q:] Writing a simple Ant task? Actually even in Ant 1.4.1 a task d

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
es necessary if > one needs to access the Ant Project reference). Stefan will correct me if > I'm wrong ;-) --DD > > -Original Message- > From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:42 PM > To: Ant > Subject: Re: [Q:] W

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Ryan Cuprak
; I'm wrong ;-) --DD > > -Original Message- > From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:42 PM > To: Ant > Subject: Re: [Q:] Writing a simple Ant task? > > > To accomplish this, you need to write a param class that

RE: [Q:] Writing a simple Ant task?

2002-09-25 Thread Dominique Devienne
rt (and is sometimes necessary if one needs to access the Ant Project reference). Stefan will correct me if I'm wrong ;-) --DD -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:42 PM To: Ant Subject: Re: [Q:] Writing a simple Ant task?

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Erik Hatcher
David M. Smith wrote: > Hi, > > I wanted to write a task along the following lines > > > > > > > > However, I would still like to understand how I would write this task. Welcome to the world of Ant task writers! :) > Looking at the Ant source code, it seems gener

Re: [Q:] Writing a simple Ant task?

2002-09-25 Thread Ryan Cuprak
To accomplish this, you need to write a param class that extends DataType, has a default constructor and setter/getter methods for the attributes. In the mytask (extends Task), you add a method "addParam" which takes your param class. Hopefully that answers your question! -Ryan Cuprak On 9/2

[Q:] Writing a simple Ant task?

2002-09-25 Thread David M. Smith
Hi, I wanted to write a task along the following lines In reading through the documentation trying to write this task I came across copy and filterset which seem to do exactly what I want. However, I would still like to understand how I would write this task. Loo