bundle

OSGi Application Patching Strategy

。_饼干妹妹 提交于 2019-12-22 13:47:08
问题 What are appropriate mechanisms for patching an OSGi container. 1) Should the bundles (binaries/jars) have the same name as the old ones then: a. Replace the bundle with the with the new bundle (manifest has been modified to reflect the new version) in the plug-ins folder and, b. Invoke update <bundle id> <bundle name>. 2) Or Should the bundles have version information encoded in the file name a. Copy the new bundle to the plug-ins folder b. Invoke update <bundle id> file:plugins/<new Bundle

Bundler isn't loading gems

眉间皱痕 提交于 2019-12-22 12:32:41
问题 I have been having a problem with using Bundler and being able to access my gems without having to require them somewhere, as config.gem used to do that for me (as far as I know). In my Rails 3 app, I defined my Gemfile like so: clear_sources source "http://gemcutter.org" source "http://gems.github.com" bundle_path "vendor/bundler_gems" ## Bundle edge rails: git "git://github.com/rails/arel.git" git "git://github.com/rails/rack.git" gem "rails", :git => "git://github.com/rails/rails.git" ##

Bundler isn't loading gems

送分小仙女□ 提交于 2019-12-22 12:32:13
问题 I have been having a problem with using Bundler and being able to access my gems without having to require them somewhere, as config.gem used to do that for me (as far as I know). In my Rails 3 app, I defined my Gemfile like so: clear_sources source "http://gemcutter.org" source "http://gems.github.com" bundle_path "vendor/bundler_gems" ## Bundle edge rails: git "git://github.com/rails/arel.git" git "git://github.com/rails/rack.git" gem "rails", :git => "git://github.com/rails/rails.git" ##

How to version javascript files in a Bundle?

旧巷老猫 提交于 2019-12-22 10:14:10
问题 I want to include my JS scripts in a Bundle AND at the same time version them to avoid browser caching if those scripts have been changed. Is there a " native " way with ASP.NET MVC 5 to accomplish this? I've found a library called Cassette that does exactly this (automatically versioning the JS, which is a good thing) but I wanted something (even) simpler, without changing a lot my script configuration... The following does not work: var version = ConfigurationManager.AppSettings["cache"]

OSGi: Having the same Package path in two different Bundles

断了今生、忘了曾经 提交于 2019-12-22 08:55:28
问题 I got a bundle1 that has the following packages: com.anderson.servlet.osgi (exported) com.anderson.servlet com.anderson.util (exported) and a second one, bundle2 , that looks like this: com.anderson.jetty com.anderson.servlet.osgi and I also import com.anderson.servlet.osgi from bundle1 . Is it possible to merge both packages in bundle2 ? 回答1: No. If you import a package, that takes precedence over a private package with the same name that you may happen to have inside your bundle. Why not

Difference between getExtras(name).getString and getIntent().getStringExtra(name)

て烟熏妆下的殇ゞ 提交于 2019-12-22 05:01:20
问题 I have some error reports on my Android app, it's a Nullpointerexception in onCreate() in an Activity. The code that fails is getIntent().getExtras().getStringExtra("name"). (Nullpointerexception) That means that getExtras() is null somehow. I am sure that I am setting the intent extra on every place I am creating the intent. I can't recreate it on my emulator on device. I think it happened on my real device (but not while I was debugging) after I tried to open the app again, in the mean time

Trying to build an OSGi bundle in Maven with embedded dependencies. Can't seem to exclude transitive dependencies from BND classpath

纵然是瞬间 提交于 2019-12-22 04:19:27
问题 Basically, my web service must be deployable as a single OSGi jar bundle. Therefore: The bundle must contain all compile and runtime maven dependencies. It must also contain all non-optional dependencies that depend on those dependencies (i.e., the transitive dependencies). I'm attempting to use the maven-bundle-plugin to accomplish this. I've used Embed-Dependency to get all my compile and runtime dependencies in the bundle, and I've used Embed-Transitive to embed all the transitive

Is there a way to modify the entity mapping configuration for doctrine outside the config file?

笑着哭i 提交于 2019-12-22 04:15:15
问题 In my standard Symfony2-app I'm having a bunch of bundles with some entities. Some of these entities are not located in the standard folder the automapping of doctrine finds out (e.g. /src/Acme/DemoBundle/Entities ) but in a different location. I could easily use config.yml to tell doctrine to use a different location like this: doctrine: orm: auto_mapping: false mappings: AcmeDemoBundle: type: annotation prefix: Acme\DemoBundle\Entities\ dir: %kernel.cache_dir%\Acme\DemoBundle\Entities This

Bundler ignores groups in rails apps

匆匆过客 提交于 2019-12-22 03:54:41
问题 This problem was fixed in 0.9.8, but seems to have recurred in the 1.x branch. In my Gemfile I have a group for the test and development environments that use the rspec gems. On my production server rspec is not installed. I used the command bundle install --without test development in my rails app Starting my rails app in production mode gives the exception: Could not find gem 'rspec (>= 0)' in any of the gem sources listed in your Gemfile. If I comment out the test group the same error

Put Object as intent for next activity

北城以北 提交于 2019-12-22 03:52:59
问题 Is it possible to to put an object of type Object into an intent as a Extra? I have a variable of type object and won't know until it is assigned a value as to what the object datatype is. Maybe something to do with serialization or as a bundle i'm not sure? And then in the next activity how do I then get this value in order to store it in an ArrayList<Object> ? 回答1: Bundle by way of Intent#putExtra does not have any function to add an Object . You can only pass in a Parcelable or a