Displaying Classpath in ANT

Here’s a sample code by which one can display the classpath

<path id=”test.classpath“>
   <path path=”${test.dir}”/>
   <fileset dir=”${config.dir}/lib”>
    <include name=”*-all.jar” />
   </fileset>
  </path>
  <property name=”current.test.classpath” refid=”test.classpath“/>
  
                <echo level=”info”> message=”test.classpath=${current.test.classpath}” </echo>

Written by Ravi Nallakukkala on October 17th, 2007 with no comments.
Read more articles on Build.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .