OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita-lightweight-dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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>bin\dita uninstall org.lwdita

Error: Unable to delete file C:\Users\frwe\Local\Development\dita-ot\dita-ot-3.7.2\plugins\org.lwdita\lib\autolink-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 âplugins\org.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




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]