ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Trying to put info into the Classpath environment Variable...
Date Wed, 22 Aug 2001 21:55:43 GMT
A)  Use plain text, not html
B)  Marquee is obnoxious in any html
C)  Send only one copy.  Multiple copies will annoy people even more 
than the previous issues.
C)  As the error says, classpath is not a task.  It needs to be nested 
under something like <javac>
D)  Por que no usa este
<property file="my.path">


-----Original Message-----
From: vesanchez []
Sent: Wednesday, August 22, 2001 4:31 PM
To: ant-user
Cc: vesanchez
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
D:.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

My xml is like: 
<?xml version="1.0"?>
<project name="Variables-ambiente" default="ini" basedir=".">
  <target name="ini">
    <!-- Se inserta la info al Classpath -->
    p;      <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 
set CLASSPATH=%CLASSPATH%;d:sdkee1.2.1ee.jar
set CLASSPATH=%CLASSPATH%;d:sdkee1.2.1deployment.jar
set CLASSPATH=%CLASSPATH%;d:sdkee1.2.1 
  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 
"You can get disappointed if you fail down, but you are doomed if you 
do not try it."
ICQ #  22338121

View raw message