title: Dynamic basedir for Ant in Eclipse
body: <p>The title might not be the best so let me explain what I am trying to do.</p>
  
  <p>I have made an Ant buildfile that will help me with Maven goals. It's so much easier having to scope to Ant view and choose what I want to do. The biggest benefit with this is that I can use it in almost any project. Whether I deploy to tomcat or jboss or sakai(:deploy) or I handle mutiple instaces of the same server or skip tests... worst case I just change some path properties.</p>
  
  <p>The drawback right now is that I have to keep a copy of this buildfile in every project.</p>
  
  <p>What I am trying to do is have only 1 buildfile, in the workspace, and dinamicaly optain, from eclipse, the current project that I am working on. Be it module or parent I can refine that later.
  So basically change the basedir for ant tasks based on the selected project in eclipse.</p>
  
  <p>I have tried Ant Runtime Properties but for some reason properties like </p>
  
  <blockquote>
    <p>${project_path}</p>
  </blockquote>
  
  <p>fail to give me what their description say. I get this:</p>
  
  <blockquote>
    <p>Variable references empty selection: ${project_path}</p>
  </blockquote>
  
  <p>I hope it is clear what I am trying to do. So my question, I know it's possible, I'm just missing something and I hope some of you can help me with this.</p>
  
  <p>I believe the trouble is in the Ant Runtime properties. I'm not 100% sure how I should use those.</p>
  
  <p>Thank you!</p>