Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Categories and headless update site generation
Categories and headless update site generation [message #554211] Fri, 20 August 2010 13:57
Steve Hostettler is currently offline Steve Hostettler
Messages: 3
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------090901090506050003030809
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi experts,

I know my title sounds familliar to you. Indeed I went through many
resources (also on this newsgroup) without finding an actual solution.

My goal is to completely automate the build process of my update site
using hudson.

Basically I'd like to have an update site with 1 category called
Model-Checker and which contains 1 feature. It works except for the
categories.

I use Helios on max os x.

Hereafter my site.xml and category.xml.

To generate my update site I do the following:

1) copy site.xml and category into directory http://myserver/updates
2) Copy all the previously generated jar (feature + plugin)
3) On the server (which is also the hudson server) I run

java
-jar
$ECLIPSE_HOME/plugins/org.eclipse.equinox.launcher_1.1.0.v20 100507.jar
-application org.eclipse.equinox.p2.publisher.UpdateSitePublisher
-source $WORKSPACE/AlPiNA.site/dist/
-compress -publishArtifacts
-consoleLog
-artifactRepository file:/$WORKSPACE/AlPiNA.site/dist
-metadataRepository file:/$WORKSPACE/AlPiNA.site/dist

and

java
-jar
$ECLIPSE_HOME/plugins/org.eclipse.equinox.launcher_1.1.0.v20 100507.jar
-application org.eclipse.equinox.p2.publisher.CategoryPublisher
-consoleLog
-metadataRepository file:/$WORKSPACE/AlPiNA.site/dist
-categoryDefinition file:/$WORKSPACE/AlPiNA.site/dist/category.xml
-categoryQualifier
-compress

The problem is that using the "Install new Software" menu I have to
unclick the group items by category. The point is that it is an extra
click for the user and a bit counter-intuive.
Is it possible that the problem is hidden in way I generate the feature?

I obviouly miss something, it would be great of you to point it out.


Second question : Does eclipse keep a cache of the update sites and if
yes how can disable it. It is really annoying to have to stop eclipse
during development.

Many thanks in advance

Steve


--------------090901090506050003030809
Content-Type: text/xml;
name="site.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="site.xml"

<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="http://alpina.unige.ch/updates/site.xml">
This site contains plugins and features for the Algebric Petri Net Analyzer. Its requires the openArchitectureWare Classic, Core and XText plugins.
</description>
<feature url="features/AlPiNA_0.0.0.0000.jar" id="AlPiNA" version="0.0.0.0000">
<category name="Model Checker"/>
</feature>
<category-def name="Model Checker" label="Model Checker">
<description>
Model Checking Tools for High Level Nets
</description>
</category-def>
</site>

--------------090901090506050003030809
Content-Type: text/xml;
name="category.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="category.xml"

<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="http://alpina.unige.ch/updates/site.xml">
This site contains plugins and features for the Algebric Petri Net Analyzer. Its requires the openArchitectureWare Classic, Core and XText plugins.
</description>
<feature url="features/AlPiNA_0.0.0.0000.jar" id="AlPiNA" version="0.0.0.0000">
<category name="Model Checker"/>
</feature>
<category-def name="Model Checker" label="Model Checker">
<description>
Model Checking Tools for High Level Nets
</description>
</category-def>
</site>

--------------090901090506050003030809--
Previous Topic:Categories and headless update site generation
Next Topic:duplicate licenses in site
Goto Forum:
  


Current Time: Sun Sep 21 06:13:20 GMT 2014

Powered by FUDForum. Page generated in 0.01593 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software