From f04c145a440987e0013d8532ae043f0be0aa9dd0 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 13 Feb 2003 13:19:28 +0000 Subject: [PATCH] Make message clear when updating and whenempty=skip PR: 4448 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274067 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Zip.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java index cef3e771f..e6a015c72 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Zip.java +++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java @@ -701,9 +701,15 @@ public class Zip extends MatchingTask { Resource[][] initialResources = grabResources(filesets); if (isEmpty(initialResources)) { if (emptyBehavior.equals("skip")) { - log("Warning: skipping " + archiveType + " archive " - + zipFile + " because no files were included.", - Project.MSG_WARN); + if (doUpdate) { + log(archiveType + " archive " + zipFile + + " not updated because no new files were included.", + Project.MSG_VERBOSE); + } else { + log("Warning: skipping " + archiveType + " archive " + + zipFile + " because no files were included.", + Project.MSG_WARN); + } } else if (emptyBehavior.equals("fail")) { throw new BuildException("Cannot create " + archiveType + " archive " + zipFile +