[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[tm-cvs-commit] dmcknight org.eclipse.tm.rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model ByteStreamHandler.java
|
- From: Eclipse CVS Genie <genie@xxxxxxxxxxx>
- Date: Fri, 20 Jan 2012 19:11:15 +0000
- Delivered-to: tm-cvs-commit@eclipse.org
Update of /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model
In directory dev1:/tmp/cvs-serv2022/src/org/eclipse/dstore/core/model
Modified Files:
ByteStreamHandler.java
Log Message:
[367424] [dstore] upload mechanism should provide backups of files
-amending the backup filename scheme to be .<filename>~ since the backup files should be hidden by default.
Index: ByteStreamHandler.java
===================================================================
RCS file: /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ByteStreamHandler.java 23 Dec 2011 16:58:41 -0000 1.9
--- ByteStreamHandler.java 20 Jan 2012 19:11:12 -0000 1.10
***************
*** 1,4 ****
/*******************************************************************************
! * Copyright (c) 2002, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
--- 1,4 ----
/*******************************************************************************
! * Copyright (c) 2002, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
***************
*** 94,98 ****
if (doBackups == null || doBackups.equals("true")){ //$NON-NLS-1$
// backup the file first
! file.renameTo(new File(fileName+"~")); //$NON-NLS-1$
}
}
--- 94,98 ----
if (doBackups == null || doBackups.equals("true")){ //$NON-NLS-1$
// backup the file first
! file.renameTo(new File('.'+fileName+"~")); //$NON-NLS-1$
}
}