Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Problems building an update site with bucminster
Problems building an update site with bucminster [message #378400] Thu, 03 July 2008 12:59 Go to next message
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
I have been trying to get started with Buckminster by building an update
site. I have followed the example at
http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site. and
created an update site project with cspec. Invoking the build.site action
runs successfully, but the resulting output is not what I was expecting
for an update site. I was expecting the site to contain the site.xml,
index.html along with populated plugins and features directories. Instead
the site contains a file for each plugin with name like
<plugin_name>_<version>-osgi.bundle.

Are my expectations incorrect, or did I mess up the cspec. The cspec file
is shown at the end of this post.

I am running with eclipse 3.4.

Thanks in advance
Rich Scott

<?xml version="1.0" encoding="UTF-8"?>
<cs:cspec xmlns:cs="http://www.eclipse.org/buckminster/CSpec-1.0"
name="org.test.sample.updatesite" componentType="buckminster"
version="1.0.0" versionType="OSGi">
<cs:dependencies>
<cs:dependency name="org.test.sample"
componentType="eclipse.feature"/>
</cs:dependencies>
<cs:artifacts>
<cs:private name="site.rootFiles" path="index.html"/>
<cs:private name="site.template" path="site.xml"/>
</cs:artifacts>
<cs:actions>
<cs:public name="build.site" actor="ant">
<cs:actorProperties>
<cs:property key="buildFileId"
value="buckminster.pdetasks"/>
<cs:property key="targets" value="create.site"/>
</cs:actorProperties>
<cs:properties>
<cs:property key="site.extra.suffix" value="_dev"/>
<cs:property key="site.name" value="sample.updatesite"/>
</cs:properties>
<cs:prerequisites>
<cs:attribute name="bundle.jars" alias="plugins"/>
<cs:attribute name="feature.jars" alias="features"/>
<cs:attribute name="site.rootFiles" alias="rootFiles"/>
<cs:attribute name="site.template" alias="template"/>
</cs:prerequisites>
<cs:products alias="action.output" base="site/"/>
</cs:public>
</cs:actions>
<cs:groups>
<cs:private name="Basic">
<cs:attribute name="feature.jars" component="org.test.sample"/>
</cs:private>
<cs:private name="bundle.jars">
<cs:attribute name="bundle.jars" component="org.test.sample"/>
</cs:private>
<cs:private name="feature.jars">
<cs:attribute name="feature.jars" component="org.test.sample"/>
</cs:private>
</cs:groups>
</cs:cspec>
Re: Problems building an update site with bucminster [message #378402 is a reply to message #378400] Thu, 03 July 2008 13:30 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Rich Scott wrote:
> I have been trying to get started with Buckminster by building an update
> site. I have followed the example at
> http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site.
> and created an update site project with cspec. Invoking the build.site
> action runs successfully, but the resulting output is not what I was
> expecting for an update site. I was expecting the site to contain the
> site.xml, index.html along with populated plugins and features
> directories. Instead the site contains a file for each plugin with name
> like <plugin_name>_<version>-osgi.bundle.

You are looking at the individual builds of each component. There will
be one just like it named <your update site>_<version>-buckminster. In
that folder, you will find folder name site. This folder contains a zip
file which in turn contains the complete update site.

Regards,
Thomas Hallgren
Re: Problems building an update site with bucminster [message #378404 is a reply to message #378402] Thu, 03 July 2008 13:50 Go to previous messageGo to next message
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
Thomas Hallgren wrote:

> Rich Scott wrote:
>> I have been trying to get started with Buckminster by building an update
>> site. I have followed the example at
>> http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site.
>> and created an update site project with cspec. Invoking the build.site
>> action runs successfully, but the resulting output is not what I was
>> expecting for an update site. I was expecting the site to contain the
>> site.xml, index.html along with populated plugins and features
>> directories. Instead the site contains a file for each plugin with name
>> like <plugin_name>_<version>-osgi.bundle.

> You are looking at the individual builds of each component. There will
> be one just like it named <your update site>_<version>-buckminster. In
> that folder, you will find folder name site. This folder contains a zip
> file which in turn contains the complete update site.

> Regards,
> Thomas Hallgren
Thomas,

Thanks for the insight. That was easy.

I need to have a p2 enabled update site. Can I configure Buckminster to
use the PDE build support for p2 by adding the required *p2* properties
somewhere, or do I need to incorporate p2 agent into the build stream?

An suggestions on the best direction or pointers to reference info would
be appreciated.

Thanks
Rich
Re: Problems building an update site with bucminster [message #378406 is a reply to message #378404] Thu, 03 July 2008 13:57 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Rich,
Buckminster doesn't have anything built in for this (yet). For our own
purposes, I created an ant target that looks like this:


<target name="p2ize.site">
<delete dir="${output.folder}" />
<mkdir dir="${output.folder}" />
<unzip src="${input.file}" dest="${output.folder}/unzipped" />
<delete file="${output.folder}/unzipped/pack.properties" />
<pathconvert property="siteURL" dirsep="/">
<path location="${output.folder}/unzipped/"/>
</pathconvert>
<java jar="${launcher.jar}" fork="true" failonerror="true">
<arg value="-application" />
<arg
value="org.eclipse.equinox.p2.metadata.generator.EclipseGenerator " />
<arg value="-updatesite" />
<arg file="${output.folder}/unzipped" />
<arg value="-site"/>
<arg value="file:${siteURL}/site.xml" />
<arg value="-metadataRepository"/>
<arg value="file:${siteURL}" />
<arg value="-metadataRepositoryName"/>
<arg value="Buckminster Update Site" />
<arg value="-artifactRepository"/>
<arg value="file:${siteURL}" />
<arg value="-artifactRepositoryName"/>
<arg value="Buckminster Artifacts" />
<arg value="-compress"/>
<arg value="-reusePack200Files" />
</java>
<zip basedir="${output.folder}/unzipped"
destfile="${output.folder}/${subject.file}" />
<delete dir="${output.folder}/unzipped" />
</target>

(you will find it in the make/eclipse-signing.ant file in the source of
the org.eclipse.buckminster component)

Regards,
Thomas Hallgren


Rich Scott wrote:
> Thomas Hallgren wrote:
>
>> Rich Scott wrote:
>>> I have been trying to get started with Buckminster by building an
>>> update site. I have followed the example at
>>> http://wiki.eclipse.org/Buckminster/Examples/Building_an_Upd ate_Site.
>>> and created an update site project with cspec. Invoking the
>>> build.site action runs successfully, but the resulting output is not
>>> what I was expecting for an update site. I was expecting the site to
>>> contain the site.xml, index.html along with populated plugins and
>>> features directories. Instead the site contains a file for each
>>> plugin with name like <plugin_name>_<version>-osgi.bundle.
>
>> You are looking at the individual builds of each component. There will
>> be one just like it named <your update site>_<version>-buckminster. In
>> that folder, you will find folder name site. This folder contains a
>> zip file which in turn contains the complete update site.
>
>> Regards,
>> Thomas Hallgren
> Thomas,
>
> Thanks for the insight. That was easy.
> I need to have a p2 enabled update site. Can I configure Buckminster to
> use the PDE build support for p2 by adding the required *p2* properties
> somewhere, or do I need to incorporate p2 agent into the build stream?
>
> An suggestions on the best direction or pointers to reference info would
> be appreciated.
>
> Thanks
> Rich
>
>
>
Previous Topic:Unable to locate secure storage module (headless mode)
Next Topic:Truncated plugin names
Goto Forum:
  


Current Time: Fri Apr 26 14:51:26 GMT 2024

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

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

Back to the top