ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <>
Subject Re: Trying to put info into the Classpath environment Variable...
Date Wed, 22 Aug 2001 21:48:56 GMT
The task that you are using must support use of the classpath element.

Look at the examples in the docs.  That's how I did mine.

BTW: trim your emails of the ugly html extras at the bottom.

----- Original Message -----
From: "Edgar Sánchez" <>
To: <>
Sent: Wednesday, August 22, 2001 3:30 PM
Subject: Trying to put info into the Classpath environment Variable...

>   Edgar Sánchez <> wrote:
>  Hi everybody...
>    I'm trying to put some info into the classpath environment variable,
but the next error occurrs:
> ant -buildfile classpath.xml
> Buildfile: classpath.xml
> ini:
> D:\VES\Classant\classpath.xml:5: 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
> D:\VES\Classant>
> My xml is like:
> <?xml version="1.0"?>
> <project name="Variables-ambiente" default="ini" basedir=".">
>   <target name="ini">
>     <!-- Se inserta la info al Classpath -->
>        <classpath>
>           <pathelement path="."/>
>           <pathelement path="${classpath}"/>
>           <pathelement location="d:/j2sdkee1.2.1/lib/j2ee.jar"/>
>        </classpath>
>   </target>
> </project>
>  The only thing I'm trying to do is translate the code from a .bat file
that makes the job, but, they want to change to Ant and XML structure.  The
follow is a fragment of the .bat file I'm trying to put into an xml file:
> set CLASSPATH=%CLASSPATH%;d:\j2sdkee1.2.1\lib\j2ee.jar
> set CLASSPATH=%CLASSPATH%;d:\j2sdkee1.2.1\lib\ejb10deployment.jar
> set CLASSPATH=%CLASSPATH%;d:\j2sdkee1.2.1\lib
>   As you can see using the SET property in a .bat file works fine. Also
I've been checking the documentation on line, I thought the info there would
solve my problem, but not.
>   Does anyone know how to put the information into my classpath variable,
or what could be my problem of the xml I'm using?

>   thanks in advance.

View raw message