Revision 44204
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/DefaultProject.java | ||
---|---|---|
751 | 751 |
LOG.error("Can't create bak copy from project", ex); |
752 | 752 |
} |
753 | 753 |
} else { |
754 |
File bakProjectFile2 = getNameFileForProject(actualProjectFile, false); |
|
755 |
try { |
|
756 |
FileUtils.moveFile(bakProjectFile2, bakProjectFile); |
|
757 |
} catch (IOException ex) { |
|
758 |
LOG.error("Can't rename file", ex); |
|
754 |
File bakProjectFileOld = getNameFileForProject(actualProjectFile, false); |
|
755 |
if (bakProjectFileOld.exists()) { |
|
756 |
try { |
|
757 |
FileUtils.moveFile(bakProjectFileOld, bakProjectFile); |
|
758 |
} catch (IOException ex) { |
|
759 |
LOG.error("Can't rename file", ex); |
|
760 |
} |
|
761 |
} else { |
|
762 |
LOG.warn("Can't find bak project. Probably doesn't exist or already has been renamed"); |
|
759 | 763 |
} |
760 | 764 |
} |
761 | 765 |
|
Also available in: Unified diff