title: ant basedir and eclipse .project file generation
body: <p>I have an ant target that echo's the content of an eclipse .project file, the idea here is to ensure
  that the project is easily importable into eclipse. The project name should match the directory in which
  its checkout. I have this so far</p>
  
  <pre><code>&lt;target name="eclipse" description="creates an eclipse .project file"&gt;
      &lt;echo file=".project"&gt;
          &lt;![CDATA[&lt;?xml version="1.0" encoding="UTF-8"?&gt;
          &lt;projectDescription&gt;
              &lt;name&gt;${basedir}&lt;/name&gt;
              &lt;comment&gt;&lt;/comment&gt;
              &lt;projects&gt;
              &lt;/projects&gt;
              &lt;buildSpec&gt;
                  &lt;buildCommand&gt;
                      &lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt;
                      &lt;arguments&gt;
                      &lt;/arguments&gt;
                  &lt;/buildCommand&gt;
              &lt;/buildSpec&gt;
              &lt;natures&gt;
                  &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
              &lt;/natures&gt;
          &lt;/projectDescription&gt;
          ]]&gt;
      &lt;/echo&gt;    
  &lt;/target&gt;
  </code></pre>
  
  <p>The problem is the ${basedir} evaluates to a full path</p>
  
  <pre><code>&lt;name&gt;/home/assure/projects/MyProject&lt;/name&gt;
  </code></pre>
  
  <p>but eclipse only needs the final folder name</p>
  
  <pre><code>&lt;name&gt;MyProject&lt;/name&gt;
  </code></pre>
  
  <p>Any ideas on the ant target i should use to strip this path?</p>