title: running build.xml from java project
body: <p>I am trying to run ant script from java project which, in turn, I have to make it as excutable jar file
  here is the way I have done:</p>
  
  <pre><code>Runtime rt = Runtime.getRuntime();
  rt.exec("cmd /c start ant.bat  -buildfile D:\\ant\\trail\\build.xml")
  </code></pre>
  
  <p>But I don't want to give full path for build.xml. Instead, I want it to take from current source directory.</p>
  
  <p>I tried something like this</p>
  
  <pre><code>rt.exec("cmd /c start ant.bat  -buildfile .\build.xml");
  </code></pre>
  
  <p>but I get an error showing that <code>cannot find build.xml, build failed</code> </p>