Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Materialzing a custom target platform from multiple repositories
Materialzing a custom target platform from multiple repositories [message #412222] Thu, 30 July 2009 08:56 Go to next message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi,

I now have an example RCP-product build working. Yay! However, I still have
a few things to achieve before I can use buckminster for 'real' builds.

One of those things is having a target platform which consists of multiple
feature from different locations. For example to include the emf runtime as
well as rcp. One idea I had was to create a new feautre project and have the
feature.xml include all the required features of the targetPlatform and then
materialize this.

I tried to test this by modifying my example MailApp but it doesn't work. My
guess is the p2 materilizer is treat the feature as checked into a
repository subversion and is treating it as a regular http server, but
chances are my configuration is wrong :) I am getting the following error.

INFO: import 'com.mialos.tutorial.mailapp.releng/targetPlatform.mspec'
30-Jul-2009 09:36:00
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
30-Jul-2009 09:36:00 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Subversion'@192.168.1.75:80
ERROR [0001] : No repository found at
http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
ERROR: No repository found at
http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
ERROR: Errors and Warnings
org.eclipse.core.runtime.CoreException: Errors and Warnings
at
org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains: [0001] : No repository found at
http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
INFO: TAG-ID 0001 = Query for
com.mialos.tutorial.mailapp.targetplatform:eclipse.feature


Here is my configuration.

Thanks,
Tas

<?xml version="1.0" encoding="UTF-8"?>
<md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
installLocation="target"
materializer="p2"
name="Target Platform MSPEC"
url="targetPlatform.cquery"/>

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="mailApp.rmap">
<cq:rootRequest name="com.mialos.tutorial.mailapp.targetplatform"
componentType="eclipse.feature"/>
<cq:property key="target.arch" value="*"/>
<cq:property key="target.os" value="*"/>
<cq:property key="target.ws" value="*"/>
<cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
</cq:componentQuery>

<rmap xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pmp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">

<searchPath name="com.mialos.tutorial">
<provider readerType="svn"
componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
source="true">
<uri
format="http://192.168.1.75/svn/sandbox/tutorial/trunk/{0}">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>


<searchPath name="org.eclipse">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature" mutable="false" source="false">
<uri
format=" http://download.eclipse.org/eclipse/updates/3.5?importType=b inary"/>
</provider>
</searchPath>

<locator searchPathRef="com.mialos.tutorial"
pattern="^com\.mialos\.tutorial(\..+)?"/>
<locator searchPathRef="org.eclipse" pattern=".*" />

</rmap>
Re: Materialzing a custom target platform from multiple repositories [message #413435 is a reply to message #412222] Thu, 30 July 2009 09:17 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Tas,
Try using an mspec that excludes the feature from materialization. Like so:

<?xml version="1.0" encoding="UTF-8"?>
<md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
installLocation="target"
materializer="p2"
name="Target Platform MSPEC"
url="targetPlatform.cquery">
<mspecNode namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform " exclude="true"/>
</mspec>

An alternative is to let the feature end up in your workspace using an mspec node like:

<mspecNode namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform " materializer="workspace"/>

Regards,
Thomas Hallgren


Tas Frangoullides wrote:
> Hi,
>
> I now have an example RCP-product build working. Yay! However, I still
> have a few things to achieve before I can use buckminster for 'real'
> builds.
>
> One of those things is having a target platform which consists of
> multiple feature from different locations. For example to include the
> emf runtime as well as rcp. One idea I had was to create a new feautre
> project and have the feature.xml include all the required features of
> the targetPlatform and then materialize this.
>
> I tried to test this by modifying my example MailApp but it doesn't
> work. My guess is the p2 materilizer is treat the feature as checked
> into a repository subversion and is treating it as a regular http
> server, but chances are my configuration is wrong :) I am getting the
> following error.
>
> INFO: import 'com.mialos.tutorial.mailapp.releng/targetPlatform.mspec'
> 30-Jul-2009 09:36:00
> org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
> INFO: basic authentication scheme selected
> 30-Jul-2009 09:36:00 org.apache.commons.httpclient.HttpMethodDirector
> processWWWAuthChallenge
> INFO: No credentials available for BASIC 'Subversion'@192.168.1.75:80
> ERROR [0001] : No repository found at
> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>
> ERROR: No repository found at
> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>
> ERROR: Errors and Warnings
> org.eclipse.core.runtime.CoreException: Errors and Warnings
> at
> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Contains: [0001] : No repository found at
> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>
> INFO: TAG-ID 0001 = Query for
> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>
>
> Here is my configuration.
>
> Thanks,
> Tas
>
> <?xml version="1.0" encoding="UTF-8"?>
> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
> installLocation="target"
> materializer="p2"
> name="Target Platform MSPEC"
> url="targetPlatform.cquery"/>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="mailApp.rmap">
> <cq:rootRequest name="com.mialos.tutorial.mailapp.targetplatform"
> componentType="eclipse.feature"/>
> <cq:property key="target.arch" value="*"/>
> <cq:property key="target.os" value="*"/>
> <cq:property key="target.ws" value="*"/>
> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
> </cq:componentQuery>
>
> <rmap xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pmp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
>
> <searchPath name="com.mialos.tutorial">
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
> source="true">
> <uri
> format="http://192.168.1.75/svn/sandbox/tutorial/trunk/{0}">
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
>
> <searchPath name="org.eclipse">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature" mutable="false"
> source="false">
> <uri
> format=" http://download.eclipse.org/eclipse/updates/3.5?importType=b inary"/>
>
> </provider>
> </searchPath>
>
> <locator searchPathRef="com.mialos.tutorial"
> pattern="^com\.mialos\.tutorial(\..+)?"/>
> <locator searchPathRef="org.eclipse" pattern=".*" />
>
> </rmap>
>
>
Re: Materialzing a custom target platform from multiple repositories [message #415357 is a reply to message #413435] Thu, 30 July 2009 10:05 Go to previous messageGo to next message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Thomas.

Thanks. Excluding the feature worked but materialzing to the workspace
didn't becuase I have specified an installLocation.

ERROR [0001] : Invalid project description.
[0001] : OK
ERROR [0001] :
'target/features/com.mialos.tutorial.mailapp.targetplatform' is not a valid
location. The location is relative to undefined workspace path va
riable 'target'.
INFO: TAG-ID 0001 = Query for
com.mialos.tutorial.mailapp.targetplatform:eclipse.feature

Specifying an installLocation in the mspecNode appears to fix this. Is this
OK?

<md:mspecNode namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
materializer="workspace" installLocation="${workspace.root}"/>

Thanks,
Tas


"Thomas Hallgren" <thomas@tada.se> wrote in message
news:h4rofm$ndp$1@build.eclipse.org...
> Hi Tas,
> Try using an mspec that excludes the feature from materialization. Like
> so:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
> installLocation="target"
> materializer="p2"
> name="Target Platform MSPEC"
> url="targetPlatform.cquery">
> <mspecNode namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
> exclude="true"/>
> </mspec>
>
> An alternative is to let the feature end up in your workspace using an
> mspec node like:
>
> <mspecNode namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
> materializer="workspace"/>
>
> Regards,
> Thomas Hallgren
>
>
> Tas Frangoullides wrote:
>> Hi,
>>
>> I now have an example RCP-product build working. Yay! However, I still
>> have a few things to achieve before I can use buckminster for 'real'
>> builds.
>>
>> One of those things is having a target platform which consists of
>> multiple feature from different locations. For example to include the emf
>> runtime as well as rcp. One idea I had was to create a new feautre
>> project and have the feature.xml include all the required features of the
>> targetPlatform and then materialize this.
>>
>> I tried to test this by modifying my example MailApp but it doesn't work.
>> My guess is the p2 materilizer is treat the feature as checked into a
>> repository subversion and is treating it as a regular http server, but
>> chances are my configuration is wrong :) I am getting the following
>> error.
>>
>> INFO: import 'com.mialos.tutorial.mailapp.releng/targetPlatform.mspec'
>> 30-Jul-2009 09:36:00
>> org.apache.commons.httpclient.auth.AuthChallengeProcessor
>> selectAuthScheme
>> INFO: basic authentication scheme selected
>> 30-Jul-2009 09:36:00 org.apache.commons.httpclient.HttpMethodDirector
>> processWWWAuthChallenge
>> INFO: No credentials available for BASIC 'Subversion'@192.168.1.75:80
>> ERROR [0001] : No repository found at
>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>> ERROR: No repository found at
>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>> ERROR: Errors and Warnings
>> org.eclipse.core.runtime.CoreException: Errors and Warnings
>> at
>> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
>> at
>> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
>> at
>> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>> Contains: [0001] : No repository found at
>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>> INFO: TAG-ID 0001 = Query for
>> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>>
>>
>> Here is my configuration.
>>
>> Thanks,
>> Tas
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
>> installLocation="target"
>> materializer="p2"
>> name="Target Platform MSPEC"
>> url="targetPlatform.cquery"/>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cq:componentQuery
>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>> resourceMap="mailApp.rmap">
>> <cq:rootRequest name="com.mialos.tutorial.mailapp.targetplatform"
>> componentType="eclipse.feature"/>
>> <cq:property key="target.arch" value="*"/>
>> <cq:property key="target.os" value="*"/>
>> <cq:property key="target.ws" value="*"/>
>> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
>> </cq:componentQuery>
>>
>> <rmap xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>> xmlns:pmp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0"
>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
>>
>> <searchPath name="com.mialos.tutorial">
>> <provider readerType="svn"
>> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
>> source="true">
>> <uri
>> format="http://192.168.1.75/svn/sandbox/tutorial/trunk/{0}">
>> <bc:propertyRef key="buckminster.component" />
>> </uri>
>> </provider>
>> </searchPath>
>>
>>
>> <searchPath name="org.eclipse">
>> <provider readerType="eclipse.import"
>> componentTypes="osgi.bundle,eclipse.feature" mutable="false"
>> source="false">
>> <uri
>> format=" http://download.eclipse.org/eclipse/updates/3.5?importType=b inary"/>
>> </provider>
>> </searchPath>
>>
>> <locator searchPathRef="com.mialos.tutorial"
>> pattern="^com\.mialos\.tutorial(\..+)?"/>
>> <locator searchPathRef="org.eclipse" pattern=".*" />
>>
>> </rmap>
>>
Re: Materialzing a custom target platform from multiple repositories [message #419787 is a reply to message #415357] Thu, 30 July 2009 11:39 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Tas,
This sounds like a bug to me. The workspace materializer should select the workspace as its install location, not use
the default for the target platform. Can you please enter a bugzilla on this?

Thanks,
Thomas Hallgren

Tas Frangoullides wrote:
> Hi Thomas.
>
> Thanks. Excluding the feature worked but materialzing to the workspace
> didn't becuase I have specified an installLocation.
>
> ERROR [0001] : Invalid project description.
> [0001] : OK
> ERROR [0001] :
> 'target/features/com.mialos.tutorial.mailapp.targetplatform' is not a
> valid location. The location is relative to undefined workspace path va
> riable 'target'.
> INFO: TAG-ID 0001 = Query for
> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>
> Specifying an installLocation in the mspecNode appears to fix this. Is
> this OK?
>
> <md:mspecNode
> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
> materializer="workspace" installLocation="${workspace.root}"/>
>
> Thanks,
> Tas
>
>
> "Thomas Hallgren" <thomas@tada.se> wrote in message
> news:h4rofm$ndp$1@build.eclipse.org...
>> Hi Tas,
>> Try using an mspec that excludes the feature from materialization.
>> Like so:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
>> installLocation="target"
>> materializer="p2"
>> name="Target Platform MSPEC"
>> url="targetPlatform.cquery">
>> <mspecNode
>> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
>> exclude="true"/>
>> </mspec>
>>
>> An alternative is to let the feature end up in your workspace using an
>> mspec node like:
>>
>> <mspecNode
>> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
>> materializer="workspace"/>
>>
>> Regards,
>> Thomas Hallgren
>>
>>
>> Tas Frangoullides wrote:
>>> Hi,
>>>
>>> I now have an example RCP-product build working. Yay! However, I
>>> still have a few things to achieve before I can use buckminster for
>>> 'real' builds.
>>>
>>> One of those things is having a target platform which consists of
>>> multiple feature from different locations. For example to include the
>>> emf runtime as well as rcp. One idea I had was to create a new
>>> feautre project and have the feature.xml include all the required
>>> features of the targetPlatform and then materialize this.
>>>
>>> I tried to test this by modifying my example MailApp but it doesn't
>>> work. My guess is the p2 materilizer is treat the feature as checked
>>> into a repository subversion and is treating it as a regular http
>>> server, but chances are my configuration is wrong :) I am getting the
>>> following error.
>>>
>>> INFO: import 'com.mialos.tutorial.mailapp.releng/targetPlatform.mspec'
>>> 30-Jul-2009 09:36:00
>>> org.apache.commons.httpclient.auth.AuthChallengeProcessor
>>> selectAuthScheme
>>> INFO: basic authentication scheme selected
>>> 30-Jul-2009 09:36:00 org.apache.commons.httpclient.HttpMethodDirector
>>> processWWWAuthChallenge
>>> INFO: No credentials available for BASIC 'Subversion'@192.168.1.75:80
>>> ERROR [0001] : No repository found at
>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>> ERROR: No repository found at
>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>> ERROR: Errors and Warnings
>>> org.eclipse.core.runtime.CoreException: Errors and Warnings
>>> at
>>> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
>>> at
>>> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
>>> at
>>> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>> Contains: [0001] : No repository found at
>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>> INFO: TAG-ID 0001 = Query for
>>> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>>>
>>>
>>> Here is my configuration.
>>>
>>> Thanks,
>>> Tas
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
>>> installLocation="target"
>>> materializer="p2"
>>> name="Target Platform MSPEC"
>>> url="targetPlatform.cquery"/>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <cq:componentQuery
>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>> resourceMap="mailApp.rmap">
>>> <cq:rootRequest name="com.mialos.tutorial.mailapp.targetplatform"
>>> componentType="eclipse.feature"/>
>>> <cq:property key="target.arch" value="*"/>
>>> <cq:property key="target.os" value="*"/>
>>> <cq:property key="target.ws" value="*"/>
>>> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
>>> </cq:componentQuery>
>>>
>>> <rmap xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>> xmlns:pmp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0"
>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
>>>
>>> <searchPath name="com.mialos.tutorial">
>>> <provider readerType="svn"
>>> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
>>> source="true">
>>> <uri
>>> format="http://192.168.1.75/svn/sandbox/tutorial/trunk/{0}">
>>> <bc:propertyRef key="buckminster.component" />
>>> </uri>
>>> </provider>
>>> </searchPath>
>>>
>>>
>>> <searchPath name="org.eclipse">
>>> <provider readerType="eclipse.import"
>>> componentTypes="osgi.bundle,eclipse.feature" mutable="false"
>>> source="false">
>>> <uri
>>> format=" http://download.eclipse.org/eclipse/updates/3.5?importType=b inary"/>
>>> </provider>
>>> </searchPath>
>>>
>>> <locator searchPathRef="com.mialos.tutorial"
>>> pattern="^com\.mialos\.tutorial(\..+)?"/>
>>> <locator searchPathRef="org.eclipse" pattern=".*" />
>>>
>>> </rmap>
>>>
Re: Materialzing a custom target platform from multiple repositories [message #426693 is a reply to message #419787] Thu, 30 July 2009 13:54 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Ok. I've opened a new bug for it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285155


"Thomas Hallgren" <thomas@tada.se> wrote in message
news:h4s0on$5ud$1@build.eclipse.org...
> Hi Tas,
> This sounds like a bug to me. The workspace materializer should select the
> workspace as its install location, not use the default for the target
> platform. Can you please enter a bugzilla on this?
>
> Thanks,
> Thomas Hallgren
>
> Tas Frangoullides wrote:
>> Hi Thomas.
>>
>> Thanks. Excluding the feature worked but materialzing to the workspace
>> didn't becuase I have specified an installLocation.
>>
>> ERROR [0001] : Invalid project description.
>> [0001] : OK
>> ERROR [0001] :
>> 'target/features/com.mialos.tutorial.mailapp.targetplatform' is not a
>> valid location. The location is relative to undefined workspace path va
>> riable 'target'.
>> INFO: TAG-ID 0001 = Query for
>> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>>
>> Specifying an installLocation in the mspecNode appears to fix this. Is
>> this OK?
>>
>> <md:mspecNode
>> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
>> materializer="workspace" installLocation="${workspace.root}"/>
>>
>> Thanks,
>> Tas
>>
>>
>> "Thomas Hallgren" <thomas@tada.se> wrote in message
>> news:h4rofm$ndp$1@build.eclipse.org...
>>> Hi Tas,
>>> Try using an mspec that excludes the feature from materialization. Like
>>> so:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
>>> installLocation="target"
>>> materializer="p2"
>>> name="Target Platform MSPEC"
>>> url="targetPlatform.cquery">
>>> <mspecNode
>>> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
>>> exclude="true"/>
>>> </mspec>
>>>
>>> An alternative is to let the feature end up in your workspace using an
>>> mspec node like:
>>>
>>> <mspecNode
>>> namePattern="com\.mialos\.tutorial\.mailapp\.targetplatform "
>>> materializer="workspace"/>
>>>
>>> Regards,
>>> Thomas Hallgren
>>>
>>>
>>> Tas Frangoullides wrote:
>>>> Hi,
>>>>
>>>> I now have an example RCP-product build working. Yay! However, I still
>>>> have a few things to achieve before I can use buckminster for 'real'
>>>> builds.
>>>>
>>>> One of those things is having a target platform which consists of
>>>> multiple feature from different locations. For example to include the
>>>> emf runtime as well as rcp. One idea I had was to create a new feautre
>>>> project and have the feature.xml include all the required features of
>>>> the targetPlatform and then materialize this.
>>>>
>>>> I tried to test this by modifying my example MailApp but it doesn't
>>>> work. My guess is the p2 materilizer is treat the feature as checked
>>>> into a repository subversion and is treating it as a regular http
>>>> server, but chances are my configuration is wrong :) I am getting the
>>>> following error.
>>>>
>>>> INFO: import 'com.mialos.tutorial.mailapp.releng/targetPlatform.mspec'
>>>> 30-Jul-2009 09:36:00
>>>> org.apache.commons.httpclient.auth.AuthChallengeProcessor
>>>> selectAuthScheme
>>>> INFO: basic authentication scheme selected
>>>> 30-Jul-2009 09:36:00 org.apache.commons.httpclient.HttpMethodDirector
>>>> processWWWAuthChallenge
>>>> INFO: No credentials available for BASIC 'Subversion'@192.168.1.75:80
>>>> ERROR [0001] : No repository found at
>>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>>> ERROR: No repository found at
>>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>>> ERROR: Errors and Warnings
>>>> org.eclipse.core.runtime.CoreException: Errors and Warnings
>>>> at
>>>> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
>>>> at
>>>> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
>>>> at
>>>> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>> Contains: [0001] : No repository found at
>>>> http://192.168.1.75/svn/sandbox/tutorial/trunk/com.mialos.tu torial.mailapp.targetplatform.
>>>> INFO: TAG-ID 0001 = Query for
>>>> com.mialos.tutorial.mailapp.targetplatform:eclipse.feature
>>>>
>>>>
>>>> Here is my configuration.
>>>>
>>>> Thanks,
>>>> Tas
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
>>>> installLocation="target"
>>>> materializer="p2"
>>>> name="Target Platform MSPEC"
>>>> url="targetPlatform.cquery"/>
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <cq:componentQuery
>>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>>> resourceMap="mailApp.rmap">
>>>> <cq:rootRequest name="com.mialos.tutorial.mailapp.targetplatform"
>>>> componentType="eclipse.feature"/>
>>>> <cq:property key="target.arch" value="*"/>
>>>> <cq:property key="target.os" value="*"/>
>>>> <cq:property key="target.ws" value="*"/>
>>>> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
>>>> </cq:componentQuery>
>>>>
>>>> <rmap xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>>> xmlns:pmp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0"
>>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">
>>>>
>>>> <searchPath name="com.mialos.tutorial">
>>>> <provider readerType="svn"
>>>> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
>>>> source="true">
>>>> <uri
>>>> format="http://192.168.1.75/svn/sandbox/tutorial/trunk/{0}">
>>>> <bc:propertyRef key="buckminster.component" />
>>>> </uri>
>>>> </provider>
>>>> </searchPath>
>>>>
>>>>
>>>> <searchPath name="org.eclipse">
>>>> <provider readerType="eclipse.import"
>>>> componentTypes="osgi.bundle,eclipse.feature" mutable="false"
>>>> source="false">
>>>> <uri
>>>> format=" http://download.eclipse.org/eclipse/updates/3.5?importType=b inary"/>
>>>> </provider>
>>>> </searchPath>
>>>>
>>>> <locator searchPathRef="com.mialos.tutorial"
>>>> pattern="^com\.mialos\.tutorial(\..+)?"/>
>>>> <locator searchPathRef="org.eclipse" pattern=".*" />
>>>>
>>>> </rmap>
>>>>
Previous Topic:p2.director application is not available in headless buckminster
Next Topic:Resolving versions to subversion tags
Goto Forum:
  


Current Time: Mon Jan 20 17:18:43 GMT 2025

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

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

Back to the top