ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrett smith <>
Subject Re: What is ${classpath}
Date Sun, 25 Aug 2002 01:11:11 GMT
<plaintext title='this email will not be parsed'>


It is good that you were able to find what you needed in the manual. I have
read through the manual and I did not find an explanation for classpath. That
is why I posted my question. I got past the part of downloading every jarfile
and putting it in lib, starting ant, and running a simple build file with no
jarfiles. Is there a particular page or part of the manual that you can
recommend? Perhaps if I reread it, it will make sense to me. If it doesn't make
sense, then I can ask somebody for an explanation.

Everyone Else on Ant-User List,

I would like to compile a simple project which has requires some jar files in
the classpath. Two jar files are in $ANT_HOME/lib and one file is in
$TOMCAT_HOME/common/lib. Has anyone done this before?


--- Martin Gainty <> wrote:

<html><div style='background-color:'><DIV>
<P>the ${classpath} is the&nbsp;path for your classes that ant uses when
building your project's build.xml<BR>check this out:<BR><A
this helps,</P></DIV>
<DIV><FONT face="Lucida Handwriting, Cursive" color=#000000 size=4>Martin
Gainty<BR><FONT face="Verdana, Geneva, Arial, Sans-serif" size=3></DIV>
<DIR><FONT color=#0000ff size=1>
<P>______________________________________________</FONT><FONT face=Arial
size=1><B><FONT face=Arial size=2></FONT></B></FONT></P>
<P><FONT face=Arial size=1><B><FONT face=Arial size=2>Disclaimer and
confidentiality note</B></FONT></FONT></P>
<P><FONT face=Arial size=1><FONT face=Arial size=2>Everything in this e-mail
and any attachments relating to the official business of Laconia Data
Systems</FONT><FONT face=Arial color=#0000ff size=2> </FONT><FONT face=Arial
size=2>(LDS) is proprietary to the company. It is confidential, legally
privileged and protected by law.&nbsp;</FONT><FONT face=Arial color=#0000ff
size=2><FONT color=#000000>LDS</FONT> </FONT><FONT face=Arial size=2>does
own and endorse any other content. Views and opinions are those of the sender
unless clearly stated as being that of LDS. </FONT></FONT></P>
<P><FONT face=Arial size=1><FONT face=Arial size=2>The person addressed
in the
e-mail is the sole authorised recipient. Please notify the sender immediately
if it has unintentionally reached you and do not read, disclose or use the
content in any way.</P>
<P align=justify></P>
<P>LDS&nbsp;can not assure that the integrity of this communication has been
maintained nor that it is free of errors, virus, interception or
interference.</P></FONT></FONT><FONT color=#0000ff></DIR>
<DIV></DIV>&gt;From: garrett smith <JAVADEVMAC2@YAHOO.COM>
<DIV></DIV>&gt;Reply-To: "Ant Users List" <ANT-USER@JAKARTA.APACHE.ORG>
<DIV></DIV>&gt;Subject: What is ${classpath} 
<DIV></DIV>&gt;Date: Sat, 24 Aug 2002 13:31:35 -0700 (PDT) 
<DIV></DIV>&gt;MIME-Version: 1.0 
<DIV></DIV>&gt;Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.4905); Sat, 24 Aug
2002 13:31:46 -0700 
<DIV></DIV>&gt;Received: (qmail 19810 invoked by uid 97); 24 Aug 2002 20:32:05
<DIV></DIV>&gt;Received: (qmail 19798 invoked by uid 98); 24 Aug 2002 20:32:05
<DIV></DIV>&gt;Mailing-List: contact; run
<DIV></DIV>&gt;Precedence: bulk 
<DIV></DIV>&gt;List-Subscribe: <>
<DIV></DIV>&gt;List-Help: <>
<DIV></DIV>&gt;List-Post: <>
<DIV></DIV>&gt;List-Id: "Ant Users List" <ANT-USER.JAKARTA.APACHE.ORG>
<DIV></DIV>&gt;Delivered-To: mailing list 
<DIV></DIV>&gt;X-Antivirus: nagoya (v4218 created Aug 14 2002) 
<DIV></DIV>&gt;X-Spam-Rating: 1.6.2 0/1000/N 
<DIV></DIV>&gt;X-OriginalArrivalTime: 24 Aug 2002 20:31:46.0470 (UTC)
<DIV></DIV>&gt;Trying to make sense of the docs, but I have so many questions.

<DIV></DIV>&gt;What is ${classpath}? 
<DIV></DIV>&gt;I am trying to add activation.jar, mail.jar, and servlet.jar
my classpath 
<DIV></DIV>&gt;within ant. It is really easy to do via command line, but I
trying to learn 
<DIV></DIV>&gt;how to do it with ant. 
<DIV></DIV>&gt;Here is my buildfile: 
<DIV></DIV>&gt;<?xml version="1.0"?> 
<DIV></DIV>&gt;<!-- build file for lesson 2 --> 
<DIV></DIV>&gt;<PROJECT name="login" basedir="." default="build"> 
<DIV></DIV>&gt; <TARGET name="build">
<DIV></DIV>&gt; <PATHELEMENT path="${classpath}" />
<DIV></DIV>&gt; <FILESET dir=${ANT_HOME}/common/lib/>
<DIV></DIV>&gt; <INCLUDE name="mail.jar" />
<DIV></DIV>&gt; <INCLUDE name="activation.jar" />
<DIV></DIV>&gt; </FILESET>
<DIV></DIV>&gt; <FILESET dir=${TOMCAT_HOME}/common/lib/>
<DIV></DIV>&gt; <INCLUDE name="servlet.jar" />
<DIV></DIV>&gt; </FILESET>
<DIV></DIV>&gt; <PATHELEMENT location="classes" />
<DIV></DIV>&gt; <JAVAC DIV < srcdir=".">&gt; debug="true" 
<DIV></DIV>&gt; optimize="false" 
<DIV></DIV>&gt; includes="**/*.java" 
<DIV></DIV>&gt; /&gt; 
<DIV></DIV>&gt; </TARGET>
<DIV></DIV>&gt;And when run: 
<DIV></DIV>&gt;Buildfile: build.xml 
Could not create 
<DIV></DIV>&gt;task of type: classpath. Common solutions are to use taskdef
declare your 
<DIV></DIV>&gt;task, or, if this is an optional task, to put the optional.jar
in the lib 
<DIV></DIV>&gt;directory of your ant installation (ANT_HOME). 
<DIV></DIV>&gt;Total time: 1 second 
<DIV></DIV>&gt;Do You Yahoo!? 
<DIV></DIV>&gt;Yahoo! Finance - Get real-time stock quotes 
<DIV></DIV>&gt;To unsubscribe, e-mail:
<DIV></DIV>&gt;For additional commands, e-mail:
clear=all><hr>Send and receive Hotmail on your mobile device: <a
href=''>Click Here</a><br></html>

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message