From cc993188fe3a0a9ec5bc45f8365cc397b469b787 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sat, 14 Dec 2013 15:00:52 +0400 Subject: [PATCH] Delete previous jar file before writing a new one just in case --- src/com/cnaude/chairs/GenVehicleArrowClass.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/cnaude/chairs/GenVehicleArrowClass.java b/src/com/cnaude/chairs/GenVehicleArrowClass.java index b5af160..9cd8fad 100644 --- a/src/com/cnaude/chairs/GenVehicleArrowClass.java +++ b/src/com/cnaude/chairs/GenVehicleArrowClass.java @@ -64,6 +64,7 @@ public class GenVehicleArrowClass { File arrowfile = new File("VehicleArrow.class"); InputStream arrwoinputstrean = new FileInputStream(arrowfile); File jarfile = new File("VehicleArrow.jar"); + jarfile.delete(); final ZipOutputStream zipout = new ZipOutputStream(new FileOutputStream(jarfile)); ZipEntry entry = new ZipEntry(arrowfile.getName()); zipout.putNextEntry(entry);