Skip to main content



      Home
Home » Eclipse Projects » Equinox » Can features be bundled as JARs ?
Can features be bundled as JARs ? [message #84406] Mon, 19 March 2007 16:06 Go to next message
Eclipse UserFriend
Some feature vendors create JAR files for their feature:

# jar -tvf /opt/eclipse/features/org.springframework.ide.eclipse_1.3.6. jar
2186 Mon Oct 16 00:10:16 BST 2006 feature.properties
2172 Mon Oct 16 00:10:16 BST 2006 feature.xml


# jar -tvf
/opt/eclipse/features/org.eclipse.atf.feature_0.2.1.v2007030 61126.jar
7919 Tue Mar 06 13:55:24 GMT 2007 feature.properties
2431 Tue Mar 06 13:55:24 GMT 2007 feature.xml
6051 Tue Mar 06 13:55:24 GMT 2007 license.html



But at startup inside $HOME/workspace/.metadata/.log

!SESSION 2007-03-19 19:52:04.838
-----------------------------------------------
eclipse.buildId=M20070212-1330
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean

!ENTRY org.eclipse.update.configurator 2007-03-19 19:52:05.814
!MESSAGE Unable to find feature.xml in directory:
/data/opt/eclipse/features/org.springframework.ide.eclipse_1 .3.6.jar

!ENTRY org.eclipse.update.configurator 2007-03-19 19:52:05.826
!MESSAGE Unable to find feature.xml in directory:
/data/opt/eclipse/features/org.eclipse.atf.feature_0.2.1.v20 0703061126.jar




Even the error message indicates its trying to access to file as a
directory.

Should I open a bug report for this, is it expected to work ?


The offenders come from the following vendors:

org.tigris.subversion.subclipse_1.2.0.jar
org.eclipse.atf.feature_0.2.1.v200703061126.jar
org.springframework.ide.eclipse_1.3.6.jar
org.mozilla.javascript.feature_1.6.2.jar

I have Platform, WTP, DTP, TPTP, CDT, VE, EMF, GEF, JEM, BIRT, Hibernate
all loaded and all of these vendors choose to ship.


Maybe the problem is that I am installing from ZIPs and some ZIPs are
just the updatesite as-is while others are a special installation ZIP
(i.e. there is no site.xml in the ZIP), Arrrggghhh!


Darryl
Re: Can features be bundled as JARs ? [message #84421 is a reply to message #84406] Mon, 19 March 2007 20:23 Go to previous messageGo to next message
Eclipse UserFriend
Yes. When they are available on an update site. This is the default format.
No once they have been installed (at least as far as I remember).

PaScaL

"Darryl L. Miles" <darryl@netbauds.net> wrote in message
news:etmqfq$9gf$1@utils.eclipse.org...
>
> Some feature vendors create JAR files for their feature:
>
> # jar -tvf /opt/eclipse/features/org.springframework.ide.eclipse_1.3.6. jar
> 2186 Mon Oct 16 00:10:16 BST 2006 feature.properties
> 2172 Mon Oct 16 00:10:16 BST 2006 feature.xml
>
>
> # jar -tvf
> /opt/eclipse/features/org.eclipse.atf.feature_0.2.1.v2007030 61126.jar
> 7919 Tue Mar 06 13:55:24 GMT 2007 feature.properties
> 2431 Tue Mar 06 13:55:24 GMT 2007 feature.xml
> 6051 Tue Mar 06 13:55:24 GMT 2007 license.html
>
>
>
> But at startup inside $HOME/workspace/.metadata/.log
>
> !SESSION 2007-03-19
> 19:52:04.838 -----------------------------------------------
> eclipse.buildId=M20070212-1330
> java.version=1.5.0_08
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86_64 -clean
>
> !ENTRY org.eclipse.update.configurator 2007-03-19 19:52:05.814
> !MESSAGE Unable to find feature.xml in directory:
> /data/opt/eclipse/features/org.springframework.ide.eclipse_1 .3.6.jar
>
> !ENTRY org.eclipse.update.configurator 2007-03-19 19:52:05.826
> !MESSAGE Unable to find feature.xml in directory:
> /data/opt/eclipse/features/org.eclipse.atf.feature_0.2.1.v20 0703061126.jar
>
>
>
>
> Even the error message indicates its trying to access to file as a
> directory.
>
> Should I open a bug report for this, is it expected to work ?
>
>
> The offenders come from the following vendors:
>
> org.tigris.subversion.subclipse_1.2.0.jar
> org.eclipse.atf.feature_0.2.1.v200703061126.jar
> org.springframework.ide.eclipse_1.3.6.jar
> org.mozilla.javascript.feature_1.6.2.jar
>
> I have Platform, WTP, DTP, TPTP, CDT, VE, EMF, GEF, JEM, BIRT, Hibernate
> all loaded and all of these vendors choose to ship.
>
>
> Maybe the problem is that I am installing from ZIPs and some ZIPs are just
> the updatesite as-is while others are a special installation ZIP (i.e.
> there is no site.xml in the ZIP), Arrrggghhh!
>
>
> Darryl
Re: Can features be bundled as JARs ? [message #84450 is a reply to message #84421] Tue, 20 March 2007 12:27 Go to previous messageGo to next message
Eclipse UserFriend
"Pascal Rapicault" <pascal_rapicault@ca.ibm.com> wrote in
news:etn9jh$ps9$1@utils.eclipse.org:

>
> Yes. When they are available on an update site. This is the default
> format. No once they have been installed (at least as far as I
> remember).
>
> PaScaL

I believe Pascal is right. I do dnot think I implemented code to run
features in a JAR format.
There is a way to install JAR features from a local file system though.
Basically we take a decision on the format based on the URL (hhtp->jar,
file-> unjarred) <yes you can criticize the architecture :) >

So if you set a type in your site.xml (i believe http), then we will
believe the site is an HTTP format even if you access it using file:///

This is just for installing though, as pascal mentioned...

--
Christophe Elek
Serviceability Architect
IBM Software Group - Rational
Re: Can features be bundled as JARs ? [message #84463 is a reply to message #84450] Tue, 20 March 2007 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Christophe Elek wrote:
> "Pascal Rapicault" <pascal_rapicault@ca.ibm.com> wrote in
> news:etn9jh$ps9$1@utils.eclipse.org:
>
>> Yes. When they are available on an update site. This is the default
>> format. No once they have been installed (at least as far as I
>> remember).
>>
>> PaScaL
>
> I believe Pascal is right. I do dnot think I implemented code to run
> features in a JAR format.
> There is a way to install JAR features from a local file system though.
> Basically we take a decision on the format based on the URL (hhtp->jar,
> file-> unjarred) <yes you can criticize the architecture :) >
>
> So if you set a type in your site.xml (i believe http), then we will
> believe the site is an HTTP format even if you access it using file:///
>
> This is just for installing though, as pascal mentioned...

Thanks for the confirmation both.

Using the GUI to auto-update is not an option for me, it takes too many
useful man hours per day to reinstall Eclipse time after time. When
testing 32bit / 64bit and various combinations of components.

The only criticism is the lack of uniformity in behavior increases the
amount of voodoo surrounding the platform.

Some plugin/feature vendors provide an update site and a ZIPed up update
site. Unfortunately a ZIPed up update site can't be installed verbatim
and AFAIK the Eclipse platform does not provide an automated headless
command line function to install a component.

../eclipse -install-from-site-jar my_favorite_vendor_suite_1.0.jar




My solution is a shell script to detect features that appeared as JAR
files after everything was unzipped and extract them by hand:


function install_feature {
src="$1"
destdir="$2"
src_basename=$(basename "${src}" ".jar")
src_dirname=$(dirname "${src}")

if [ -d "${destdir}" ]
then
mkdir "${destdir}/${src_basename}"
echo "Created: ${destdir}/${src_basename}"
(
cp -f "${src}" "/tmp/sh$$.zip"
cd "${destdir}/${src_basename}" || exit 1
echo -- $UNZIP_EXEC "/tmp/sh$$.zip" -x site.xml
$UNZIP_EXEC "/tmp/sh$$.zip" -x site.xml
rm -f "/tmp/sh$$.zip"
)
fi
}


for i in $(find "eclipse/features" -maxdepth 1 -name "*.jar" -type f)
do
echo "${i}"
install_feature "${i}" "eclipse/features/"
rm "${i}"
done



Darryl
Re: Can features be bundled as JARs ? [message #84855 is a reply to message #84463] Thu, 22 March 2007 18:41 Go to previous messageGo to next message
Eclipse UserFriend
"Darryl L. Miles" <darryl@netbauds.net> wrote in news:460011CE.9060703
@netbauds.net:

> Some plugin/feature vendors provide an update site and a ZIPed up update
> site. Unfortunately a ZIPed up update site can't be installed verbatim
> and AFAIK the Eclipse platform does not provide an automated headless
> command line function to install a component.
>
> ./eclipse -install-from-site-jar my_favorite_vendor_suite_1.0.jar
>

Darryl,
I presume this did not help ?

http://dev.eclipse.org/viewcvs/index.cgi/platform-update-
home/doc/working/documentation/standalone_update.html?view=c o

--
Christophe Elek
Serviceability Architect
IBM Software Group - Rational
Re: Can features be bundled as JARs ? [message #84901 is a reply to message #84855] Fri, 23 March 2007 14:21 Go to previous message
Eclipse UserFriend
Christophe Elek wrote:
>> Some plugin/feature vendors provide an update site and a ZIPed up update
>> site. Unfortunately a ZIPed up update site can't be installed verbatim
>> and AFAIK the Eclipse platform does not provide an automated headless
>> command line function to install a component.
>>
>> ./eclipse -install-from-site-jar my_favorite_vendor_suite_1.0.jar
>>
>
> Darryl,
> I presume this did not help ?
>
> http://dev.eclipse.org/viewcvs/index.cgi/platform-update-
> home/doc/working/documentation/standalone_update.html?view=c o


Thanks for this, this will be useful for automatic the "feature
enablement" process when testing with a fresh configuration. I'll try a
version which does the complete feature/plugin install when I've a moment.

For those looking for the published version of that CVS I think it is here:

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/update_standalone.html


Darryl
Previous Topic:error deploying first standalone osgi app
Next Topic:slf4j binding for log service
Goto Forum:
  


Current Time: Thu Jul 17 22:14:12 EDT 2025

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

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

Back to the top