title: How do I iterate through files in an ant script?
body: <p>How would I rewrite this bash script into an ant script?</p>
  
  <pre><code>#!/bin/bash
  
  # # # First remove files in /removals dir
  cd "/removals"
  for file in `ls *.jar`
  do
    rm -f "/targetdir/${file}"
  done
  
  # # # Next add new files from /additions
  cd "/additions"
  for file in `ls *.jar`
  do
    cp -f ${file} /targetdir/${file}
  done
  </code></pre>
  
  <p>I'm having trouble conceptualizing how to iterate through the files in ant like I can in bash.</p>
  
  <p>Thank you in advance.</p>