[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Command line update manager
|
- From: Craig Lang <cl@xxxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 14:15:13 +0100
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.4 (X11/20070604)
Hi all,
Not sure if this is the right place for this question.. let me know if I
should go somewhere else.
My specs:
Eclipse3.3 running on RHEL4 using suns jre 1.5.0_05
I'm trying to install features from a local site using the update
manager command line.
I create my local site with 2 catergories each containing a feature. The
update manager gui installs the features from my local site with no worries.
When I try and install from the command line I run into problems..
I try to add the site and the enable the features from the site.
I have attached my site.xml, the commands I run and the error log generated.
In the log it seems that update manager is looking for the plugin
directory /common/prereq/eclipse/site.xml/plugins/ , It looks like this
is the problem but I can't seem to find a workaround.
Let me know if more info is needed and thanks for any help!
Craig
[cl@click eclipse]$ java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar -application org.eclipse.update.core.standaloneUpdate -command addSite -from /common/prereq/eclipse/
Command completed successfully.
[cl@click eclipse]$ java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar -application org.eclipse.update.core.standaloneUpdate -command listFeatures
Site: file:/home/cl/eclipse-build/eclipse/
Feature: org.eclipse.rcp 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG enabled
Feature: org.eclipse.platform.source 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G enabled
Feature: org.eclipse.platform 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G enabled
Feature: org.eclipse.rcp.source 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG enabled
Site: file:/common/prereq/eclipse/site.xml
Feature: CA_Features 1.0.0 disabled
Feature: com.silistix.csl.feature 1.0.0 disabled
Command completed successfully.
[cl@click eclipse]$ java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar -application org.eclipse.update.core.standaloneUpdate -command enable -featureId CA_Features -version 1.0.0
Command failed. Please check log file /home/cl/eclipse-build/eclipse/configuration/1184593570023.log for details.
[cl@click eclipse]$ cat /home/cl/eclipse-build/eclipse/configuration/1184593570023.log
!SESSION 2007-07-16 14:46:09.474 -----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.5.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB
Framework arguments: -application org.eclipse.update.core.standaloneUpdate -command enable -featureId CA_Features -version 1.0.0
Command-line arguments: -application org.eclipse.update.core.standaloneUpdate -command enable -featureId CA_Features -version 1.0.0
!ENTRY org.eclipse.update.configurator 2007-07-16 14:46:10.967
!MESSAGE /common/prereq/eclipse/site.xml/plugins is not a valid plugins directory.
!ENTRY org.eclipse.update.core 4 0 2007-07-16 14:46:16.619
!MESSAGE [There are no unconfigured features with id CA_Features]
!STACK 0
java.lang.Exception: There are no unconfigured features with id CA_Features
at org.eclipse.update.standalone.EnableCommand.<init>(EnableCommand.java:74)
at org.eclipse.update.standalone.CmdLineArgs.getCommand(CmdLineArgs.java:111)
at org.eclipse.update.standalone.StandaloneUpdateApplication.run(StandaloneUpdateApplication.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:533)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="/common/prereq/eclipse/">
The site we like.
</description>
<feature url="features/CA_Features_1.0.0.jar" id="CA_Features" version="1.0.0">
<category name="CA-Plugins"/>
</feature>
<feature url="features/com.silistix.csl.feature_1.0.0.jar" id="com.silistix.csl.feature" version="1.0.0">
<category name="CHAINArchitect"/>
</feature>
<category-def name="CA-Plugins" label="CA">
<description>
All the plugins required by CHAINArchitect
</description>
</category-def>
<category-def name="CHAINArchitect" label="CHAINArchitect">
<description>
The CHAINArchitect plugins
</description>
</category-def>
</site>