title: running specific target in different ant scripts in different directories
body: <p>We have a large amount of apps. They all have a <code>build.xml</code> file located in the projects base directory. I am trying to create an ant script that will go through and call a specific target on each of the <code>build.xml</code> files in all the projects.</p>
  
  <p>Here are the issues:</p>
  
  <ol>
  <li>Some of the projects are in deeper directories than others.</li>
  <li>Only some of the projects need to be built at a time.</li>
  </ol>
  
  <p>I was trying to use <code>subant</code> + <code>antfile</code> and defining a CSV of file paths in a properties file, but this did not work. Below is what i have and the error i am getting.</p>
  
  <p>If there is a better way to do this or you know what my problem is, please let me know! Thanks!</p>
  
  <p>This is the property defined in a property file. I am wanting the person running the script to add the file paths in here that are relative to the current location of the script they are running.</p>
  
  <pre><code>projects.to.build=
  </code></pre>
  
  <hr>
  
  <p>This is the subant task i am trying to use in the main build script.</p>
  
  <pre><code>    &lt;filelist
          id="projectNames"
          dir="${basedir}"
          files="${projects.to.build}"
      /&gt;
  
      &lt;target name="debugAll" description="Builds all the projects listed in the projectNames.properties file."&gt;
          &lt;subant target="debug" antfile="${projects.to.build}"&gt;
          &lt;/subant&gt;
      &lt;/target&gt;
  </code></pre>
  
  <hr>
  
  <p>Here is the error i get when i try to run the build script when there are projects defined in the properties file. I am using the relative path. For example: ..\Apps\AnApp1\build.xml,..\Apps\AnApp2\build.xml,..\OtherApps\foo\AnotherApp1\build.xml</p>
  
  <pre><code>"No Build Path Specified" (at my subant task)
  </code></pre>