title: Retrieving classpath value in ant build.xml file
body: <p>i'm new to ant and i wrote this to retrieve the classpath : </p>
  
  <pre><code>  &lt;!--
    ## ************************************************************************** 
    ## ENVIRONMENT DEFINITION 
    --&gt;
    &lt;path id="classpath"&gt;
      &lt;pathelement path="${env.CLASSPATH}" /&gt;
   &lt;/path&gt; 
   &lt;property name="extdirs" value="${env.EXTDIRS}" /&gt;
  </code></pre>
  
  <p>It works on Ubuntu and not on Fedora :
  here's the value of my classpath :</p>
  
  <pre><code> echo $CLASSPATH 
  /opt/jdk1.7.0/jre/lib/rt.jar:/home/amira/workspace/classes
  </code></pre>
  
  <p>I tried to use the attribute location of pathelement but it doesn't work on Fedora also:</p>
  
  <pre><code>  &lt;pathelement location="${env.CLASSPATH}" /&gt;
  </code></pre>