Hi, I have a well-defined problem I can easily solve via a shell script, but want to know the ant-equivalent. This issue has come up on the ant user mailing list before, but no answer surfaced. I've tried using various combinations of fileset and dirset, but without success. Can someone offer some insights?
The problem: ================ I have a directory structure like this: |-patches |---patch01 |-----com |-------foo |---------classes |-----------bad |--------------Bad.class |-----------good |--------------Good.class |-----------ugly |---patch02 |-----com |-------foo |---------classes |-----------bad |--------------Bad.class |-----------good |-----------ugly |--------------Ugly.class I want to copy all the '.class' files in the ' patches/*/com' directories to an output directory "staging_classes", i.e. so I end up with the directory structure: |-staging_classes |-----com |-------foo |---------classes |-----------bad |--------------Bad.class (from patch02) |-----------good |--------------Good.class (from patch01) |-----------ugly |--------------Ugly.class (from patch02) This shell script solves the problem: #!/bin/sh outdir=stagging_classes patchdir=patches cp -rf $patchdir/*/*/ $outdir How do I solve this problem in ant? i've tried a few times using dirsets and various combinations of copy, but I end up with this (wrong) directory structure: |-staging_classes |----patch01 |---------com |-----------foo |-------------classes |----patch02 |---------com |-----------foo |-------------classes thanks in advance, bill --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org