ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Bare minimum custom task
Date Fri, 03 May 2002 07:17:57 GMT
On Thu, 2 May 2002, Dominique Devienne <DDevienne@lgc.com> wrote:

> I vaguely remember Stefan stating that a task needn't derive from
> Task, but simply needed a public void execute method, and setters as
> usual.

See ConditionTask for an example.

> I actually just tried it with ANT 1.4.1, and it doesn't seem to
> work, with the java.lang.NoSuchMethodException: setProject error
> message.

Yep, you also needed a setProject(Project) method in 1.4.1, this is no
longer necessary in 1.5 AFAIK.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message