Cannot perform update for automatic build [message #551992] |
Tue, 10 August 2010 12:44 |
Tobias Hoppenthaler 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_${pdeBuildPluginVersion}/scripts/productBuild/productBuild.xml" />
<classpath>
<pathelement location="${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.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
|
|
|
Re: Cannot perform update for automatic build [message #552547 is a reply to message #551992] |
Thu, 12 August 2010 14:59 |
Andrew Niefer 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 #552802 is a reply to message #551992] |
Fri, 13 August 2010 15:02 |
Tobias Hoppenthaler 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 risen 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
[Updated on: Fri, 13 August 2010 15:05] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03605 seconds