My problem is very simple: I have two parallel directory structures, 'Old' and 'New', which contain a variety of files and subdirectories. Normally the contents are identical, but I want to know whether any file has been updated. OUTOFDATE seems to be the perfect solution, but I can't seem to get it to work. Here's what I've got:
<for list="${BPELModuleList}" param="ModuleName"> <sequential> <outofdate alltargets="AllTargets"> <sourcefiles> <fileset dir="[EMAIL PROTECTED]" /> </sourcefiles> <mapper type="identity" dir="[EMAIL PROTECTED]"/> <sequential> <!-- do this stuff if there have been any changes --> </sequential> </outofdate> </sequential> </for> [EMAIL PROTECTED] points to the 'New' structure such as: Q:\TRIPS2\Dev\Java\Projects\trips-bpel\ModuleOne, while the corresponding 'Old' structure is in Q:\TRIPS2\Dev\Java\Projects\trips-bpel-previous\ModuleOne. For debugging purposes I put in the alltargets parameter, expecting this to list all the files in the 'Old' structure, but instead it lists those in the 'New' structure. In the spec for OUTOFDATE, the dir attribute for the mapper nested element says 'The directory to the sources are relative to for the mapper. Default is ${base.dir}.' Not quite sure what this means, but I assume it should point to the target area - otherwise where do you specify the target area? Can somebody please show me what code I need to achieve what I want? -- View this message in context: http://www.nabble.com/Problem-with-OUTOFDATE-%28ant-contrib%29-task-tp16537429p16537429.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]