From a9fbed217170effcba552677625514ed2832e4c4 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 23 Oct 2002 09:34:05 +0000 Subject: [PATCH] Swallow warning about filesetManifest as long as its value cannot be altered. Merge from 1.5 branch. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273454 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 70 ++++++++++++------- .../org/apache/tools/ant/taskdefs/Jar.java | 17 +++-- 2 files changed, 57 insertions(+), 30 deletions(-) diff --git a/build.xml b/build.xml index 3f8f6ec47..3598e8987 100644 --- a/build.xml +++ b/build.xml @@ -71,6 +71,7 @@ + @@ -766,122 +767,143 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java index 04aadd4fb..7d7810199 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Jar.java +++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java @@ -459,12 +459,17 @@ public class Jar extends Zip { // assuming 'skip' otherwise // don't warn if skip has been requested explicitly, warn if user // didn't set the attribute - int logLevel = filesetManifestConfig == null ? - Project.MSG_WARN : Project.MSG_VERBOSE; - log("File " + file - + " includes a META-INF/MANIFEST.MF which will be ignored. " - + "To include this file, set filesetManifest to a value other " - + "than 'skip'.", logLevel); + + // Hide warning also as it makes no sense since + // the filesetmanifest attribute itself has been + // hidden + + //int logLevel = filesetManifestConfig == null ? + // Project.MSG_WARN : Project.MSG_VERBOSE; + //log("File " + file + // + " includes a META-INF/MANIFEST.MF which will be ignored. " + // + "To include this file, set filesetManifest to a value other " + // + "than 'skip'.", logLevel); } }