The changes made was not required since during the creation of the UnoPackage which ultimately results in the ".oxt" file this has been handled in org.libreoffice.plugin.core.model.UnoPackage.java
public UnoPackage(File pOut) {
File dest = pOut;
if (!(dest.getName().endsWith(ZIP) || dest.getName().endsWith(UNOPKG) || dest.getName().endsWith(OXT))) {
int pos = dest.getName().lastIndexOf(".");
if (pos > 0) {
String name = dest.getName().substring(0, pos);
dest = new File(dest.getParentFile(), name + "." + OXT);
} else {
dest = new File(dest.getParentFile(), dest.getName() + "." + OXT);
}
}
mDestination = dest;
mManifest = new ManifestModel();
}
The changes made was not required since during the creation of the UnoPackage which ultimately results in the ".oxt" file this has been handled in org.libreoffice.plugin.core.model.UnoPackage.java
public UnoPackage(File pOut) { File dest = pOut; if (!(dest.getName().endsWith(ZIP) || dest.getName().endsWith(UNOPKG) || dest.getName().endsWith(OXT))) { int pos = dest.getName().lastIndexOf("."); if (pos > 0) { String name = dest.getName().substring(0, pos); dest = new File(dest.getParentFile(), name + "." + OXT); } else { dest = new File(dest.getParentFile(), dest.getName() + "." + OXT); } }