ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Task to invoke a different version of Ant.
Date Thu, 27 Mar 2003 07:24:50 GMT
On Wed, 26 Mar 2003, s. b. <sbix650@hotmail.com> wrote:

> Can someone tell me how to use an existing task within a custom
> task?

There are several examples in Ant's source base itself.  grep for
getProject().createTask().

> I'm thinking of using the java task

I think you'd be better suited by delegating to the Execute class in
the taskdefs package.  You will want to run in a separate VM to avoid
classloading problems anyway.

Stefan

Mime
View raw message