Revision: 2710
          http://vexi.svn.sourceforge.net/vexi/?rev=2710&view=rev
Author:   mkpg2
Date:     2008-01-04 18:19:35 -0800 (Fri, 04 Jan 2008)

Log Message:
-----------
Fix. Caching bug.

Modified Paths:
--------------
    trunk/core/org.vexi.core/src/org/vexi/core/Resources.java

Modified: trunk/core/org.vexi.core/src/org/vexi/core/Resources.java
===================================================================
--- trunk/core/org.vexi.core/src/org/vexi/core/Resources.java   2008-01-02 
21:52:12 UTC (rev 2709)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Resources.java   2008-01-05 
02:19:35 UTC (rev 2710)
@@ -392,15 +392,15 @@
                                        cache = new 
File(localFile.getAbsolutePath());
                                        return;
                                }
-                       } else{
-                               Resources.streamToFile(localFile, 
httpStream.getInputStream());
-                               // set the local file's timestamp
-                               if (remoteModifiedDate > 0) {
-                                       
localFile.setLastModified(remoteModifiedDate);
-                               }
-                               Log.uInfo(Resources.class, "Done downloading to 
file " + localFile.getAbsolutePath());
-                               cache = new File(localFile.getAbsolutePath());
                        }
+                       Resources.streamToFile(localFile, 
httpStream.getInputStream());
+                       // set the local file's timestamp
+                       if (remoteModifiedDate > 0) {
+                               localFile.setLastModified(remoteModifiedDate);
+                       }
+                       Log.uInfo(Resources.class, "Done downloading to file " 
+ localFile.getAbsolutePath());
+                       cache = new File(localFile.getAbsolutePath());
+
                }catch(JSExn e){
                        //Stupid toString() because of an Apple JVM bug
                        throw new IOException(e.toString());


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to