Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Slicer mode for target platform?
Slicer mode for target platform? [message #1699537] Wed, 24 June 2015 20:26 Go to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Hi,

I am using Oomph to define my target platform and also to generate my .target file through the TargetDefinitionGenerator.

Up to now, I manually maintained the .target file and I am using the "slicer" mode in it, i.e. it does not require all dependencies to be available. When generating the file through Oomph, it uses "planner" instead, which makes my resolution fail (because I include Jetty 9.2, which has dependencies that are not available in Orbit or an other p2 repo, see https://dev.eclipse.org/mhonarc/lists/jetty-users/msg04454.html).

Is there any way to make Oomph use the slicer mode as well?

Best regards,
Kai
Re: Slicer mode for target platform? [message #1699588 is a reply to message #1699537] Thu, 25 June 2015 09:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Kai,

No, there's nothing for that yet, but certainly we could add a bit more
annotation magic to specify that. Please open an enhancement request.

On 24/06/2015 10:26 PM, Kai Kreuzer wrote:
> Hi,
>
> I am using Oomph to define my target platform and also to generate my
> .target file through the TargetDefinitionGenerator.
>
> Up to now, I manually maintained the .target file and I am using the
> "slicer" mode in it, i.e. it does not require all dependencies to be
> available. When generating the file through Oomph, it uses "planner"
> instead, which makes my resolution fail (because I include Jetty 9.2,
> which has dependencies that are not available in Orbit or an other p2
> repo, see
> https://dev.eclipse.org/mhonarc/lists/jetty-users/msg04454.html).
>
> Is there any way to make Oomph use the slicer mode as well?
>
> Best regards,
> Kai


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Slicer mode for target platform? [message #1699641 is a reply to message #1699588] Thu, 25 June 2015 13:03 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=470992
Re: Slicer mode for target platform? [message #1699733 is a reply to message #1699588] Fri, 26 June 2015 08:56 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Guys,

Actually this annotation detail is already available:

<?xml version="1.0" encoding="UTF-8"?>
<base:StringToStringMapEntry
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:base="http://www.eclipse.org/oomph/base/1.0"
key="includeMode">
<value>slicer</value>
</base:StringToStringMapEntry>

You can copy this XML snippet and paste it directly on the TargetDefinitionGenerator annotation ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 25.06.2015 um 11:18 schrieb Ed Merks:
> Kai,
>
> No, there's nothing for that yet, but certainly we could add a bit more annotation magic to specify that. Please open
> an enhancement request.
>
> On 24/06/2015 10:26 PM, Kai Kreuzer wrote:
>> Hi,
>>
>> I am using Oomph to define my target platform and also to generate my .target file through the
>> TargetDefinitionGenerator.
>>
>> Up to now, I manually maintained the .target file and I am using the "slicer" mode in it, i.e. it does not require
>> all dependencies to be available. When generating the file through Oomph, it uses "planner" instead, which makes my
>> resolution fail (because I include Jetty 9.2, which has dependencies that are not available in Orbit or an other p2
>> repo, see https://dev.eclipse.org/mhonarc/lists/jetty-users/msg04454.html).
>>
>> Is there any way to make Oomph use the slicer mode as well?
>>
>> Best regards,
>> Kai
>


Re: Slicer mode for target platform? [message #1699756 is a reply to message #1699733] Fri, 26 June 2015 11:23 Go to previous message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Hi Eike,

Do you mean like this?

      <targlet
          name="openHAB 2 Target Platform"
          activeRepositoryList="${eclipse.target.platform}">
        <annotation
            source="http:/www.eclipse.org/oomph/targlets/TargetDefinitionGenerator">
			<base:StringToStringMapEntry
				xmi:version="2.0"
				xmlns:xmi="http://www.omg.org/XMI"
				xmlns:base="http://www.eclipse.org/oomph/base/1.0"
				key="includeMode">
				<value>slicer</value>
			</base:StringToStringMapEntry>
          	<detail
              	key="location">
            	<value>${git.clone.openhab2.location/targetplatform/openhab.target}</value>
          	</detail>


Not sure if this will work, since I cannot even get this far. Note that my request was not (only) about the generated target file, but mainly about the TargletTask itself. This obviously still fails, if the target platform dependencies cannot be fully resolved:
  ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1435317671966
  ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: Jetty-OSGi-Jasper Integration 9.2.10.v20150310 (org.eclipse.jetty.osgi.boot.jsp 9.2.10.v20150310) requires 'package javax.el [3.0.0,3.1.0)' but it could not be found
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1435317671966
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.jetty.bundles.f.feature.group [9.2.10,9.3.0]

Regards,
Kai
Previous Topic:Creating a custom installer for a project outside the Project Catalogue
Next Topic:Using the "Setup Project Model" wizard--with newbie mistakes
Goto Forum:
  


Current Time: Thu Dec 26 19:26:08 GMT 2024

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

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

Back to the top