From b89f7f04e6e2866a3108826c1c2287777e324aab Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Wed, 24 Sep 2003 15:11:13 +0000 Subject: [PATCH] Add warning for multiple classpaths git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275331 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Manifest.java | 4 ++++ 1 file changed, 4 insertions(+) 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();