maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Jenkins <>
Subject RE: read contents of a file
Date Wed, 28 Sep 2005 19:03:42 GMT
Untested suggestions:

1. Use ants "loadfile" task with a regexp task to set a condition property
2. Extend the ant task that does the filtering to include the check and
declare your custom task.
3. Use the jelly util load text tag in conjunction with the regexp tag

anyone think of any more?

-----Original Message-----
From: Ramon Buckland []
Sent: Thursday, 29 September 2005 2:11 AM
To: ''
Subject: read contents of a file


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 ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message