apache ant mutable file type property
<p>I'm looking for a way to load properties from a file in ant script. Specifically, I want to loop through a list of properties files, and on each loop load the properties from the current file and do something with it. Something like this:</p>

<pre><code>&lt;for param="file"&gt;
  &lt;path&gt;
    &lt;fileset containing my properties files.../&gt;
  &lt;/path&gt;
  &lt;sequential&gt;
     &lt;property file="@{file}" prefix="fromFile"/&gt;
     &lt;echo message="current file: @{file}"/&gt;
     &lt;echo message="property1 from file: ${fromFile.property1}"/&gt;
  &lt;/sequential&gt;
&lt;/for&gt;
</code></pre>

<p>The code above results in only the first properties file from being read, even though each loop does go through each properties file name. I know property is immutable, and I can get around it by using local task or variable task from ant-contrib. However, I don't know how to apply them here, or if they even contribute to a solution in this case.</p>