Untested suggestions: 1. Use ants "loadfile" task with a regexp task to set a condition property or 2. Extend the ant task that does the filtering to include the check and declare your custom task. or 3. Use the jelly util load text tag in conjunction with the regexp tag
anyone think of any more? -----Original Message----- From: Ramon Buckland [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 2:11 AM To: 'users@maven.apache.org' Subject: read contents of a file Hi, I am trying to work out the best way to read the contents of a file. Specifically, I an performing an iteration over **/*.jsp files and want to only perform tasks on JSP which have <jsp:root declared (ie a JSP XML file). Any ideas ? Thanks Ramon