Fixes #846. rm target file before rename in bild script.

This commit is contained in:
Terence Parr 2015-05-22 13:08:02 -07:00
parent c2ea6aa491
commit b7e5bfcbf8
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ def mkjar_runtime():
print "Generated " + jarfile
osgijarfile = "dist/antlr4-" + VERSION + "-osgi.jar"
make_osgi_ready(jarfile, osgijarfile)
os.remove(jarfile) # delete target for Windows compatibility
os.rename(osgijarfile, jarfile) # copy back onto old jar
print_and_log("Made jar OSGi-ready " + jarfile)