Ideally, I'd like a "filter" task that can be applied to any task like this:
<!-- New filter task [NOT YET AVAILABLE, however hoping one day soon!]--> <filter id="bydate.filter" readonly="true" date=">1/1/2006" time="12:00:00"/> <!-- Apply filter task to a fileset --> <fileset id="some.fileset.id" basedir="${build.dir}"> <include name="../some_directory" /> <filter refid="bydate.filter"/> </fileset> or <!-- Just another way to do the same thing --> <fileset id="some.fileset.id" basedir="${build.dir}" filter="bydate.filter"> <include name="../some_directory" /> </fileset> Now, I can apply the filter's task to any other task as a nested task. <!-- Apply filter to copy task --> <copy todir="${build.dir}"> <fileset refid="bydate.filter"/> </copy> <!-- Apply filter to zip task --> <zip zipfile="my_release.zip"> <fileset refid="bydate.filter"/> </zip> Is this too simple? Does anyone know how to get this work? Is there another way to do this now? -Alan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users