I'm writing a custom task that require to support
"includes" attribute and nested fileset elements to
specify the location of source files. The source file
list should be a union of files specified in the
"includes" attribute and those specified in the nested
fileset element (is that a correct expectation?) I
understand how to deal with the nested fileset
elements but not able to figure out how to deal with
the source files specified in the "includes"
attribute. Here is how my source code looks like:

if (getSourcePath() != null) {
DirectoryScanner ds = getDirectoryScanner(new
File(<??>);
// what do I specify as arguments here ?
String[] includedFiles = ds.getIncludedFiles();
File baseDir = ds.getBasedir();
for (int i=0; i<includedFiles.length; ++i) {
  sourceFiles.add(new File(baseDir,
includedFiles[i]));
}
}

My question really is what do I specify as an argument
to getDirectoryScanner ?

Also, searching in the list archives, I've seen it's
not recommended [1] to use MatchingTask as the parent
class. What is the motivation behind that
recommendation ? Is it going to be deprecated in a
subsequent release ?

Thanks,
-Arun

[1]
http://marc.theaimsgroup.com/?l=ant-user&m=109773893214406&w=2






        
                
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to