Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » missing native launcher?
missing native launcher? [message #557621] Wed, 08 September 2010 11:06 Go to next message
David  is currently offline David
Messages: 88
Registered: July 2009
Member
seems i am missing the native launcher after the p2.site has completed, I use the product.ant file and the *.cspecx

<project>
	 <pathconvert property="equinox.launcher.jar">
	   <first count="1">
	     <sort>
	       <fileset dir="${eclipse.home}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>
	       <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
	         <date/>
	       </reverse>
	     </sort>
	   </first>
	 </pathconvert>

	<target name="create.product">
		<property name="destination" location="${sp:destination}"/>
		<property name='org.eclipse.equinox.p2.roaming' value='true'/>
		<delete dir="${destination}"></delete>
		<makeurl property="repository" file="${sp:repository}"/>
		<mkdir dir="${destination}"/>
		<echoproperties ></echoproperties>
		<echo message="${equinox.launcher.jar}"/>
		<echo message="${repository}"/>
		<echo message="${destination}"/>
		<java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
			<arg value="-application"/>
			<arg value="org.eclipse.equinox.p2.director"/>
			<arg value="-artifactRepository"/>
			<arg value="${repository}"/>
			<arg value="-metadataRepository"/>
			<arg value="${repository}"/>
			<arg value="-destination"/>
			<arg value="${destination}"/>
			<arg value="-bundlepool"/>
			<arg value="${destination}"/>
			<arg value="-profile"/>
			<arg value="${profile}"/>
			<arg value="-profileProperties" />
			<arg value="org.eclipse.update.install.features=true" />
			<arg value="-installIU"/>
			<arg value="${iu}"/>
			<arg value="-p2.os" />
			<arg value="${target.os}" />
			<arg value="-p2.ws" />
			<arg value="${target.ws}" />
			<arg value="-p2.arch" />
			<arg value="${target.arch}" />
			<arg value="-consoleLog"/>
			<arg value="-roaming"/>
		</java>
	</target>
</project>


I read about the "-roaming" so i added that and removed the jvmargs, but still no native launcher.

The product file has the checkbox include native launcher artifacts checked. The PDE build gives me the native launcher but buckminster build doesn't. Probably some oversight somewhere from mypart..but where?

edited -spelling

[Updated on: Wed, 08 September 2010 11:07]

Report message to a moderator

Re: missing native launcher? [message #558152 is a reply to message #557621] Fri, 10 September 2010 11:12 Go to previous messageGo to next message
David  is currently offline David
Messages: 88
Registered: July 2009
Member
Went headless via hudson/buckminster plugin (using archived target), it builds, creates the site.p2 then runs create.product all ends in sucess, but still no native launcher (eclipse.exe) . If i copy the eclipse.exe in the product works fine, debug output doesn't give me any clues.

Any clues on where i should start to look?

best regards

David
Re: missing native launcher? [message #558314 is a reply to message #558152] Sat, 11 September 2010 06:28 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
Hi David,

I think your product (or defining feature) should include the
org.eclipse.equinox.executable feature to get these launchers.

Best regards,
Peter

David schrieb:
> Went headless via hudson/buckminster plugin (using archived target), it
> builds, creates the site.p2 then runs create.product all ends in sucess,
> but still no native launcher (eclipse.exe) . If i copy the eclipse.exe
> in the product works fine, debug output doesn't give me any clues.
> Any clues on where i should start to look?
>
> best regards
>
> David
Re: missing native launcher? [message #559030 is a reply to message #558314] Wed, 15 September 2010 11:29 Go to previous messageGo to next message
David  is currently offline David
Messages: 88
Registered: July 2009
Member
Yes the feature org.eclipse.equinox.executable was missing in my feature. But after an rebuild with buckminster and still i didn't get any native launcher.

When i looked a little closer to the feature that held the .product file i noticed that the .product file was not included in build.properties (doh) i remember i renamed it a while ago for testing with maven/tycho builds hence the problem.

if i included the "org.eclipse.equinox.executable" i got an "launcher.exe" + the "eclipse.exe", so i removed that feature and then the launcher.exe was gone after an rebuild.

Note on tycho and buckminster is that the directory structure does not really mix if you want to switch or test tycho, as tycho is dependant on that the .product file has the exact naming of the feature id +.product. Thus the suggested structure in the buckybook was no good. But as a sidenote i never got an good maven/build working for eclipse products as tycho was not really integrated with p2 yet it seems, i.e it ignored my p2.inf file for instance (that might have changed since i tested it the last time)

best regards

David
Re: missing native launcher? [message #559043 is a reply to message #559030] Wed, 15 September 2010 12:17 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
David schrieb:
> When i looked a little closer to the feature that held the .product file
> i noticed that the .product file was not included in build.properties
> (doh) i remember i renamed it a while ago for testing with maven/tycho
> builds hence the problem.
>

I never include the .product in my build.properties because it's only a
build artifact. Is it necessary to do this with buckminster? It
certainly isn't with pde build.

Peter
Re: missing native launcher? [message #559045 is a reply to message #557621] Wed, 15 September 2010 12:31 Go to previous messageGo to next message
David  is currently offline David
Messages: 88
Registered: July 2009
Member
At least that fixed the problem, i know that with PDE build its not needed, as that has been the escape so far to be able to do the builds.
Re: missing native launcher? [message #559207 is a reply to message #559043] Thu, 16 September 2010 00:10 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2500
Registered: July 2009
Senior Member
On 9/15/10 2:17 PM, Peter Kullmann wrote:
> I never include the .product in my build.properties because it's only a
> build artifact. Is it necessary to do this with buckminster? It
> certainly isn't with pde build.
>
Products that I build using buckminster does not include the .product
artifact in the binary result, so - not required.

Regards
- henrik
Re: missing native launcher? [message #559260 is a reply to message #559207] Thu, 16 September 2010 08:04 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Peter,

There's no need to include the .product file in your build.properties.
Its content is picked up from the source during publishing, not from the
built jar.

Regards,
Thomas Hallgren

On 2010-09-16 02:10, Henrik Lindberg wrote:
> On 9/15/10 2:17 PM, Peter Kullmann wrote:
>> I never include the .product in my build.properties because it's only a
>> build artifact. Is it necessary to do this with buckminster? It
>> certainly isn't with pde build.
>>
> Products that I build using buckminster does not include the .product
> artifact in the binary result, so - not required.
>
> Regards
> - henrik
Re: missing native launcher? [message #559370 is a reply to message #557621] Thu, 16 September 2010 13:37 Go to previous message
David  is currently offline David
Messages: 88
Registered: July 2009
Member
After a couple of rebuilds, i saw that i never cleaned my workspace in hudson.

Removing the .product file from build.properties then cleaning the buckminster workspace now gives me an product with the native launcher again.

Seems the old data in the workspace must have messed up things.

best regards

David
Previous Topic:Ant actor non-zero exit code does not terminate Buckminster
Next Topic:Could not instantiate provider org.eclipse.team.svn.core.svnnature
Goto Forum:
  


Current Time: Sat Oct 25 01:33:23 GMT 2014

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

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