How to list features of local update site? [message #332884] |
Wed, 12 November 2008 10:32  |
Eclipse User |
|
|
|
Hi,
I'm using the standaloneUpdate application to mirror some features in
local update site.
Like this:
eclipsec -application org.eclipse.update.core.standaloneUpdate -command
mirror -from http://www.jgit.org/update-site -to
file://D:/install/eclipse/updatesite2 -featureId org.spearce.egit -version
0.3.1.200810240005
This works fine. Moreover, I can add this file in Eclipse UI and install
features from it.
But for some reason I cannot get a list of features with
eclipsec -application org.eclipse.update.core.standaloneUpdate -command
listFeatures -from file://D:/install/eclipse/updatesite2
I'm getting an error (see below).
What could be the problem with it? How can I list all the features from
command-line?
Here is the error log:
!ENTRY org.eclipse.update.core 4 0 2008-11-12 13:29:34.725
!MESSAGE [Cannot find site:file://D:/install/eclipse/updatesite2]
!STACK 0
java.lang.Exception: Cannot find site:file://D:/install/eclipse/updatesite2
at
org.eclipse.update.standalone.ListFeaturesCommand.<init>(ListFeaturesCommand.java:42)
at
org.eclipse.update.standalone.CmdLineArgs.getCommand(CmdLine Args.java:144)
at
org.eclipse.update.standalone.StandaloneUpdateApplication.ru n(StandaloneUpdateApplication.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hodWithException(EclipseAppContainer.java:574)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:195)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Dmitry
|
|
|
Re: How to list features of local update site? [message #332886 is a reply to message #332884] |
Wed, 12 November 2008 13:40  |
Eclipse User |
|
|
|
I've found that format of site directory has to be as following:
"D:/install/eclipse/updatesite2"
In this case I'm getting another error:
!ENTRY org.eclipse.update.core 4 0 2008-11-12 16:24:34.294
!MESSAGE [Cannot find configured site:D:/install/eclipse/updatesite2]
!STACK 0
java.lang.Exception: Cannot find configured
site:D:/install/eclipse/updatesite2
I've debugged org.eclipse.update.standalone.ListFeaturesCommand and found
that this site returns null for getCurrentConfiguredSite().
So, I have already 2 questions:
1. Why format of '-from' argument in 'listFeatures' differs from '-to'
argument of 'mirror' command. Documentation avalable with Eclipse
("Running update manager from command line") does not mention this
2. What should I do execute this command successfully. I had tried to
execute 'addSite' before 'listFeatures'.
In this case, standaloneUpdate seems to recognize the site, but its
content is empty:
Site: file:/D:/install/eclipse/updatesite2/eclipse/
Command completed successfully.
Note that adding a site adds 'eclipse' folder with the file
eclipseextension in it.
|
|
|
Powered by
FUDForum. Page generated in 0.04328 seconds