FAQ
Repository: ant
Updated Branches:
   refs/heads/1.9.x 647bdfb2d -> 5c24a75a7


fix possible race-condition

similar to https://bz.apache.org/bugzilla/show_bug.cgi?id=55290

Reported by Yoshiki Higo, Shinpei Hayashi, Hideaki Hata and Mei Nagappan


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/5c24a75a
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/5c24a75a
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/5c24a75a

Branch: refs/heads/1.9.x
Commit: 5c24a75a782d880ddb4ebca79f121066c531ee16
Parents: 647bdfb
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Fri May 13 19:54:21 2016 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Fri May 13 19:54:21 2016 +0200

----------------------------------------------------------------------
  src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/5c24a75a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
index f514fc6..a47b230 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
@@ -487,7 +487,7 @@ public abstract class MSVSS extends Task implements MSVSSConstants {
              //make sure m_LocalDir exists, create it if it doesn't
              File dir = getProject().resolveFile(localPath);
              if (!dir.exists()) {
- boolean done = dir.mkdirs();
+ boolean done = dir.mkdirs() || dir.exists();
                  if (!done) {
                      String msg = "Directory " + localPath + " creation was not "
                              + "successful for an unknown reason";

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 5 | next ›
Discussion Overview
groupnotifications @
categoriesant
postedMay 13, '16 at 5:55p
activeMay 19, '16 at 4:40a
posts5
users1
websiteant.apache.org

1 user in discussion

Bodewig: 5 posts

People

Translate

site design / logo © 2017 Grokbase