Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Cannot perform update for automatic build
Cannot perform update for automatic build [message #568297] Tue, 10 August 2010 12:44 Go to next message
Tobias Hoppenthaler is currently offline Tobias HoppenthalerFriend
Messages: 11
Registered: July 2010
Location: Germany
Junior Member
I am building my feature-based RCP with p2 like this:

<target name="pde_build">
<java classname="org.eclipse.equinox.launcher.Main" resultproperty="result" fork="true">
<jvmarg line="-Xms256M -Xmx1024M" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml " />
<classpath>
<pathelement location=" ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${eq uinoxLauncherPluginVersion}.jar " />
</classpath>
</java>
</target>

My build works so far and I can use the application, I also get the metadata like the repository built without any error, but when build the next time and want to update the application through help>update, I only get the message that no updates are available (no updates were found).

When I go to help>install new software, I can select the path to my repository in the "work with" line, and get:
"There are no categorized items"

If I uncheck the "group items by category" checkbox, I see entries and one of them is called "Feature" which, looking at the version, should be the one I am looking for.

If I select it an click next I get the error
Feature is already installed, so an update will be performed instead.

At that point, all my buttons except for back and cancel are disabled.

BTW: I am able to install a new feature from a different location. (installed mousefeed)

I dont know what I am doing wrong and I would appreciate any help.
--
-- Tobias


-- Tobias
Re: Cannot perform update for automatic build [message #571091 is a reply to message #568297] Thu, 12 August 2010 14:59 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You need to increment the version for the product itself.
Check for updates is looking for a new version of the product, it sounds
like you only have new versions of the features.

It is likely that you can't update the feature because the product requires
a specific version of it.

http://aniefer.blogspot.com/2009/07/composing-and-updating-c ustom-eclipse.html
http://aniefer.blogspot.com/2009/07/adt-part-2-more-like-epp .html

Tobias Hoppenthaler wrote:

> I am building my feature-based RCP with p2 like this:
>
> <target name="pde_build">
> <java classname="org.eclipse.equinox.launcher.Main"
> resultproperty="result" fork="true"> <jvmarg line="-Xms256M -Xmx1024M" />
> <arg value="-application" />
> <arg value="org.eclipse.ant.core.antRunner" />
> <arg value="-buildfile" />
> <arg
>
value=" ${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildP luginVersion}/scripts/productBuild/productBuild.xml "
> /> <classpath> <pathelement
>
location=" ${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${eq uinoxLauncherPluginVersion}.jar "
> /> </classpath> </java>
> </target>
>
> My build works so far and I can use the application, I also get the
> metadata like the repository built without any error, but when build the
> next time and want to update the application through help>update, I only
> get the message that no updates are available (no updates were found).
>
> When I go to help>install new software, I can select the path to my
> repository in the "work with" line, and get: "There are no categorized
> items"
>
> If I uncheck the "group items by category" checkbox, I see entries and one
> of them is called "Feature" which, looking at the version, should be the
> one I am looking for.
>
> If I select it an click next I get the error
> Feature is already installed, so an update will be performed instead.
>
> At that point, all my buttons except for back and cancel are disabled.
>
> BTW: I am able to install a new feature from a different location.
> (installed mousefeed)
>
> I dont know what I am doing wrong and I would appreciate any help.
Re: Cannot perform update for automatic build [message #571199 is a reply to message #568297] Fri, 13 August 2010 15:02 Go to previous messageGo to next message
Tobias Hoppenthaler is currently offline Tobias HoppenthalerFriend
Messages: 11
Registered: July 2010
Location: Germany
Junior Member
Hey Andrew,

thanks a bunch for your answer, meanwhile I found out for myself how it works. I just didnt have enough time ahead of the weekend to post the solution. In my case somebody removed the .qualifier from the version: 1.0.0.qualifier
In the automated build, qualifier gets replaced by a timestamp and therefore the Version number raises automatically. Since the qualifier was missing, nothing got rised and the wizard was actually right: no updates were available, since the version still was 1.0.0

One more question: is it possible to debug the update wizard? Whenever I wanna open it inside the ide, it only tells me that it is not configured properly for updates...
--
-- Tobias


-- Tobias
Re: Cannot perform update for automatic build [message #571216 is a reply to message #571199] Fri, 13 August 2010 15:34 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
On the Configuration tab of on Eclipse Launch Configuration, there is a
checkbox "Support software installation in the launched application".

-Andrew

Tobias Hoppenthaler wrote:

> Hey Andrew,
>
> thanks a bunch for your answer, meanwhile I found out for myself how it
> works. I just didnt have enough time ahead of the weekend to post the
> solution. In my case somebody removed the .qualifier from the version:
> 1.0.0.qualifier In the automated build, qualifier gets replaced by a
> timestamp and therefore the Version number raises automatically. Since the
> qualifier was missing, nothing got rised and the wizard was actually
> right: no updates were available, since the version still was 1.0.0
>
> One more question: is it possible to debug the update wizard? Whenever I
> wanna open it inside the ide, it only tells me that it is not configured
> properly for updates...
Previous Topic:How to remove stuff from update site?
Next Topic:Cannot perform update for automatic build
Goto Forum:
  


Current Time: Fri Apr 19 20:45:27 GMT 2024

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

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

Back to the top