Delete previous jar file before writing a new one just in case
This commit is contained in:
parent
424f6e5daa
commit
cc993188fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user