ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrett smith <>
Subject What is ${classpath}
Date Sat, 24 Aug 2002 20:31:35 GMT

Trying to make sense of the docs, but I have so many questions.

What is ${classpath}? 

I am trying to add activation.jar, mail.jar, and servlet.jar to my classpath
within ant. It is really easy to do via command line, but I am trying to learn
how to do it with ant.

Here is my buildfile:

<?xml version="1.0"?>
<!-- build file for lesson 2 -->

<project name="login" default="build" basedir=".">

    <target name="build" >
            <pathelement path="${classpath}"/>
                <fileset dir="${ANT_HOME}/common/lib/">
				    <include name="mail.jar"/>
				    <include name="activation.jar"/>
                <fileset dir="${TOMCAT_HOME}/common/lib/">
				    <include name="servlet.jar"/>
            <pathelement location="classes"/>
        <javac srcdir="."

And when run:

Buildfile: build.xml



/development/tomcat/webapps/login/WEB-INF/classes/build.xml:9: Could not create
task of type: classpath. Common solutions are to use taskdef to declare your
task, or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).

Total time: 1 second

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

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

View raw message