You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@locus.apache.org on 2000/07/27 17:14:48 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/store ContentStoreFilesystemImpl.java

remm        00/07/27 08:14:48

  Modified:    src/share/org/apache/slide/store
                        ContentStoreFilesystemImpl.java
  Log:
  - Removes the createNewFile() call. Hopefully, it doesn't break
    anything.
  
  Revision  Changes    Path
  1.3       +6 -5      jakarta-slide/src/share/org/apache/slide/store/ContentStoreFilesystemImpl.java
  
  Index: ContentStoreFilesystemImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/ContentStoreFilesystemImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContentStoreFilesystemImpl.java	2000/07/26 20:19:44	1.2
  +++ ContentStoreFilesystemImpl.java	2000/07/27 15:14:47	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/ContentStoreFilesystemImpl.java,v 1.2 2000/07/26 20:19:44 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/07/26 20:19:44 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/ContentStoreFilesystemImpl.java,v 1.3 2000/07/27 15:14:47 remm Exp $
  + * $Revision: 1.3 $
  + * $Date: 2000/07/27 15:14:47 $
    *
    * ====================================================================
    *
  @@ -75,7 +75,7 @@
    * Filesystem implementation of ContentStore.
    * 
    * @author <a href="mailto:remm@exoffice.com">Remy Maucherat</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class ContentStoreFilesystemImpl extends ServiceImpl 
       implements ContentStore {
  @@ -242,7 +242,8 @@
               if ((parentFile != null) && (!parentFile.exists())) {
                   parentFile.mkdirs();
               }
  -            boolean created = file.createNewFile();
  +            
  +            boolean created = file.exists();
               if (!created) {
                   throw new RevisionAlreadyExistException
                       (uri.toString(), revisionDescriptor.getRevisionNumber());