ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boro Nikic (QMP)" <Boro.Ni...@emp.ericsson.se>
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>      
    </fileset>
</path>

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>
</javac>

-----Original Message-----
From: garrett smith [mailto:javadevmac2@yahoo.com]
Sent: den 24 augusti 2002 22:32
To: ant-user@jakarta.apache.org
Subject: 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message