diff options
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb index 59a5a5fe4..8fbbdc285 100644 --- a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb +++ b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/service.json.erb @@ -1,12 +1,13 @@ { -"type": "<%= envtype %>", -"url": "/<%= envid %>", -"version": "<%= envversion %>", -"info": "<%= envinfo %>" , - "properties":{ - "custom_wf": "<%= custom_wf %>", - "custom_wf_and_status": "<%= custom_wf_and_status %>", - "xmlrpc_enabled": "<%= xmlrpc_enabled %>", - "default": "<%= envdefault %>" - } + "type": "<%= envtype %>", + "url": "/<%= envid %>", + "version": "<%= envversion %>", + "info": "<%= envinfo %>", + "properties":{ +<% if @envdefault %><% if propertyanz.to_i > 0 %> ,<% else %> <% end %><% propertyanz = propertyanz.to_i -%><% propertyanz += 1 -%>"default": "<%= envdefault %>"<% end %> +<% if @custom_wf %><% if propertyanz.to_i > 0 %> ,<% else %> <% end %><% propertyanz = propertyanz.to_i -%><% propertyanz += 1 -%>"custom_wf": "<%= custom_wf %>"<% end %> +<% if @custom_wf_and_status %><% if propertyanz.to_i > 0 %> ,<% else %> <% end %><% propertyanz = propertyanz.to_i -%><% propertyanz += 1 -%>"custom_wf_and_status": "<%= custom_wf_and_status %>"<% end %> +<% if @xmlrpc_enabled %><% if propertyanz.to_i > 0 %> ,<% else %> <% end %><% propertyanz = propertyanz.to_i -%><% propertyanz += 1 -%>"xmlrpc_enabled": "<%= xmlrpc_enabled %>"<% end %> +<% if @desciptorfile > " " %><% if propertyanz.to_i > 0 %> ,<% else %> <% end %><% propertyanz = propertyanz.to_i -%><% propertyanz += 1 -%>"desciptorfile": "<%= desciptorfile %>"<% end %> + } } |