5

I have a folder with two files (a.exe and b.exe) in it and I need to run a command on each. For example xxx - a.exe a.bin. Is there a way to do this with Ant?

I want ant to run:

xxx - a.exe a.bin

and

xxx - b.exe b.bin
Chris
  • 1,416
  • 18
  • 29
Johnny
  • 1,483
  • 3
  • 13
  • 10

2 Answers2

6

Use <apply>. Read more about it here.

ChrisH
  • 4,788
  • 26
  • 35
1

Use <foreach> with a nested <FileSet>.

More info here.

Community
  • 1
  • 1
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480