title: Start java Eclipse headless build with different Build files
body: <p>I am trying to start an Eclipse Headless Build for Java Source Files. The Code for one <code>Build.xml</code> works fine, but I want to start the Headless Build for all <code>Build.xml</code> files of a directory. And this is where it gets difficult for me.</p>
  
  <p>The Batch file for listing the <code>Build.xml</code> files of the directory looks like this:</p>
  
  <pre><code>for /r C:\ProjektNEU\Source\java_extensions %i in (*build.xml) do echo %i
  </code></pre>
  
  <p>The Batch file for the build of one java Source, that works looks like this:</p>
  
  <pre><code>java -jar C:\Users\Administrator\Documents\eclipse\plugins\org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar^
       -application org.eclipse.ant.core.antRunner^
       -buildfile C:\ProjektNEU\Source\java_extensions\com.polarion.idl.changeIPObjectProperties\build.xml^
       -DbuildDirectory=C:/temp^
       -DbaseLocation=C:/Polarion/polarion^
       -Ddata=C:/Users/Administrator/eclipse-workspace
  </code></pre>
  
  <p>Now I am trying to integrate the paths I receive from the first batch file to the second batch, to the point <code>-buildfile</code></p>
  
  <p>My try with this was like that but it didnt work:</p>
  
  <pre><code>for /r C:\ProjektNEU\Source\java_extensions %x in (*build.xml) do (SET "PATH=!PATH!" &amp; do java -jar C:\Users\Administrator\Documents\eclipse\plugins\org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar^ 
  -application org.eclipse.ant.core.antRunner^ 
  -buildfile !PATH!^ -DbuildDirectory=C:/temp^ 
  -DbaseLocation=C:/Polarion/polarion^ 
  -Ddata=C:/Users/Administrator/eclipse-workspace)
  </code></pre>
  
  <p>The Result the cmd shows for the first four <code>build.xml</code> files is this, but there is no information at all:</p>
  
  <blockquote>
  <pre><code>C:\Users\Administrator&gt;for /r C:\ProjektNEU\Source\java_extensions %x in (*build.xml) do (SET "PATH=!PATH!" AND do java -jar C:\Users\Administrator\Documents\eclipse\plugins\org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar^ -application org.eclipse.ant.core.antRunner^ -buildfile !PATH!^ -DbuildDirectory=C:/temp^ -DbaseLocation=C:/Polarion/polarion^ -Ddata=C:/Users/Administrator/eclipse-workspace)
  </code></pre>
  </blockquote>
  
  <p>But like this the Build is not starting. Does anybody has an idea what I have to change so the build for each <code>build.xml</code> file does start?</p>