svn commit: r819079 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r819079 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

hansbak-2
Author: hansbak
Date: Sat Sep 26 01:06:01 2009
New Revision: 819079

URL: http://svn.apache.org/viewvc?rev=819079&view=rev
Log:
spaces for tabs

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java?rev=819079&r1=819078&r2=819079&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java Sat Sep 26 01:06:01 2009
@@ -1015,21 +1015,21 @@
         }
     }
     public static void copyFile(File sourceLocation , File targetLocation) throws IOException {
-     if (sourceLocation.isDirectory()) {
-     throw new IOException("File is a directory, not a file, cannot copy") ;
-     } else {
+        if (sourceLocation.isDirectory()) {
+            throw new IOException("File is a directory, not a file, cannot copy") ;
+        } else {
 
-     InputStream in = new FileInputStream(sourceLocation);
-     OutputStream out = new FileOutputStream(targetLocation);
+            InputStream in = new FileInputStream(sourceLocation);
+            OutputStream out = new FileOutputStream(targetLocation);
 
-     // Copy the bits from instream to outstream
-     byte[] buf = new byte[1024];
-     int len;
-     while ((len = in.read(buf)) > 0) {
-     out.write(buf, 0, len);
-     }
-     in.close();
-     out.close();
-     }
+            // Copy the bits from instream to outstream
+            byte[] buf = new byte[1024];
+            int len;
+            while ((len = in.read(buf)) > 0) {
+                out.write(buf, 0, len);
+            }
+            in.close();
+            out.close();
+        }
     }
 }