[EMAIL PROTECTED] wrote:
Hey! I never knew you can instantiate any class in Ant! Can you please supply a url explaining <script>?Hhmm - not easy ... 1) "iterate" over a fileset 2) check the date for each time 3) modify the files content hmm - maybe (pseudo code):
01: <for param="file"> 02: <fileset .../> 03: <sequential> 04: <script> 05: importClass(Package.java.io.File); 06: f = new File("@{file}"); 07: project.setProperty("date", f.lastModDate() ); 08: </script> 09: <replaceregexp file="@{file}" match="..." replace="${date}"/> 10: </sequential> 11: </for>
Thanks;
-nat
Line 7 is not "Ant-conform" - it overrides an existing property (usually you should use the setNewProperty() method). But this is a hack :) In Line 7 you also have to search for the right method in File :-)
And ... no garantue :-O
Jan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]