You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Aleksandar Kacanski <sa...@phone2networks.com> on 2000/12/05 18:14:51 UTC

build problems task class definitions...

Hi,
We have development server where lates tomcat stable installation works
fine.
I setup a production server with the same installation
(tomcat3.2.6/ant1.2/apache1.3.14.,mod_jk)
tomcat is working fine with apache and services servlets just fine.
Proble I have is that I recreated build system on the production server
to compile and build classes, but any attemt to build project fails with
the error:
Buildfile: build.xml

BUILD FAILED

build.xml:74: Could not create task of type: copy because I can't find
it in the list of task class definitions

Total time: 0 seconds

I saw some other people had a same problem but everything I tried, did
not help me so far.
Could anyone point me to symtom of this error.
examples of the resources files follow:
PATH="$PATH:/opt/jdk1.2.2/bin:/opt/jakarta-ant/bin:/opt/tomcat3.2.6/bin"

TOMCAT_HOME=/opt/tomcat3.2.6
JAVA_HOME=/opt/jdk1.2.2
ANT_HOME=/opt/jakarta-ant
XML_HOME=/usr/local/xml

CLASSPATH="$TOMCAT_HOME/lib/PerlTools.jar:
$TOMCAT_HOME/lib/servlet.jar:
$JAVA_HOME/lib/tools.jar:
$ANT_HOME/lib/parser.jar:
$ANT_HOME/lib/jaxp.jar:
$ANT_HOME/lib/ant.jar:
$XML_HOME/xerces.jar:
$XML_HOME/xml4j.jar"

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC CLASSPATH
TOMCAT_HOME JAVA_HOME ANT_HOME XML_HOME

thanks
/s

--

Occupation: Strategic Technical Planning and Advanced Infrastructure Development
Employer: Phone2Networks
Status: Almost there ...
Hobbies: Jogging (when?!), reading, music (dance/trans), sleep deprivation
Currently reading: Foucault's Pendulum by Umerto Eco
Evaluation: Mostly Harmless
--------------------------------------------------------------------




Re: build problems task class definitions...

Posted by Stefan Bodewig <bo...@apache.org>.
Aleksandar Kacanski <sa...@phone2networks.com> wrote:

> BUILD FAILED
> 
> build.xml:74: Could not create task of type: copy because I can't
> find it in the list of task class definitions
> 
> Total time: 0 seconds

I would almost bet that there is an older version of Ant in your
CLASSPATH and that you are invoking this version instead of the Ant
1.2 you intend to run.

What does ant -version say?

Stefan