From 6c3b61e329938bb892833b63c843b156957d51d8 Mon Sep 17 00:00:00 2001 From: Kingsley Hendrickse Date: Thu, 19 Apr 2012 11:14:25 +0100 Subject: [PATCH] Added row and cell support --- .gitignore | 1 + .../net/masterthought/jenkins/json/Cell.java | 20 +++++++++++++ .../net/masterthought/jenkins/json/Row.java | 16 +++++++++++ velocity.log | 28 +++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 src/main/java/net/masterthought/jenkins/json/Cell.java create mode 100644 src/main/java/net/masterthought/jenkins/json/Row.java create mode 100644 velocity.log diff --git a/.gitignore b/.gitignore index 00446a9..264d709 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ work target .DS_Store .log +.idea diff --git a/src/main/java/net/masterthought/jenkins/json/Cell.java b/src/main/java/net/masterthought/jenkins/json/Cell.java new file mode 100644 index 0000000..1656d2f --- /dev/null +++ b/src/main/java/net/masterthought/jenkins/json/Cell.java @@ -0,0 +1,20 @@ +package net.masterthought.jenkins.json; + +public class Cell { + + private String field; + private String value; + + public Cell() { ; + + } + + public String getField(){ + return field; + } + + public String getValue(){ + return value; + } + +} diff --git a/src/main/java/net/masterthought/jenkins/json/Row.java b/src/main/java/net/masterthought/jenkins/json/Row.java new file mode 100644 index 0000000..d9bfce6 --- /dev/null +++ b/src/main/java/net/masterthought/jenkins/json/Row.java @@ -0,0 +1,16 @@ +package net.masterthought.jenkins.json; + +import java.util.List; + +public class Row { + + private String[] cells; + + public Row() { + + } + + public String[] getCells(){ + return cells; + } +} diff --git a/velocity.log b/velocity.log new file mode 100644 index 0000000..d7340e4 --- /dev/null +++ b/velocity.log @@ -0,0 +1,28 @@ +Thu Apr 19 10:59:24 BST 2012 [debug] AvalonLogChute initialized using file 'velocity.log' +Thu Apr 19 10:59:24 BST 2012 [trace] ******************************************************************* +Thu Apr 19 10:59:24 BST 2012 [debug] Starting Jakarta Velocity v1.5-SNAPSHOT (compiled: 2006-07-21 06:25:35) +Thu Apr 19 10:59:24 BST 2012 [trace] RuntimeInstance initializing. +Thu Apr 19 10:59:24 BST 2012 [debug] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties +Thu Apr 19 10:59:24 BST 2012 [debug] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogChute +Thu Apr 19 10:59:24 BST 2012 [debug] Using logger class org.apache.velocity.runtime.log.AvalonLogChute +Thu Apr 19 10:59:24 BST 2012 [debug] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) +Thu Apr 19 10:59:24 BST 2012 [debug] ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader +Thu Apr 19 10:59:24 BST 2012 [trace] ClasspathResourceLoader : initialization complete. +Thu Apr 19 10:59:24 BST 2012 [debug] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) +Thu Apr 19 10:59:24 BST 2012 [trace] Default ResourceManager initialization complete. +Thu Apr 19 10:59:24 BST 2012 [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Literal +Thu Apr 19 10:59:24 BST 2012 [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Macro +Thu Apr 19 10:59:24 BST 2012 [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Parse +Thu Apr 19 10:59:24 BST 2012 [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Include +Thu Apr 19 10:59:24 BST 2012 [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach +Thu Apr 19 10:59:24 BST 2012 [debug] Created '20' parsers. +Thu Apr 19 10:59:24 BST 2012 [trace] Velocimacro : initialization starting. +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : Default library not found. +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : allowInline = true : VMs can be defined inline in templates +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. +Thu Apr 19 10:59:24 BST 2012 [debug] Velocimacro : autoload off : VM system will not automatically reload global library macros +Thu Apr 19 10:59:24 BST 2012 [trace] Velocimacro : initialization complete. +Thu Apr 19 10:59:24 BST 2012 [trace] RuntimeInstance successfully initialized. +Thu Apr 19 10:59:24 BST 2012 [debug] ResourceManager : found templates/featureOverview.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader