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 create an update site (site.xml)?"

m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Select '''File > New > Other... > Plug-in Development > Update Site Project'''. Open the Update Site Editor and add the features you want to publish. A site can contain multiple categories of features, and we added one for this example. After adding a feature, it has to be explicitly  published (Figure 4.6).
+
An update site may contain your own plugins, as well as public plugins mirrored.
  
Click '''Build All''' to build all features and plug-ins recursively required for this update site. The result is an update site that is ready to be used in your Navigator (Figure 4.7).
+
== create an own plugin ==
 +
 
 +
First create a new plugin project
 +
 
 +
New -> Plug-in Development -> Plug-in Project
 +
 
 +
[[Image:plugin.jpg]]
 +
 
 +
You can select a template for creating your project or even just create a blank one in case you know how things work.
 +
 
 +
Now you have to create your feature project.
 +
 
 +
New -> Plug-in Development -> Feature Project
 +
 
 +
[[Image:feature.jpg]]
 +
 
 +
Here is the point where you link your Plugin project with your Feature Project.
 +
 
 +
Open the feature.xml file on your Feature project.
 +
 
 +
On plugins tab click on add and select your project then save the file.
 +
 
 +
[[Image:feature-plugin.jpg]]
 +
 
 +
The last piece is the Update site project. See below
 +
 
 +
== create an update site out of installed plugins ==
 +
 
 +
To create it go to
 +
 
 +
New -> Plug-in Development -> Update Site Project
 +
 
 +
[[Image:site.jpg]]
 +
 
 +
Now we just have to link the Feature project with the Update site, and you're good to go.
 +
 
 +
To do that, open the site.xml file on your Site project.
 +
 
 +
Add Feature -> Select your project.
 +
 
 +
[[Image:site-feature.jpg]]
 +
 
 +
In case you want to add a category for your feature, just click on New Category,
 +
 
 +
name it as you want then drag the feature site over the category.
 +
 
 +
The category is the name displayed when a eclipse client is installing your plugin by update-site.
 +
 
 +
'''Save''' it then click on '''Build All''' to build all features and plug-ins recursively required for this update site.
 +
 
 +
You can simply drag the contents of your Update Site project to an file transfer protocol (FTP) client to publish at a Web site.
 +
 
 +
Alternatively, you can even test out the update site directly by selecting '''Help > Install New Software''', then '''Add > Local...''', find your update site in the file system, then accept all changes by pressing '''OK''', select your feature and proceed with the dialog ('''Next''').
  
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/site.png>
 
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.6'''&nbsp;&nbsp;Creating an update site
 
  
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/site-nav.png>
 
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.7'''&nbsp;&nbsp;Building features and plug-ins for an update site
 
  
You can simply drag the contents of the Hello World Update Site project to an  file transfer protocol (FTP) client to publish at a Web site. Alternatively, you can even test out the update site directly by selecting '''Help &gt; Software Updates &gt; Find and Install... &gt; Search for new features to install &gt; Add Local Site...''' and finding the workspace project on your local file system.
 
  
 
{{Template:FAQ_Tagline}}
 
{{Template:FAQ_Tagline}}
 +
[[Category:FAQ]]

Latest revision as of 02:29, 31 March 2010

An update site may contain your own plugins, as well as public plugins mirrored.

create an own plugin

First create a new plugin project

New -> Plug-in Development -> Plug-in Project

Plugin.jpg

You can select a template for creating your project or even just create a blank one in case you know how things work.

Now you have to create your feature project.

New -> Plug-in Development -> Feature Project

Feature.jpg

Here is the point where you link your Plugin project with your Feature Project.

Open the feature.xml file on your Feature project.

On plugins tab click on add and select your project then save the file.

Feature-plugin.jpg

The last piece is the Update site project. See below

create an update site out of installed plugins

To create it go to

New -> Plug-in Development -> Update Site Project

Site.jpg

Now we just have to link the Feature project with the Update site, and you're good to go.

To do that, open the site.xml file on your Site project.

Add Feature -> Select your project.

Site-feature.jpg

In case you want to add a category for your feature, just click on New Category,

name it as you want then drag the feature site over the category.

The category is the name displayed when a eclipse client is installing your plugin by update-site.

Save it then click on Build All to build all features and plug-ins recursively required for this update site.

You can simply drag the contents of your Update Site project to an file transfer protocol (FTP) client to publish at a Web site.

Alternatively, you can even test out the update site directly by selecting Help > Install New Software, then Add > Local..., find your update site in the file system, then accept all changes by pressing OK, select your feature and proceed with the dialog (Next).




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.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.