From: <dam...@us...> - 2006-03-20 00:21:12
|
Revision: 974 Author: damokles Date: 2006-03-19 16:21:06 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/azcvsupdater/?rev=974&view=rev Log Message: ----------- save updatefile if all files are already there Modified Paths: -------------- trunk/AZMultiUser/lbms/tools/updater/Updater.java Modified: trunk/AZMultiUser/lbms/tools/updater/Updater.java =================================================================== --- trunk/AZMultiUser/lbms/tools/updater/Updater.java 2006-03-20 00:10:34 UTC (rev 973) +++ trunk/AZMultiUser/lbms/tools/updater/Updater.java 2006-03-20 00:21:06 UTC (rev 974) @@ -239,32 +239,31 @@ failed = true; } } - if (failed) { - callListenerUpdateFailed(); - } else { - if (currentUpdates != null) { - OutputStream os = null; - try { - if (currentUpdates.getName().endsWith(".gz")) { - os = new GZIPOutputStream(new FileOutputStream(currentUpdates)); - } else { - os = new FileOutputStream(currentUpdates); - } - new XMLOutputter(Format.getCompactFormat()).output(remoteUpdate.toDocument(), os); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } finally { - if (os!=null) - try { - os.close(); - } catch (IOException e) {} + } + if (failed) { + callListenerUpdateFailed(); + } else { + if (currentUpdates != null) { + OutputStream os = null; + try { + if (currentUpdates.getName().endsWith(".gz")) { + os = new GZIPOutputStream(new FileOutputStream(currentUpdates)); + } else { + os = new FileOutputStream(currentUpdates); } + new XMLOutputter(Format.getCompactFormat()).output(remoteUpdate.toDocument(), os); + } catch (FileNotFoundException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + if (os!=null) + try { + os.close(); + } catch (IOException e) {} } - - callListenerUpdateFinished(); } + callListenerUpdateFinished(); } } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |