This patch corrects the problem posted at http://sourceforge.net/tracker/index.php?func=detail&aid=1218210&group_id=67420&atid=517826
To use it, rebuild antenna with the attached source files instead of ones in the antenna distribution.
WtkPackage.java
PostProcessor.java
in the addManifest() function of WtkPackage.java , should add fis.close()
fis.close(); //should close the FileInputStream
jos.flush(); jos.close(); utility.delete(jarFile); utility.copy(tmp, jarFile); } catch (Exception ex) { ex.printStackTrace(); throw new BuildException("Error re-ordering manifest " + ex.getMessage(), ex); }
if fis not be closed, the last two statement utility.delete(jarFile) and utility.copy(tmp, jarFile) will have no effect.
WtkPackage.java
PostProcessor.java
in the addManifest() function of WtkPackage.java , should add fis.close()
fis.close(); //should close the FileInputStream
jos.flush();
jos.close();
utility.delete(jarFile);
utility.copy(tmp, jarFile);
}
catch (Exception ex) {
ex.printStackTrace();
throw new BuildException("Error re-ordering manifest " + ex.getMessage(), ex);
}
if fis not be closed, the last two statement utility.delete(jarFile) and utility.copy(tmp, jarFile) will have no effect.