ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r743146 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java
Date Tue, 10 Feb 2009 22:46:46 GMT
Author: maartenc
Date: Tue Feb 10 22:46:45 2009
New Revision: 743146

URL: http://svn.apache.org/viewvc?rev=743146&view=rev
Log:
Reduced logging when loglevel is "download-only" or "quiet". Might fix IVY-1004, but waiting
for feedback before we can be sure.

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java?rev=743146&r1=743145&r2=743146&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNode.java Tue Feb 10 22:46:45
2009
@@ -216,7 +216,8 @@
                             if (!settings.getVersionMatcher().isDynamic(getId())) {
                                 log += " (forced)";
                             }
-                            if (settings.logResolvedRevision()) {
+                            if (settings.logResolvedRevision()
+                                    && LogOptions.LOG_DEFAULT.equals(getData().getOptions().getLog()))
{
                                 Message.info(log);
                             } else {
                                 Message.verbose(log);
@@ -278,7 +279,8 @@
         
         data.replaceNode(getId(), resolved, rootModuleConf); // this actually discards the
node
 
-        if (settings.logResolvedRevision()) {
+        if (settings.logResolvedRevision()
+                && LogOptions.LOG_DEFAULT.equals(getData().getOptions().getLog()))
{
             Message.info("\t[" + module.getId().getRevision() + "] " + getId());
         } else {
             Message.verbose("\t[" + module.getId().getRevision() + "] " + getId());
@@ -384,7 +386,7 @@
                 if (c == null) {
                     confsToFetch.remove(conf);
                     if (isConfRequiredByMergedUsageOnly(rootModuleConf, conf)) {
-                        Message.info(
+                        Message.verbose(
                             "configuration required by evicted revision is not available
in "
                             + "selected revision. skipping " + conf + " in " + this);
                     } else if (!conf.equals(confs[i])) {
@@ -401,7 +403,7 @@
                         && c.getVisibility() != Configuration.Visibility.PUBLIC)
{
                     confsToFetch.remove(conf);
                     if (isConfRequiredByMergedUsageOnly(rootModuleConf, conf)) {
-                        Message.info(
+                        Message.verbose(
                             "configuration required by evicted revision is not visible in
"
                             + "selected revision. skipping " + conf + " in " + this);
                     } else {



Mime
View raw message