You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by garrett smith <ja...@yahoo.com> on 2002/08/24 22:31:35 UTC

What is ${classpath}

Hey,

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" >
	
        <classpath>
            <pathelement path="${classpath}"/>
                <fileset dir="${ANT_HOME}/common/lib/">
				    <include name="mail.jar"/>
				    <include name="activation.jar"/>
                </fileset>
                <fileset dir="${TOMCAT_HOME}/common/lib/">
				    <include name="servlet.jar"/>
                </fileset>
            <pathelement location="classes"/>
        </classpath>
        <javac srcdir="."
            debug="true"
           optimize="false"
            includes="**/*.java"
            />
    </target>
</project>

And when run:

Buildfile: build.xml

build:

BUILD FAILED

/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
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>