Archi Forum

Archi => Archi Development => Topic started by: Thomas Rischbeck (ITMC.ch) on August 14, 2020, 09:18:47 AM

Title: Packaging a new Archi Export Plugin
Post by: Thomas Rischbeck (ITMC.ch) on August 14, 2020, 09:18:47 AM
We want to create a new plugin to Archi that generates a Word document using the javadocx  library. Based on the ImportExportExample the first prototype runs within an Eclipse launch configuration.

How would we go about creating a distributable Plugin/Dropin *.jar file from this? I can do it manually but presume that some built-in logic for this is already available somewhere.
Title: Re: Packaging a new Archi Export Plugin
Post by: Phil Beauvoir on August 14, 2020, 09:25:40 AM
I do it manually, too. I have not found a way to automate it.

Make sure the "build.properties" file has all the right dependencies ticked.

Select the project(s) in Eclipse and choose "Export -> Deployable plug-ins and fragments" and export the jar(s) or folder(s) into a directory.

BTW - Archi plug-ins in the "*.archiplugin" format are the exported jar(s) zipped into a zip file (the extension is renamed) together with the magic "archi-plugin" marker file so Archi knows that it's an Archi plug-in that can be unpacked and copied to the "dropins" folder (rather than some random *.jar file). In fact, you could just manually copy the *.jar file(s) to the "dropins" folder.
Title: Re: Packaging a new Archi Export Plugin
Post by: Thomas Rischbeck (ITMC.ch) on August 14, 2020, 10:33:09 AM
Phil,

Thanks for your help - the Eclipse Export did the trick and I've got my first Archi Plugin running.
What a wonderful feeling!!!  ;D

Cheers and happy weeekend, Thomas.
Title: Re: Packaging a new Archi Export Plugin
Post by: Phil Beauvoir on August 14, 2020, 10:35:34 AM
Hi Thomas,

great news! Congratulations!

Two Top Tips:

1. Nothing in Eclipse is easy
2. See (1)

;-)