ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boro Nikic (QMP)" <>
Subject RE: What is ${classpath}
Date Mon, 26 Aug 2002 05:23:31 GMT
<property name="gen_lib" value="../lib"></property>  

<path id="bs.cp">
    <fileset dir="${gen_lib}">
      <include name="**/*.jar"></include>      

This includs all the jar files from this map.

<javac srcdir="${src}/${base_pfm}" destdir="${fidoweb_build}" debug="on" optimize="on">
      <classpath refid="bs.cp"></classpath>

-----Original Message-----
From: garrett smith []
Sent: den 24 augusti 2002 22:32
Subject: What is ${classpath}


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: <>

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

View raw message