[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] p2.inf startLevel directive not working

Hi all,

I have an update site to install a version of AJDT located at
http://download.eclipse.org/tools/ajdt/34/dev/weaving

This update site includes the bundle
org.eclipse.equinox.weaving.aspectj.  This bundle has a p2.inf file
with the following contents:

instructions.configure = \
	setStartLevel(startLevel:2); \
	markStarted(started: true); \
	setProgramProperty(propName:osgi.framework.extensions,
propValue:org.eclipse.equinox.weaving.hook); \
  setProgramProperty(propName:org.aspectj.weaver.showWeaveInfo,
propValue:true); \
  setProgramProperty(propName:org.aspectj.osgi.verbose, propValue:true); \
  setProgramProperty(propName:aj.weaving.verbose, propValue:true);
instructions.unconfigure = \
	setProgramProperty(propName:osgi.framework.extensions, propValue:); \
  setProgramProperty(propName:org.aspectj.weaver.showWeaveInfo, propValue:); \
  setProgramProperty(propName:org.aspectj.osgi.verbose, propValue:); \
  setProgramProperty(propName:aj.weaving.verbose, propValue:);

I generate the p2 repository and put it on the download servers.
Anyone can install AJDT from here.

So far, so good.

The problem comes after installing and trying to run eclipse again.
Eclipse has an error on startup, which is logged in a log file that I
am attaching.   Note that eclipse will not startup at all.  The splash
page appears for half a second, then the error is thrown and the
process exits.

After fiddling around for a bit, I was able to get eclipse started
with no errors. Here is what I had to do:

1. in configuration/config.ini, there was an entry
reference\:file\:org.eclipse.equinox.weaving.hook_1.0.0.DEVELOPMENT.jar@4,
in the osgi.bundles directive.  I had to remove that entry.
(note that the config.ini correctly has all of the appropriate program
properties set)

2. in the configuration/org.eclipse.equinox.simpleconfigurator/bindles.info
file, I had to change one line from:
org.eclipse.equinox.weaving.aspectj,1.0.0.DEVELOPMENT,file:plugins/org.eclipse.equinox.weaving.aspectj_1.0.0.DEVELOPMENT.jar,4,true
to:
org.eclipse.equinox.weaving.aspectj,1.0.0.DEVELOPMENT,file:plugins/org.eclipse.equinox.weaving.aspectj_1.0.0.DEVELOPMENT.jar,2,true


So, that's my setup and how to get around the problem.  Here are my questions:

1. why is the weaving hook bundle fragment added to the config.ini file?

2. why is org.eclipse.equinox.weaving.aspectj not set to start level 1
even when I explicitly set it in the p2.inf file for that bundle?

I appreciate any help with this problem.

thanks,
--a

Attachment: 1225211854927.log
Description: Binary data