小编Ric*_*ard的帖子

如何使用新的链接和图标扩展Jenkins作业页面

我正在开发我的第一个Jenkins插件,并按照wiki.jenkins-ci.org上的教程进行操作.添加BuildStep并生成结果后,我现在想将它们发布给用户.我想通过作业页面上的新链接条目和相应的结果视图页面来完成此操作.

遗憾的是,我找不到左侧导航栏的右侧扩展点,中心的主导航链接以及新的目标页面.有人可以指出我正确的方向或给我一个链接到解释这种情况的教程或博客文章?

谢谢

扩展工作页面

jenkins jenkins-plugins

7
推荐指数
2
解决办法
4391
查看次数

OOoBeans死了吗? - 我有什么选择?

最近我开始探索Officebean库,换句话说,我试图让一个简单的OOoBean示例运行.不幸的是,我没有得到任何进展.

首先,我尝试使用JPanel和bean内部构​​建Swing JFrame,但窗口内没有显示任何内容.

public class OpenOfficeGUI extends JFrame
{
    private OOoBean ooBeanObj = null;
    private OfficeConnection ooConnection = null;

    public OpenOfficeGUI()
    {
        init();
    }

    private void init()
    {
        JPanel panel = new JPanel();
        JButton myButton = new JButton("Arsch");
        ooBeanObj = new OOoBean();

        myButton.setSize(100, 32);

        panel.setSize(800, 500);
        panel.setLocation(5, 5);
        panel.setBackground(new Color(125, 125, 125));
        panel.add(ooBeanObj);
        panel.add(myButton);
        panel.setLayout(null);
        this.add(panel);

        this.setSize(800, 600);
        this.setLocation(0, 0);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
}
Run Code Online (Sandbox Code Playgroud)

我的第二次尝试是SWT应用程序,显示在eclipsezone.com(http://www.eclipsezone.com/eclipse/forums/t48966.html).我让这个东西运行,但在启动时出现"com.sun.star.comp.beans.NoConnectionException".

我的第三次也是最后一次尝试是OpenOffice Wiki的OOoBeanViewer.因此,我发现了一个博客文章,它似乎解决了上面的ConnectionException,但它也没有运行,并出现相同的Exception.

我还尝试通过执行以下命令在"侦听"模式下手动启动OpenOffice: soffice.exe -bean -accept = pipe,name = login.name_Office; urp; StarOffice.NamingService …

java openoffice.org javabeans

6
推荐指数
1
解决办法
4150
查看次数

匹配字符串中第一次出现的分号,只有前缀为' - '

我正在尝试编写一个Java的正则表达式,如果有一个分号没有两个(或更多)前导' - '字符,则匹配.

我只能做相反的工作:一个至少有两个前导' - '字符的分号.

([\-]{2,}.*?;.*)
Run Code Online (Sandbox Code Playgroud)

但我需要类似的东西

([^([\-]{2,})])*?;.*
Run Code Online (Sandbox Code Playgroud)

我不知道怎么说不能表达"至少两个字符".

以下是我需要使用表达式评估的一些示例:

; -- a           : should match
-- a ;           : should not match
-- ;             : should not match
--;              : should not match
-;-              : should match
---;             : should not match
-- semicolon ;   : should not match
bla ; bla        : should match
bla              : should not match (; is mandatory)
-;--;            : should match (the first occuring semicolon must not have two or more consecutive …
Run Code Online (Sandbox Code Playgroud)

java regex

5
推荐指数
1
解决办法
1186
查看次数