imario      2004/05/17 23:20:56

  Modified:    vfs/src/java/org/apache/commons/vfs/impl
                        DefaultFileReplicator.java
  Log:
  PR: 29007

  Submitted By: Anthony Goubard ([EMAIL PROTECTED])

  

  Change temporary filename from

  "basename_filecount.tmp"

  to "tmp_filecount_basename".

  

  Advantage of this is to keep the "fileidentity" as the file-extension of the 
original file is kept.
  
  Revision  Changes    Path
  1.19      +6 -5      
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java
  
  Index: DefaultFileReplicator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/DefaultFileReplicator.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DefaultFileReplicator.java        17 May 2004 20:13:20 -0000      1.18
  +++ DefaultFileReplicator.java        18 May 2004 06:20:56 -0000      1.19
  @@ -1,12 +1,12 @@
   /*
    * Copyright 2002, 2003,2004 The Apache Software Foundation.
  - * 
  + *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
  - * 
  + *
    *      http://www.apache.org/licenses/LICENSE-2.0
  - * 
  + *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  @@ -130,7 +130,9 @@
        */
       protected String createFilename(final String baseName)
       {
  -        return baseName + "_" + getFilecount() + ".tmp";
  +        // BUG29007
  +        // return baseName + "_" + getFilecount() + ".tmp";
  +        return "tmp_" + getFilecount() + "_" + baseName;
       }
   
       /**
  @@ -157,5 +159,4 @@
   
           return file;
       }
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to