You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/12/19 09:22:54 UTC
[3/3] ant git commit: improve debug logging
improve debug logging
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/6aeb7d32
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/6aeb7d32
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/6aeb7d32
Branch: refs/heads/master
Commit: 6aeb7d32938b5cc31ba1bc45856bd831180f8137
Parents: edb27a3
Author: Stefan Bodewig <bo...@apache.org>
Authored: Tue Dec 19 10:22:34 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Tue Dec 19 10:22:34 2017 +0100
----------------------------------------------------------------------
.../org/apache/tools/ant/taskdefs/optional/unix/Symlink.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/6aeb7d32/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
index 591d726..3f8ec43 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
@@ -211,6 +211,8 @@ public class Symlink extends DispatchTask {
// it's already a symlink and the symlink target is the same
// as the target noted in the properties file. So there's no
// need to recreate it
+ log("not recreating " + lnk + " as it points to the correct target already" ,
+ Project.MSG_DEBUG);
continue;
}
} catch (IOException e) {
@@ -445,6 +447,7 @@ public class Symlink extends DispatchTask {
// if the path (at which the link is expected to be created) isn't already present
// then we just go ahead and attempt to symlink
try {
+ log("creating symlink " + link + " -> " + target, Project.MSG_DEBUG);
Files.createSymbolicLink(link, target);
} catch (IOException e) {
if (failonerror) {
@@ -468,6 +471,8 @@ public class Symlink extends DispatchTask {
return;
}
try {
+ log("creating symlink " + link + " -> " + target + " after removing original",
+ Project.MSG_DEBUG);
Files.createSymbolicLink(link, target);
} catch (IOException e) {
if (failonerror) {