diff --git a/src/main/org/apache/tools/ant/taskdefs/Manifest.java b/src/main/org/apache/tools/ant/taskdefs/Manifest.java index 49957f8fb..a4ec215b3 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Manifest.java +++ b/src/main/org/apache/tools/ant/taskdefs/Manifest.java @@ -619,6 +619,10 @@ public class Manifest { if (classpathAttribute == null) { storeAttribute(attribute); } else { + warnings.addElement("Multiple Class-Path attributes " + + "are supported but violate the Jar " + + "specification and may not be correctly " + + "processed in all environments"); Enumeration e = attribute.getValues(); while (e.hasMoreElements()) { String value = (String) e.nextElement();