Introduction
To deploy your plugin, you need to create a plugin repository. Once you have created it, you can then make the repository available for users.
Set up
- Download bindex.jar library from the genoviz project at SourceForge: http://sourceforge.net/p/genoviz/code/HEAD/tree/trunk/ext/bindex.jar
- Create a folder on your computer (e.g., bundles) and place all the .jar files you'd like to distribute inside the folder.
Create a repository.xml file for your bundles
Run:
java -cp /bindex.jar -jar bindex.jar -n IGB -q -r repository.xml
QUESTION: Can java -cp handle a relative path? (Do you need the leading slash?)
If your bindex.jar and bundles are both located in folder named plugins then you could type something like:
java -cp /Users/auser/plugins/bindex.jar -jar bindex.jar -n IGB -q -r repository.xml /Users/auser/plugins/bundles
This would create a repository.xml file in plugins folder.
QUESTION: Won't it create a repository.xml file in "bundles" not "plugins"?
Using the new repository location
You can then use that path as repository location. To use it as arepository in IGB:
- Select IGB > File > Preferences > Repository
- Enter the path to your repository
Open IGB and select the Plugin tab. If your repository was successfully added then it should show your plugin there. You can select your plugin from there and install it.
QUESTION: What do you do if you want to deploy the plugin repository on a server? Do you just put everything in some Web directories? What URL do you use?