Author: jm
Date: 2012-10-04 12:43:35 -0700 (Thu, 04 Oct 2012)
New Revision: 30605

Modified:
   
core3/impl/branches/user-beta1/core-task-impl/src/main/java/org/cytoscape/task/internal/session/CySessionWriter.java
Log:
Fixes #1501: Fixed usage of renameTo() on Windows

Modified: 
core3/impl/branches/user-beta1/core-task-impl/src/main/java/org/cytoscape/task/internal/session/CySessionWriter.java
===================================================================
--- 
core3/impl/branches/user-beta1/core-task-impl/src/main/java/org/cytoscape/task/internal/session/CySessionWriter.java
        2012-10-04 00:13:57 UTC (rev 30604)
+++ 
core3/impl/branches/user-beta1/core-task-impl/src/main/java/org/cytoscape/task/internal/session/CySessionWriter.java
        2012-10-04 19:43:35 UTC (rev 30605)
@@ -97,6 +97,9 @@
 
                @Override
                public void run(TaskMonitor taskMonitor) throws Exception {
+                       if (target.exists()) {
+                               target.delete();
+                       }
                        boolean success = source.renameTo(target);
                        
                        if (success) {

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to