java - Eclipse Equinox, how to configure auto load the bundles in plugin folder -
i've followed http://www.eclipse.org/equinox/documents/quickstart-framework.php seems old , not valid.
there no such bundles described org.eclipse.update.configurator_3.2.100.jar
i tried org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503, doesn't work.
anyone can tell me how make equinox auto load bundles inside plugins folder?
simplest approach use apache felix file install. works fine equinox, need put file install configuration parameters configuration/config.ini. note though if launch equinox via launcher jar or via binary, working directory parent of configuration/ or plugins/ directory.
excerpt our project config.ini:
# start file install osgi.bundles=reference\:file\:org.apache.felix.fileinstall_3.1.0.jar@1\:start # name of directory watch felix.fileinstall.dir=./plugins # regular expression used filter file names # have bundles in plugins/ directory, regexp # forbids monitoring bundles started via osgi.bundles property felix.fileinstall.filter=^(?!org.apache.felix.fileinstall|org.eclipse.osgi).* # determines if file install waits felix.fileinstall.poll milliseconds before doing initial scan or not. felix.fileinstall.noinitialdelay=true # not sure why have this... felix.fileinstall.start.level=2
other possible solution use eclipse p2. more advanced , powerful, though find quite difficult use.
good thing if application agnostic way bundles provisioned (and should way), can change mind later.
Comments
Post a Comment