Lightweight DITA SC

 View Only
  • 1.  About uninstalling stock DITA-OT plugins

    Posted 07-11-2022 15:55
      On Slack, I asked about the following error I got, when I tried to uninstall the DITA-OT LwDITA plugin, as shipped with the released distribution:   C:[...]dita-ot-3.7.2>bindita uninstall org.lwdita Error: Unable to delete file C:UsersfrweLocalDevelopmentdita-otdita-ot-3.7.2pluginsorg.lwditalibautolink-0.6.0.jar   Radu Coravu answered the following:   Only about the “Unable to delete” problem, I get the same thing on Windows. Maybe you can add a new issue for it on the DITA OT GitHub. You can manually delete the folder “pluginsorg.lwdita” and then run “dita -install”. @jelovirt  What happens is that the “dita” process has a class loader which loads all the JAR libraries from plugins, and on Windows when a JAR library is locked by a plugin it cannot be deleted. So basically this means no plugin which has JAR libraries can be elegantly uninstalled on Windows using the “dita” command.     I can confirm that the procedure of removing the plugin from the file system and then let DITA-OT rescan the plugin inventory by using “dita install” does indeed work. From Radu’s answer I guess that this odd behavior might be limited to Windows and is not relevant on proper operating systems. But it might be worth checking it out.   Frank   Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Sanjay Brahmawar (Vorsitzender/Chairman), Dr. Elke Frank, Dr. Matthias Heiden, Dr. Stefan Sigg - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Christian Lucas - http://www.softwareag.com


  • 2.  Re: [dita-lightweight-dita] About uninstalling stock DITA-OT plugins

    Posted 07-11-2022 17:39
    Frank, Where is a good place to get the latest org.lwdita plugin? Thanks, Mark On 7/11/2022 8:55 AM, Wegmann, Frank wrote: On Slack, I asked about the following error I got, when I tried to uninstall the DITA-OT LwDITA plugin, as shipped with the released distribution: C:[...]dita-ot-3.7.2>bindita uninstall org.lwdita Error: Unable to delete file C:UsersfrweLocalDevelopmentdita-otdita-ot-3.7.2pluginsorg.lwditalibautolink-0.6.0.jar Radu Coravu answered the following: Only about the Unable to delete problem, I get the same thing on Windows. Maybe you can add a new issue for it on the DITA OT GitHub. You can manually delete the folder pluginsorg.lwdita and then run dita -install . @jelovirt What happens is that the dita process has a class loader which loads all the JAR libraries from plugins, and on Windows when a JAR library is locked by a plugin it cannot be deleted. So basically this means no plugin which has JAR libraries can be elegantly uninstalled on Windows using the dita command. I can confirm that the procedure of removing the plugin from the file system and then let DITA-OT rescan the plugin inventory by using dita install does indeed work. From Radu s answer I guess that this odd behavior might be limited to Windows and is not relevant on proper operating systems. But it might be worth checking it out. Frank Software AG Sitz/Registered office: UhlandstraÃe 12, 64297 Darmstadt, Germany Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Sanjay Brahmawar (Vorsitzender/Chairman), Dr. Elke Frank, Dr. Matthias Heiden, Dr. Stefan Sigg - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Christian Lucas - http://www.softwareag.com


  • 3.  RE: [dita-lightweight-dita] About uninstalling stock DITA-OT plugins

    Posted 07-11-2022 18:42
    Hi Mark.   Check out https://github.com/jelovirt/org.lwdita .   f.     From: dita-lightweight-dita@lists.oasis-open.org <dita-lightweight-dita@lists.oasis-open.org> On Behalf Of Mark Giffin Sent: Monday, 11 July 2022 19:39 To: dita-lightweight-dita@lists.oasis-open.org Subject: Re: [dita-lightweight-dita] About uninstalling stock DITA-OT plugins   Frank, Where is a good place to get the latest org.lwdita plugin? Thanks, Mark On 7/11/2022 8:55 AM, Wegmann, Frank wrote:   On Slack, I asked about the following error I got, when I tried to uninstall the DITA-OT LwDITA plugin, as shipped with the released distribution:   C:[...]dita-ot-3.7.2>bindita uninstall org.lwdita Error: Unable to delete file C:UsersfrweLocalDevelopmentdita-otdita-ot-3.7.2pluginsorg.lwditalibautolink-0.6.0.jar   Radu Coravu answered the following:   Only about the “Unable to delete” problem, I get the same thing on Windows. Maybe you can add a new issue for it on the DITA OT GitHub. You can manually delete the folder “pluginsorg.lwdita” and then run “dita -install”. @jelovirt  What happens is that the “dita” process has a class loader which loads all the JAR libraries from plugins, and on Windows when a JAR library is locked by a plugin it cannot be deleted. So basically this means no plugin which has JAR libraries can be elegantly uninstalled on Windows using the “dita” command.     I can confirm that the procedure of removing the plugin from the file system and then let DITA-OT rescan the plugin inventory by using “dita install” does indeed work. From Radu’s answer I guess that this odd behavior might be limited to Windows and is not relevant on proper operating systems. But it might be worth checking it out.   Frank     Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Sanjay Brahmawar (Vorsitzender/Chairman), Dr. Elke Frank, Dr. Matthias Heiden, Dr. Stefan Sigg - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Christian Lucas - http://www.softwareag.com