Author: rob.stryker(a)jboss.com
Date: 2007-05-24 17:10:30 -0400 (Thu, 24 May 2007)
New Revision: 2072
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/FileUtil.java
Log:
safecopy now includes a safe delete call first if the target already exists
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/FileUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/FileUtil.java 2007-05-24
21:09:36 UTC (rev 2071)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/FileUtil.java 2007-05-24
21:10:30 UTC (rev 2072)
@@ -86,6 +86,8 @@
public static boolean fileSafeCopy(File src, File dest, IFileUtilListener listener) {
File parent = dest.getParentFile();
parent.mkdirs();
+ if( dest.exists())
+ safeDelete(dest);
if (src.isDirectory()) {
File[] subFiles = src.listFiles();
Show replies by date