title: How can I iterate over properties from a file?
body: <p>All my projects and their versions are defined in a properties file like this:</p>
  
  <pre><code>ProjectNameA=0.0.1
  ProjectNameB=1.4.2
  </code></pre>
  
  <p>I'd like to iterate over all the projects, and use their names and versions in an Ant script.</p>
  
  <p>At present I read the entire file using the property task, then iterate over a given list in a for loop like this:</p>
  
  <pre><code>&lt;for list="ProjectNameA,ProjectNameB" param="project"&gt;
     &lt;sequential&gt;
      &lt;echo message="@{project} has version ${@{project}}" /&gt;
     &lt;/sequential&gt;
  &lt;/for&gt;
  </code></pre>
  
  <p>How can I avoid the hard-coding of the project names in the for loop?
  Basically iterate over each line and extract the name and the version of a project as I go.</p>