LibreOffice / loeclipse

LibreOffice Eclipse plugin for extension development
https://libreoffice.github.io/loeclipse/
31 stars 25 forks source link

Revert changes : OXT Export: Automatically add .oxt extension #51 #69

Closed shobhanmandal closed 6 years ago

shobhanmandal commented 6 years ago

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();
}