Thursday, November 14, 2002 12:09 AM
Sure. Have a look at Ant's own source code, which is just a Java application. It can be a little fiddly to use the tasks standalone in some cases, but its quite simple once you get the hang of it.
In fact, my book (chapter 19, specifically) has code that does this when writing custom Ant tasks and reusing an Ant task as an encapsulated object.
Which task(s) did you want to reuse?