Skip to content

Commit

Permalink
[FIXED JENKINS-9856]
Browse files Browse the repository at this point in the history
I couldn't reproduce the exact problem in case of symlink checked into the repository --- AFAICT, unless symlink gets updated or altered, it won't get into the code that deletes it.
 
 But in general, I can see that unversioned symlink in the workspace would cause the problem described, which is what I'm fixing in this commit.
  • Loading branch information
kohsuke committed Aug 12, 2011
1 parent 20a1419 commit 21d95f3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -34,6 +34,7 @@
import org.tmatesoft.svn.core.wc.SVNStatus;
import org.tmatesoft.svn.core.wc.SVNStatusType;

import javax.rmi.CORBA.Util;
import java.io.File;
import java.io.IOException;

Expand Down Expand Up @@ -64,7 +65,7 @@ public void handleStatus(SVNStatus status) throws SVNException {
try {
File f = status.getFile();
if (f.isDirectory())
FileUtils.deleteDirectory(f);
hudson.Util.deleteRecursive(f);
else
f.delete();
} catch (IOException e) {
Expand Down

0 comments on commit 21d95f3

Please sign in to comment.