From 4b2cd31d48519b404690d853153b7e1c18ad83d2 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 7 Apr 2004 12:11:17 +0000 Subject: [PATCH] remove refernce to optional.jar in "unable to create task/type" message Obtained from: Jack J. Woehr git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276283 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/UnknownElement.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index 607c91c57..e8986cb10 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -458,12 +458,14 @@ public class UnknownElement extends Task { + " and this is not found at the right place in the classpath." + lSep + " Fix: check the documentation for dependencies." + lSep + " Fix: declare the task." + lSep - + " - The task is an Ant optional task and optional.jar is absent" + lSep - + " Fix: look for optional.jar in ANT_HOME/lib, download if needed" + lSep - + " - The task was not built into optional.jar as dependent" + lSep - + " libraries were not found at build time." + lSep - + " Fix: look in the JAR to verify, then rebuild with the needed" + lSep - + " libraries, or download a release version from apache.org" + lSep + + " - The task is an Ant optional task and the JAR file and/or libraries" + lSep + + " implementing the functionality were not found at the time you" + lSep + + " yourself built your installation of Ant from the Ant sources." + lSep + + " Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the" + lSep + + " task and make sure it contains more than merely a META-INF/MANIFEST.MF." + lSep + + " If all it contains is the manifest, then rebuild Ant with the needed" + lSep + + " libraries present in ${ant.home}/lib/optional/ , or alternatively," + lSep + + " download a pre-built release version from apache.org" + lSep + " - The build file was written for a later version of Ant" + lSep + " Fix: upgrade to at least the latest release version of Ant" + lSep + " - The task is not an Ant core or optional task " + lSep