Skip to main content
Jump to: navigation, search

FAQ How do I add images and other resources to a runtime JAR file?

Revision as of 14:50, 14 March 2006 by Claffra (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A plug-in is built using an Ant build script called build.xml. You create this script from a plugin.xml file by choosing from the context menu Create Ant Build File. When it runs the build script, Ant includes settings from the file. Open that file in an editor, and add an entry for the bin.includes variable. Add a pattern such as images/*.gif

to add all GIF files in the images directory.

Then, rerun the Ant build script to generate a runtime JAR including the resources you just specified. Check to see whether the created JAR includes the resources you intended.

See Also:


Back to the top