Question about Feature Updates [message #149134] |
Fri, 24 October 2003 12:41  |
Eclipse User |
|
|
|
Originally posted by: mharp.seapine.com
I've got my site up with a site.xml, and it's finding my jar file with the
feature.xml file in it.
Problem is, when I click the Install Now button it goes through the install
and acts like everything works, yet my plugin stuff doesn't get added to
c:\eclipse\plugins\<new folder for my plugin>. It does get added to the
features folder which appears to be just a place it looks to see if the
plug-in has been installed.
I have a local website setup in IIS at localhost\eclipse which has my
site.xml file in it, and a features dir where the jar file is that has just
a feature.xml and feature.properties in it.
here's my feature.xml file
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.foo.myscm"
label="SCM Team plug-in for Windows"
version="2.1.0"
provider-name="Foo SCM"
os="win32"
ws="win32">
<license url="http://127.0.0.1/eclipse/license.htm">
%license
</license>
<requires>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.team.core"/>
<import plugin="org.eclipse.team.ui"/>
<import plugin="org.eclipse.ui"/>
</requires>
<plugin id="com.foo.myscm" version="2.1.0" />
My problem is, I don't understand how it looks for the jar file that it
needs to install from my plugin tag. The Help says it will look in
plugins\com.foo.myscm_2.1.0.jar, but I have that directory in both my
localhost\eclipse dir and localhost\eclipse\features and it still don't seem
to be adding my plugin.
Anyone got any ideas?
On a related note, is there help somewhere that I can use if I decide to
implement my own install-handler? I guess the org.eclipse.update classes are
the ones I would use, but they don't really explain how to setup the
updater. The help makes it sound like I build my install-updater, package it
in a jar, then package that jar inside my feature .jar. Does that sound
right?
Thanks,
harpstein
|
|
|
Re: Question about Feature Updates [message #149161 is a reply to message #149134] |
Fri, 24 October 2003 13:33  |
Eclipse User |
|
|
|
Originally posted by: dorian.birsan.net
"Harpstein" <mharp@seapine.com> wrote in message
news:bnbkjo$14k$1@eclipse.org...
> I've got my site up with a site.xml, and it's finding my jar file with the
> feature.xml file in it.
>
> Problem is, when I click the Install Now button it goes through the
install
> and acts like everything works, yet my plugin stuff doesn't get added to
> c:\eclipse\plugins\<new folder for my plugin>. It does get added to the
> features folder which appears to be just a place it looks to see if the
> plug-in has been installed.
>
> I have a local website setup in IIS at localhost\eclipse which has my
> site.xml file in it, and a features dir where the jar file is that has
just
> a feature.xml and feature.properties in it.
>
> here's my feature.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <feature
> id="com.foo.myscm"
> label="SCM Team plug-in for Windows"
> version="2.1.0"
> provider-name="Foo SCM"
> os="win32"
> ws="win32">
>
> <license url="http://127.0.0.1/eclipse/license.htm">
> %license
> </license>
>
> <requires>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.core.runtime"/>
> <import plugin="org.eclipse.team.core"/>
> <import plugin="org.eclipse.team.ui"/>
> <import plugin="org.eclipse.ui"/>
> </requires>
>
> <plugin id="com.foo.myscm" version="2.1.0" />
>
>
> My problem is, I don't understand how it looks for the jar file that it
> needs to install from my plugin tag. The Help says it will look in
> plugins\com.foo.myscm_2.1.0.jar, but I have that directory in both my
> localhost\eclipse dir and localhost\eclipse\features and it still don't
seem
> to be adding my plugin.
>
It looks like the feature was install but not its plugin. Do you see any
errors in c:\eclipse\workspace\.metadata\.log ?
Your update site should have a layout along these lines:
<update site>
site.xml (here you list the feature)
features
com.foo.myscm_2.1.0.jar (this is the feature)
plugins
com.foo.myscm_2.1.0.jar (this is the plugin)
This article:
http://eclipse.org/articles/Article-Update/keeping-up-to-dat e.html should
give more details on how to do the packaging.
> Anyone got any ideas?
>
> On a related note, is there help somewhere that I can use if I decide to
> implement my own install-handler? I guess the org.eclipse.update classes
are
> the ones I would use, but they don't really explain how to setup the
> updater. The help makes it sound like I build my install-updater, package
it
> in a jar, then package that jar inside my feature .jar. Does that sound
> right?
>
> Thanks,
>
> harpstein
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03511 seconds