This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes echo classpath in build Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "echo classpath in build" Watch "echo classpath in build" New topic
Author

echo classpath in build

Sahina Celin
Greenhorn

Joined: Aug 25, 2004
Posts: 23
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
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Here's a sample:


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: echo classpath in build
 
Similar Threads
Struts2:NoClassDefFoundError for pdf parsing using itext
Help: Modern compiler is not available.
Problem in building project using Ant build tool
ServletTestCase::request is not accessible my test class, which extends jspTestCase.
How to Prevent Reduntant compilation IN ANT