小编Tit*_*iva的帖子

在OSX上打开WebDAV word文件

我有一个Java应用程序,可以在MS Word上打开WebDAV文件.使用下一个代码在Windows上成功运行:

Runtime.getRuntime().exec("cmd /c start winword " + webdavUrl);
Run Code Online (Sandbox Code Playgroud)

但在Mac OSX上,这是不可能的.我试过这个功能,但它只打开一个空白文件:

Runtime.getRuntime().exec(new String[]{"open", "-a", "Microsoft Word", webdavUrl});
Run Code Online (Sandbox Code Playgroud)

如果我从URL创建一个文件,我可以打开该文件,但我失去了对WebDav URL的引用.

我找到了一个关于可以从浏览器执行此过程的JavaScript代码的讨论.

有什么想法吗?

java macos webdav ms-word

23
推荐指数
1
解决办法
933
查看次数

在Angular 7中使用Jest测试时,缺少Kendo Intl Service的语言环境信息

我对处理语言环境格式的非常特定的数字组件进行了多次测试。使用Karma进行的测试很好,但是一旦将其更改为Jest,就会出现此错误:

NoLocale: Missing locale info for 'de-DE' Solution: http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/#toc-no-locale

我尝试了附件链接中的所有建议,但没有一个成功。

IntlService被初始化en-US的区域设置ID,所以我改成了每个测试,根据我想断言(格式de-DEen-GB)。

这些是component.spec.ts中的测试示例:

numeric-textbox.component.spec.ts

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NumericTextBoxComponent } from './numeric-textbox.component';
import { FormsModule } from '@angular/forms';
import { CldrIntlService, IntlModule, load } from '@progress/kendo-angular-intl';

describe('NumericTextBoxComponent', () => {
  let component: NumericTextBoxComponent;
  let fixture: ComponentFixture<NumericTextBoxComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [ FormsModule, IntlModule ],
      declarations: [ NumericTextBoxComponent ],
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = …
Run Code Online (Sandbox Code Playgroud)

jestjs angular kendo-angular-ui

7
推荐指数
1
解决办法
221
查看次数

标签 统计

angular ×1

java ×1

jestjs ×1

kendo-angular-ui ×1

macos ×1

ms-word ×1

webdav ×1