How to support fileset in a custom task?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Knowles_Sinkler
Posted On:   Thursday, September 6, 2001 01:43 PM

I'm writing a custom task and I want it to support fileset. What would be the correct way to implement that so I wouldn't have to resolve the includes and regular expressions myself?

Re: How to support fileset in a custom task?

Posted By:   Erik_Hatcher  
Posted On:   Thursday, September 6, 2001 07:50 PM

You simply add a method like this:

/**
* Adds a set of files (nested fileset attribute).
*/
public void addFileset(FileSet set) {
filesets.addElement(set);
}

I simply pasted this from Ant's Copy.java file. There is some basic documentation on creating custom Ant taskss at http://jakarta.apache.org/ant/manual/develop.html
About | Sitemap | Contact