I am working on a plugin to export in HTML the model excluding selected of the folders. It runs perfectly in the Debug mode through Eclipse, but when I try to export it to a jar file. add it to the plug-in folder, and run it through Archi standalon, the plugin appears, I select some folders, click on finish but it doesn't do what expected. Is there a way to debug the standalone and see logs?
Here is my MANIFEST.MF file:
Bundle-Name: Export selected views
Here is the plugin.xml :
<?xml version="1.0" encoding="UTF-8"?>
name="views to html"
label="HTML view export">
What do you expect it to do? And what is it doing instead?
You can add the -console argument to Archi t run it. But you'd need to add system.out() debgug messages to the code.
Note - these problems are hard to help with if one does not have access to the code. ;-)
When I run it in Eclipse it generate the HTML report, like the official functionality, but it filters the selected folders to not generate the views images who are inside.
I attach the source code.
Now I have the trace error:
java.io.IOException: Source folder does not exist
I compare my plugin with the oficial HTML plugin and I se the oficial have a folder in the plugin folder. This is the reason of my error because when I try to copy the template folder in the destination the app can't get the information because the root he have is ../Archi/plugins/org.archicontribs.reports.html_22.214.171.124710041659.jar!
Is there a way to install the plugin that is not to put the jar file?
Try removing the "." from here:
I remove it bt it still can't get the templates folder to copy to destination.
I've edited 3 files to allow this to export the binaries in a folder, not a single jar file.
Attached in a zip.
I updated the 3 files. In eclipse I ussually export the jar in the menu Export, Deployable plug-ins and fragments. How do I have to do to export in a zip and import it in Archi as a plugin?
Do the same as you are doing now - Export, Deployable plug-ins and fragments.
Archi's "magic" zip formula consist of the exported folder and a special file called "archi-plugin". This file is a kind of "marker" to say "this is an Archi plugin".
So you manually have to create this zip file.
it works! Thx a lot!
If I want to share this plugin what I have to do?
You could host it on GitHub. That's what other people do.