tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Aaron <maa...@www.medsolv.com>
Subject Problem with Ant and Build
Date Thu, 16 Nov 2000 20:25:41 GMT
Greetings!

I have installed the latest production version of Tomcat,
and included is the Ant utility.  I've followed the
installation instructions to the "T", and am now at the
point where I need to use the build script (I'm on linux)
to product the final output before testing my servlet.

When I run build, I get the following output:

Buildfile: build.xml
Project base dir set to: /usr/jakarta-tomcat/webapps/pmr
BUILD CONFIG ERROR: Could not create task of type: copy because I can't
find it
in the list of task class definitions
org.apache.tools.ant.BuildException: Could not create task of type: copy
because
 I can't find it in the list of task class definitions
        at org.apache.tools.ant.Project.createTask(Project.java:374)
        at
org.apache.tools.ant.ProjectHelper.configureTasks(ProjectHelper.java:
216)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:193)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:134)
        at org.apache.tools.ant.Main.runBuild(Main.java:223)
        at org.apache.tools.ant.Main.main(Main.java:191)


Can someone shed some light on what's happening here?  I'm
at a complete loss, as all of the libraries exist and are
in the classpath I'm using....

BTW, my build script looks like

#!/bin/sh
# build -- Build Script for the "Hello, World" Application
# $Id: build,v 1.2 2000/04/04 22:01:13 craigmcc Exp $

# Identify the custom class path components we need
CP=$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/xml.jar
CP=$CP:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/servlet.jar
CP=$CP:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/lib/tools.jar

# Execute ANT to perform the requested build target
java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main \
  -Dtomcat.home=$TOMCAT_HOME "$@"

Any help is greatly appreciated!!!

~~~~~~~
Mike


Mime
View raw message