FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

LinkBack Thread Tools
Old 08-09-2011, 02:44 PM
Kiu Leung
Default Question about listBuilds with multiple task IDs

Hi all,

I have a question about how to form the parameter list of a listBuilds web method call with multiple task ID. According to the definition of a hash table/dictionary, keys are unique, so I cannot put more than 1 entry in the table with the same key "taskID".

I tried to set the value of the "taskID" entry as a list of integers (in Java, as shown below) but koji hub will not accept it, so I should be grateful for your advice about how should I form the parameter list, thank you very much in advance!

Best regards,

Ken Leung

The code:
HashMap<String, Object> params = new HashMap<String, Object>();
ArrayList<Integer> taskIDParamList = new ArrayList<Integer>();
params.put("__starstar", new Boolean(true));
taskIDParamList.add(new Integer(3));
taskIDParamList.add(new Integer(5343));
params.put("taskID", taskIDParamList);
//web method call with params as the parameter.

buildsys mailing list

Thread Tools

All times are GMT. The time now is 09:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org