jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1684029 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java
Date Sun, 07 Jun 2015 12:42:42 GMT
Author: fschumacher
Date: Sun Jun  7 12:42:42 2015
New Revision: 1684029

URL: http://svn.apache.org/r1684029
Log:
Bug 57913 - Automated backups of last saved JMX files
Only backup file, if it exists (otherwise we get an exception on first save of a file).

Bugzilla Id: 57913


Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java?rev=1684029&r1=1684028&r2=1684029&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java Sun Jun  7 12:42:42 2015
@@ -315,7 +315,7 @@ public class Save implements Command {
      *         has performed successfully
      */
     private List<File> createBackupFile(File fileToBackup) {
-        if (!BACKUP_ENABLED) {
+        if (!BACKUP_ENABLED || !fileToBackup.exists()) {
             return EMPTY_FILE_LIST;
         }
         char versionSeparator = '-'; //$NON-NLS-1$



Mime
View raw message