ant-user mailing list archives

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

 
  Edgar Sánchez <vesanchez@yahoo.com> 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:

BUILD FAILED 
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. 
VES



_________________________________________________________________

"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.


_________________________________________________________________

"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.
Mime
View raw message