Embedding a JAR into a plugin

From Aptana Development

This page describes how to embed a JAR into an Aptana plugin.

Introduction

Embedding an existing JAR into a plugin can be tricky. The example below uses a prepackaged JAR that will be embedded into the com.aptana.ide.syncing.ftp plugin.

Instructions

To embed a JAR into a plugin (using the example described above):

  1. Open up the build.properties file. Switch to the "Build" tab.
  2. Delete the existing "." item under "Runtime Information" by selecting it and pressing the delete key.
  3. Add a new item called "classes.jar". Select it and press "Add Folder" in the far-right column. Select "src"/
  4. Make sure the ipworks.jar file is added in the binary build tree.
  5. At the very bottom of the screen, under "Extra Classpath Entries", add "ipworks.jar" again. It should look like this:

    Image:include_external_jar.png
  6. In the feature for this particular plugin (generally com.aptana.ide.feature), open feature.xml, switch to the plugins tab, and make sure "Unpack the plugin archive after installation" is checked.

Related Topics



Aptana Developer Home