Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

echo classpath in build

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,
a small doubt
can anybody give me how can i print and see my classpath in build.xml?

here is my build.xml

<project name="test" default="all" basedir="./../">

<property name="src" value="src" />
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="classpath" value="${classpath}:${build}" />
<property name="lib" value="../lib:../../lib" />

<path id="ext.classpath">
<pathelement path="${classpath}"/>
<pathelement location="${build}"/>
</path>

<target name="all" depends="compile" description="Compiles">
<echo> Build Successful </echo>
</target>

<target name="compile" depends="prepare" description="Compiles classes.">
<javac srcdir="${src}" destdir="${build}" debug="${debug}" extdirs="${lib}"
deprecation="${deprecation}">
<classpath refid="ext.classpath" />
</javac>
</target>

</project>

here before compiling i wanted to see the classpath and the files in that classpath.
how to do that with <echo> command

thanx
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a sample:
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic