title: Ant does not support for loop inside batchtest element
body: <p>I want to define in command line what unit tests are to be run. Tests are defined in a logical structure based on Java packages. From the command line I want to define what Java packages are to be included in the test run (i.e. what tests to include).</p>
  
  <p>In this way I want to loop through a tokenized list of path values, and include Java tests from these paths. However the batchtest element does not support nested for loops. How can I modify this to do what I want? So the amount of includes are as many as there are defined path values.</p>
  
  <p>Updated:</p>
  
  <p>I have defined target like this:</p>
  
  <pre><code>&lt;target name="test"&gt;
      &lt;property name="path" value="**"/&gt;
      &lt;junit fork="yes" failureproperty="true" forkmode="once"&gt;
              &lt;formatter type="xml" /&gt;
              &lt;classpath&gt;
                  &lt;pathelement path="bin.path"/&gt; 
              &lt;/classpath&gt;
  
              &lt;batchtest haltonerror="false" todir="${test.dir}"&gt; 
                  &lt;fileset dir="/src/test/"&gt;
                      &lt;for list="${path}" param="path"&gt;
                          &lt;sequential&gt;
                              &lt;var name="path" value="@{path}"/&gt;                      
                              &lt;include name="**/${path}/**/*.java" /&gt;
                          &lt;/sequential&gt;
                      &lt;/for&gt;
                  &lt;/fileset&gt;
              &lt;/batchtest&gt;
          &lt;/junit&gt;
  </code></pre>