From 5c762750101f12abd51621355a871e42fd9c7a33 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 4 May 2014 23:34:16 +0200 Subject: o Getting the web configuration to work. --- .../activemq/ActiveMqGlobalConfig/config.groovy | 15 +++++++++++++++ .../plugins/activemq/ActiveMqPlugin/config.jelly | 10 ---------- .../plugins/activemq/ActiveMqPlugin/global.jelly | 21 --------------------- .../activemq/ActiveMqPlugin/help-activeMqUrl.html | 6 ------ .../plugins/activemq/ActiveMqPlugin/help-name.html | 6 ------ 5 files changed, 15 insertions(+), 43 deletions(-) create mode 100644 src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqGlobalConfig/config.groovy delete mode 100644 src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/config.jelly delete mode 100644 src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/global.jelly delete mode 100644 src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-activeMqUrl.html delete mode 100644 src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-name.html (limited to 'src/main/resources') diff --git a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqGlobalConfig/config.groovy b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqGlobalConfig/config.groovy new file mode 100644 index 0000000..7c5cae3 --- /dev/null +++ b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqGlobalConfig/config.groovy @@ -0,0 +1,15 @@ +package org.jenkinsci.plugins.activemq.ActiveMqGlobalConfig + +def f=namespace(lib.FormTagLib) + +f.section(title:_("ActiveMQ Configuration")) { + f.entry(title:_("Enable"), field:"enable") { + f.checkbox() + } + f.entry(title:_("Broker URL"), field:"brokerUrl") { + f.textbox() + } +// f.entry(title:_("URL"), field:"url") { +// f.textbox(default: "my url") +// } +} diff --git a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/config.jelly b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/config.jelly deleted file mode 100644 index 879ae01..0000000 --- a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/config.jelly +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/global.jelly b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/global.jelly deleted file mode 100644 index 6da81e0..0000000 --- a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/global.jelly +++ /dev/null @@ -1,21 +0,0 @@ - - - - diff --git a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-activeMqUrl.html b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-activeMqUrl.html deleted file mode 100644 index df2e815..0000000 --- a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-activeMqUrl.html +++ /dev/null @@ -1,6 +0,0 @@ -
- This HTML fragment will be injected into the configuration screen - when the user clicks the 'help' icon. See global.jelly for how the - form decides which page to load. - You can have any HTML fragment here. -
diff --git a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-name.html b/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-name.html deleted file mode 100644 index 288f214..0000000 --- a/src/main/resources/org/jenkinsci/plugins/activemq/ActiveMqPlugin/help-name.html +++ /dev/null @@ -1,6 +0,0 @@ -
- Help file for fields are discovered through a file name convention. This file is - help for the "name" field. You can have arbitrary HTML here. You can write - this file as a Jelly script if you need a dynamic content (but if you do so, change - the extension to .jelly). -
-- cgit v1.2.3