Edgar S�nchez <[EMAIL PROTECTED]> 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.xmlini:
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\libAs 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."
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."
Do You Yahoo!?
Make international calls for as low as $0.04/minute with Yahoo! Messenger.
