Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Upgrade to Helios Buckminster 3.6
Upgrade to Helios Buckminster 3.6 [message #550420] Fri, 30 July 2010 10:22 Go to next message
Oliver Raupach is currently offline Oliver RaupachFriend
Messages: 5
Registered: June 2010
Junior Member
Hi,

I upgraded to Helios/Buckminster 3.6. Before the upgrade I have had a running configuration.
Now the Buckminster->Invoke Action->create.product.zip result was a nearly empty zip-file.

Only the following files are included in the zip-file:
artifacts.xml
org.eclipse.equinox.p2.artifact.repository.prefs
.lock
1280484213402.profile.gz
1280484213489.profile.gz
org.eclipse.equinox.p2.artifact.repository.prefs
org.eclipse.equinox.p2.metadata.repository.prefs


What's going wrong with my build/config?

--

Oliver
Re: Upgrade to Helios Buckminster 3.6 [message #550613 is a reply to message #550420] Sat, 31 July 2010 09:50 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 07/30/2010 12:22 PM, Oliver Raupach wrote:
> Hi,
> I upgraded to Helios/Buckminster 3.6. Before the upgrade I have had a
> running configuration.
> Now the Buckminster->Invoke Action->create.product.zip result was a
> nearly empty zip-file.
>
> Only the following files are included in the zip-file:
> artifacts.xml
> org.eclipse.equinox.p2.artifact.repository.prefs
> lock
> 1280484213402.profile.gz
> 1280484213489.profile.gz
> org.eclipse.equinox.p2.artifact.repository.prefs
> org.eclipse.equinox.p2.metadata.repository.prefs
>
>
> What's going wrong with my build/config?
>
A bit hard to tell without knowing anything about it...

- thomas
Re: Upgrade to Helios Buckminster 3.6 [message #556012 is a reply to message #550613] Mon, 30 August 2010 14:28 Go to previous messageGo to next message
Oliver Raupach is currently offline Oliver RaupachFriend
Messages: 5
Registered: June 2010
Junior Member
Not only the zip-File is empty. The action "site.p2" only creates an empty folder.
This is my cspex:
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
	xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
	<dependencies>
		<!-- Place your Dependencies here -->
	</dependencies>
	<generators>
		<!-- Place your Generators here -->
	</generators>
	<artifacts>
		<!-- Place your Artifacts here -->
	</artifacts>
    <actions>
        <public name="create.product" actor="ant">
            <actorProperties>
                <property key="buildFile" value="build/product.ant" />
                <property key="targets" value="create.product" />
            </actorProperties>
            <properties>
                <property key="profile" value="ttClientProfile" />
                <property key="iu" value="org.gjem.tt.ttclient.product" />
            </properties>
            <prerequisites alias="repository">
                <attribute name="site.p2" />
            </prerequisites>
            <products alias="destination" base="${buckminster.output}">
                <path path="ttClient.${target.ws}.${target.os}.${target.arch}/" />
            </products>
        </public>
        <public name="create.product.zip" actor="ant">
            <actorProperties>
                <property key="buildFileId" value="buckminster.pdetasks" />
                <property key="targets" value="create.zip" />
            </actorProperties>
            <prerequisites alias="action.requirements">
                <attribute name="create.product" />
            </prerequisites>
            <products alias="action.output" base="${buckminster.output}">
                <path path="ttClient.${target.ws}.${target.os}.${target.arch}.zip" />
            </products>
        </public>
    </actions>

	<groups>
		<!-- Place your Groups here -->
	</groups>
	<alterDependencies>
		<!-- Place your Dependency alterations here -->
	</alterDependencies>
	<alterArtifacts>
		<!-- Place your Artifact alterations here -->
	</alterArtifacts>
	<alterActions>
		<!-- Place your Action alterations here -->
	</alterActions>
	<alterGroups>
		<!-- Place your Group alterations here -->
	</alterGroups>
</cspecExtension>



my build/product.ant:
<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}"/>
		<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"/>
			<jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
			<jvmarg value="-Declipse.p2.profile=${profile}"/>
		</java>
	</target>
</project>


and this is my
<?tt version="1.0" encoding="UTF-8"?>
<cq:componentQuery ttns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="site.rmap">
    <cq:rootRequest name="ttClientFeatureSite" componentType="eclipse.feature"/>
    <cq:property key="target.arch" value="*"/>
    <cq:property key="target.os" value="*"/>
    <cq:property key="target.ws" value="*"/>
    <cq:advisorNode namePattern="org.gjem.tt.ttclient" componentType="osgi.bundle" allowCircularDependency="true"/>
</cq:componentQuery>

Re: Upgrade to Helios Buckminster 3.6 [message #556024 is a reply to message #556012] Mon, 30 August 2010 15:04 Go to previous messageGo to next message
Oliver Raupach is currently offline Oliver RaupachFriend
Messages: 5
Registered: June 2010
Junior Member
Do you have a hint for me - what was changed in 3.6? My config worked with buckminster 3.5 - and now all is messed up.
What can I do?
Re: Upgrade to Helios Buckminster 3.6 [message #556061 is a reply to message #556024] Mon, 30 August 2010 17:11 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Oliver,

Buckminster should be (and AFAIK, is) backward compatible so what you
experience is not a well known problem. I would recommend that you run
your build with --loglevel DEBUG (or turn on DEBUG in Buckminster
preferences. Perhaps that can give you a clue to what it is that's failing.

Regards,
Thomas Hallgren


On 08/30/2010 05:04 PM, Oliver Raupach wrote:
> Do you have a hint for me - what was changed in 3.6? My config worked
> with buckminster 3.5 - and now all is messed up.
> What can I do?
>
Re: Upgrade to Helios Buckminster 3.6 [message #556163 is a reply to message #550420] Tue, 31 August 2010 07:56 Go to previous messageGo to next message
Philipp Nanz is currently offline Philipp NanzFriend
Messages: 46
Registered: February 2010
Member
Hi Oliver, I'm pretty sure the part

Quote:

<jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
<jvmarg value="-Declipse.p2.profile=${profile}"/>



does not exist in my product.ant and I remember having read somewhere on these forums that its known to cause problems.

If thats not the culprit, try comparing your CSPECX etc. with the stuff from the mailapp example.

HTH
Re: Upgrade to Helios Buckminster 3.6 [message #556170 is a reply to message #556163] Tue, 31 August 2010 08:16 Go to previous messageGo to next message
Oliver Raupach is currently offline Oliver RaupachFriend
Messages: 5
Registered: June 2010
Junior Member
Okay, I switched DEBUG on and found this exception:

[ant] 
[ant] !ENTRY org.eclipse.osgi 4 0 2010-08-31 10:05:12.698
[ant] !MESSAGE Application error
[ant] !STACK 1
[ant] java.lang.IllegalStateException: Profile ttClientProfile is not current. Expected timestamp 1283241910716 but was 1283241910716.
[ant] 	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.lockProfile(SimpleProfileRegistry.java:742)
[ant] 	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:65)
[ant] 	at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
[ant] 	at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
[ant] 	at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.updateRoamingProperties(DirectorApplication.java:1002)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.performProvisioningActions(DirectorApplication.java:548)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:800)
[ant] 	at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:954)
[ant] 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
[ant] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[ant] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[ant] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
[ant] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[ant] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ant] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ant] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ant] 	at java.lang.reflect.Method.invoke(Method.java:597)
[ant] 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
[ant] 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[ant] 	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[ant] 	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
[end ttClientFeatureSite:eclipse.feature$1.0.0.qualifier#create.product]


But I have no idea what this mean...
Re: Upgrade to Helios Buckminster 3.6 [message #556194 is a reply to message #556163] Tue, 31 August 2010 09:51 Go to previous message
Oliver Raupach is currently offline Oliver RaupachFriend
Messages: 5
Registered: June 2010
Junior Member
Philipp Nanz wrote on Tue, 31 August 2010 03:56
Hi Oliver, I'm pretty sure the part

Quote:

<jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
<jvmarg value="-Declipse.p2.profile=${profile}"/>



does not exist in my product.ant and I remember having read somewhere on these forums that its known to cause problems.




YES, I removed this lines and now I can successful build!
Thank you for this hint.
Previous Topic:Updating a headless installation
Next Topic:Buckminster 3.6: Signing of Babel packs
Goto Forum:
  


Current Time: Thu Apr 25 06:38:44 GMT 2024

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

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

Back to the top