Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Introduction

This

...

procedure is designed to help you create the files that are needed to install your plug-in within IGB. The first section contains the steps needed to modify your local copy of the IGB code in order to generate the needed files. You should have an updated, local copy of the IGB code or check out the most recent version from Sourceforge.

The second section takes you through installing and testing your plug-in.

Modifying the IGB code

Step 1. Download and unzip: Download the attached template file SamplePlugin.zip.

...

Panel

not.include.bundles=MyPlugin

...

Creating the .jar and .xml for your plugin

Note

This document refers to "IGB_HOME". This is the home directory for your downloaded IGB code. If you made no changes during or after the download, then the source folder will be named genoviz-code.

Step 1. Generate .jar and .xml files for your plugin: After all IGB files have been changed and saved, "Clean and Build" IGB. Using .

Step 2. Remove unneeded files: Use Finder (MacOS) or Windows Explorer (WindowsOS) , open  to open IGB_HOME/plugins/ext and delete any files that are present. If you did not change anything from the original download, IGB_HOME is the genoviz-code folder.

Step 3: Use command line to generate files: Open your command line prompt.

  • First, you will need to temporarily change the JAVA_HOME to 1.6 if you are currently running java 1.7 or higher. The commands are OS specific, but an example for Mac is:

Panel

export JAVA_HOME=`/usr/libexec/java_home -v 1.6`

  • Next, using a command line prompt, navigate to the plugins folder and run the following command

...

Panel

ant externalBundles

  • (Enter your svn password as necessary.):
Panel

ant externalBundles

Wiki Markup
*Step 11. Move the .jar and .xml files to your plugin directory:* There should be 2  generated files in IGB_HOME/plugins/ext, _\[MyPlugin\].jar_ and _repository.xml_. Move these files to your plugin repository folder (local or remote HTTP server). Make sure to cut these files from from the IGB_HOME/plugins/ext folder, or delete after copying.

...