标签: bundle

从命令行运行osgi bundle

我开发了一个OSGi包,我通常从Eclipse测试.Aftrer导出捆绑包,我得到一个bundle.jar文件.我希望能够从命令行运行生成的文件.就像是:

C:\ java -jar bundle.jar osgi_framework路径

但是,如何在其中包含osgi框架?而且,我怎么能立即启动捆绑?

java osgi bundle

10
推荐指数
2
解决办法
2万
查看次数

如何在Xcode项目包中排除图像文件,有条件地发布版本?

我将.png图像添加到Xcode项目中以进行条件使用,例如制作视图的屏幕截图但是,由于应用程序的发布版本不需要这样,我想找到一种方法来使用Target的某种设置来排除它们.我希望可以有一个解决方案,如使用#if DEBUG宏进行Debug编译,这可以适用于源代码行.但是,如果项目包中包含文件,我很难找到答案.

xcode bundle build project ios

10
推荐指数
1
解决办法
5021
查看次数

将文件夹存储在xcode 4.0中的包内容(包资源)中

我需要在包内容中存储一个文件夹,而不是项目中的所有文件都在一个根文件夹中.

我怎么能在XCode 4.0中这样做?

现在我要进入Build Phases> Copy Bundle Resources来尝试这些更改.

resources xcode bundle ios xcode4

10
推荐指数
1
解决办法
9326
查看次数

RecognizerIntent:如何将捆绑包添加到待处理的意图

我正在实现一个响应RecognizerIntent的活动.除此之外,此活动必须处理两个指定待处理意图的附加附加内容及其附加内容:

  • EXTRA_RESULTS_PENDINGINTENT
  • EXTRA_RESULTS_PENDINGINTENT_BUNDLE

解释文档:

  • 如果您使用EXTRA_RESULTS_PENDINGINTENT提供a PendingIntent,则结果将添加到其包中,PendingIntent并将结果发送到其目标.

  • 如果您使用EXTRA_RESULTS_PENDINGINTENT提供转发意图,您还可以使用EXTRA_RESULTS_PENDINGINTENT_BUNDLE为最终意图提供额外的额外内容.搜索结果将添加到此捆绑包中,组合捆绑包将发送到目标.

我一直在寻找可以证明以下内容的示例代码.

PendingIntent从捆绑中提取a的最佳方法是什么?

我应该这样做:

(PendingIntent)
        extras.getParcelable(RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT)
Run Code Online (Sandbox Code Playgroud)

如何在一组现有的附加内容中添加额外内容PendingIntent?

如何启动修改PendingIntent?

android bundle recognizer-intent android-pendingintent

10
推荐指数
1
解决办法
5039
查看次数

如何在支持bean中获取JSF资源包属性值?

我正在使用JSF 2.我正在尝试动态解析托管bean属性的消息包引用.该值包含包名称和密钥.这是必需的,因为该值可能来自几个不同的包中的一个.我尝试了很多排列,但是bean的值似乎总是被解析为文字字符串(用EL括号输出),并且永远不会调用bundle来解析并返回值.有任何想法吗?

我试过了:

#{bundle['key']}
${bundle['key']}
bundle['key']
Run Code Online (Sandbox Code Playgroud)

它们完全按原样输出,也在一个<h:outputText>.如果我直接在页面中写它,它工作正常.我的理论是JSF没有意识到它必须将String作为表达式处理.有什么方法可以强迫它吗?

jsf bundle el jsf-2

10
推荐指数
1
解决办法
2万
查看次数

XCAssets未复制到应用程序包

我遇到了XCAssets的问题.我创建了一个带有图标的自定义XCAssets文件.我从文件中得到这样的图像:

[UIImage imageNamed:@"deniedOverlay"];
Run Code Online (Sandbox Code Playgroud)

所以,现在问题.文件未复制到.app文件,因此我得到空白图像.XCAssets文件被添加到"复制包资源".我自己无法解决这个问题.

谢谢!

xcode bundle ios xcasset

10
推荐指数
1
解决办法
992
查看次数

MVC 5捆绑错误

我有一个大问题.我创建了一个MVC 5项目,我无法使用默认代码启动它.问题在于捆绑.它在Global.asax.cs/Application_Start方法中停止BundleConfig.RegisterBundles(BundleTable.Bundles);.它说"找不到方法:'!! 0 [] System.Array.Empty()'." (system.missingMethodException而).

这是BundleConfig.cs代码(默认):

public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));
        }
Run Code Online (Sandbox Code Playgroud)

我正在使用VS 2015 Preview.我该怎么做/改变?

谢谢!

asp.net-mvc bundle

10
推荐指数
1
解决办法
6934
查看次数

Android java.lang.IllegalArgumentException:ArrayMap 中的重复键:null

我收到这个错误

由 java.lang.IllegalArgumentException 引起:ArrayMap 中的重复键:在 android.os.Parcel.readArrayMapInternal(Parcel.java:2486) 处的 android.util.ArrayMap.validate(ArrayMap.java:550) 处为 null,位于 android.os.BaseBundle 处.unparcel(BaseBundle.java:221) 在 android.os.BaseBundle.containsKey(BaseBundle.java:269) 在 com.example.fragments.QuestionSwipeFragment.handleBundle(SourceFile:197)

不在我当前的设备中,但它来自 crashlytics,但我无法在自己的设备中重新生成此问题尝试了所有可能的方法,但无法在我的设备中出现相同的错误,下面是我的代码,答案将非常感激。

public class QuestionSwipeFragment extends DialogFragment {

    private View mRootView;
    private int mPosition;
    private List<ResourceModel> mResourceList;
    private QuestionSwipePagerAdapter mQuestionSwipePagerAdapter;
    private ViewPager mPager;

    private int mSelectedChapterId;
    private int mSelectedSectionId;
    private int mSelectedSubSectionId;
    private boolean mSelectedFavourite;

    private boolean mIsFavourite;
    private boolean mIsPagination;

    private int mCurrentPage;
    private int mTotalPage;

    int mResourcePageNo;
    int mMarkId;
    int mDifficulties;

    private int mFragmentType;

    private int mFragType;
    private PaginationParams mPaginationParams = new …
Run Code Online (Sandbox Code Playgroud)

java android bundle parcelable

10
推荐指数
1
解决办法
2631
查看次数

安装mini_racer时发生错误(0.2.0)

我正在使用mac 10.14.我对mini_racer gem有一些问题.运行bundle install后,会出现以下错误.我不知道怎么解决这个问题.

错误

Installing mini_racer 0.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/vipinkumar/.rvm/gems/ruby-2.5.1@ry_rails5/gems/mini_racer-0.2.0/ext/mini_racer_extension
/Users/vipinkumar/.rvm/rubies/ruby-2.5.1/bin/ruby -r
./siteconf20180911-791-fpmt3t.rb extconf.rb
checking for -lpthread... yes
checking for -lobjc... yes
creating Makefile

current directory:
/Users/vipinkumar/.rvm/gems/ruby-2.5.1@ry_rails5/gems/mini_racer-0.2.0/ext/mini_racer_extension
make "DESTDIR=" clean

current directory:
/Users/vipinkumar/.rvm/gems/ruby-2.5.1@ry_rails5/gems/mini_racer-0.2.0/ext/mini_racer_extension
make "DESTDIR="
compiling mini_racer_extension.cc
clang: warning: argument unused during compilation: '-rdynamic'
[-Wunused-command-line-argument]
In file included from mini_racer_extension.cc:2:
In file included from
/Users/vipinkumar/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/ruby.h:33:
In file included from
/Users/vipinkumar/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/ruby/ruby.h:2040:
/Users/vipinkumar/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/ruby/intern.h:47:19:
warning: 'register' storage class specifier is deprecated …
Run Code Online (Sandbox Code Playgroud)

ruby bundle rubygems ruby-on-rails ruby-on-rails-5

10
推荐指数
2
解决办法
2934
查看次数

我无法安装 ffi gem - MacOS Big Sur 11.0.1

我正在尝试这个Jekyll 主题

我参考了这个文档

并且此错误代码无休止地发生!!

为什么会出现这个错误?

啊,为了您的信息,我进行了这个和这个

即使我搜索错误信息,数据也不会很好!

我一整天都在做这个,我想我还不能解决这个问题。

你能帮助我吗?如果您需要评论中的任何信息,我会尽快弥补。

这是我的错误代码:

swsui-MacBook-Pro:flexton-master sws$ bundle exec jekyll serve
Traceback (most recent call last):
    2: from /Users/sws/.gem/ruby/2.7.0/bin/bundle:23:in `<main>'
    1: from /Users/sws/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems.rb:296:in `activate_bin_path'
/Users/sws/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.16.0.pre.3) required by your /Users/sws/Developer/blog/flexton-master/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.16.0.pre.3`
swsui-MacBook-Pro:flexton-master sws$ bundle update --bundler
The dependency tzinfo-data (>= 0) will …
Run Code Online (Sandbox Code Playgroud)

bundle rubygems ffi macos-big-sur

10
推荐指数
3
解决办法
5227
查看次数