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 What is the use of the build.xml file?"

 
m
Line 1: Line 1:
The <tt>build.xml</tt> file is an Ant script that is
+
The <tt>build.xml</tt> file is an Ant script that is created by the PDE to take your plug-in components and combine them into a deployable format. This file compiles and archives your plug-in source code into a single JAR file. The <tt>build.properties</tt> file controls what goes into your plug-in distribution.
created by the PDE to take your plug-in components and
+
combine them into a deployable format. This file compiles and archives
+
your plug-in source code into a single JAR file. The <tt>build.properties</tt>
+
file controls what goes into your plug-in distribution.
+
 
+
 
+
 
+
The <tt>build.xml</tt> file can be created by using the context
+
menu on <tt>plugin.xml</tt> and selecting '''PDE Tools &gt; Create Ant Build File'''.
+
 
+
 
+
 
+
Ant build files are low-level mechanisms to package up plug-ins. A much easier
+
way to share and deploy plug-ins is to create a feature for your plug-in
+
and then an update site. The Update Site Editor has a very handy
+
button, '''Build All...''', that will create the <tt>build.xml</tt> behind the
+
scenes, run it, and collect all the output without cluttering your plug-in
+
and feature projects.
+
 
+
 
+
  
 +
The <tt>build.xml</tt> file can be created by using the context  menu on <tt>plugin.xml</tt> and selecting '''PDE Tools &gt; Create Ant Build File'''.
  
 +
Ant build files are low-level mechanisms to package up plug-ins. A much easier  way to share and deploy plug-ins is to create a feature for your plug-in and then an update site. The Update Site Editor has a very handy button, '''Build All...''', that will create the <tt>build.xml</tt> behind the scenes, run it, and collect all the output without cluttering your plug-in and feature projects.
  
 
== See Also: ==
 
== See Also: ==
 
+
*[[FAQ When is the build.xml script executed?]]
 
+
*[[FAQ How do I create a feature?]]
[[FAQ_When_is_the_%3Ctt%3Ebuild.xml%3C%2Ftt%3E_script_executed%3F]]
+
*[[FAQ How do I create an update site site.xml?]]
 
+
*[[FAQ What is Ant?]]
 
+
[[FAQ_How_do_I_create_a_feature%3F]]
+
 
+
 
+
[[FAQ_How_do_I_create_an_update_site_%28%3Ctt%3Esite.xml%3C%2Ftt%3E%29%3F]]
+
 
+
 
+
[[FAQ_What_is_Ant%3F]]
+

Revision as of 22:28, 29 May 2006

The build.xml file is an Ant script that is created by the PDE to take your plug-in components and combine them into a deployable format. This file compiles and archives your plug-in source code into a single JAR file. The build.properties file controls what goes into your plug-in distribution.

The build.xml file can be created by using the context menu on plugin.xml and selecting PDE Tools > Create Ant Build File.

Ant build files are low-level mechanisms to package up plug-ins. A much easier way to share and deploy plug-ins is to create a feature for your plug-in and then an update site. The Update Site Editor has a very handy button, Build All..., that will create the build.xml behind the scenes, run it, and collect all the output without cluttering your plug-in and feature projects.

See Also:

Back to the top