ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar "Sánchez" <>
Subject Trying to put info into the Classpath environment Variable...
Date Wed, 22 Aug 2001 16:21:14 GMT

 Hi everybody... 
   I'm trying to put some info into the classpath environment variable, but the next error
ant -buildfile classpath.xml
Buildfile: classpath.xml


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
Total time: 1 second

My xml is like: 
<?xml version="1.0"?>
<project name="Variables-ambiente" default="ini" basedir=".">
  <target name="ini">
    <!-- Se inserta la info al Classpath -->
          <pathelement path="."/>
          <pathelement path="${classpath}"/>
          <pathelement location="d:/j2sdkee1.2.1/lib/j2ee.jar"/>
 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. 


"Puedes sentirte desilusionado si fallas, pero estás condenado si no lo intentas."

"You can get disappointed if you fail down, but you are doomed if you do not try it."

ICQ #  22338121

Do You Yahoo!?
Make international calls for as low as $0.04/minute with Yahoo! Messenger.
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message