Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ How do I add images and other resources to a runtime JAR file?"

 
Line 20: Line 20:
  
 
[[FAQ_Can_I_add_icons_declared_by_my_%3Ctt%3Eplugin.xml%3C%2Ftt%3E_in_the_runtime_JAR%3F]]
 
[[FAQ_Can_I_add_icons_declared_by_my_%3Ctt%3Eplugin.xml%3C%2Ftt%3E_in_the_runtime_JAR%3F]]
 +
 +
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Revision as of 16:12, 14 March 2006

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 build.properties 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:

[[FAQ_Can_I_add_icons_declared_by_my_%3Ctt%3Eplugin.xml%3C%2Ftt%3E_in_the_runtime_JAR%3F]]


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top