|
|||||
|
|||||
Swizzle Jira
The BasicsYou just connect via XML-RPC or RSS as such: xml-rpc Jira jira = new Jira("http://jira.acme.org/rpc/xmlrpc"); jira.login("jsmith", "superpass"); Issue issue = jira.getIssue("ACME-120"); rss JiraRss jirarss = new JiraRss("http://jira.acme.org/secure/IssueNavigator.jspa?view=rss&&pid=11230...."); Issue issue = jirarss.getIssue("ACME-120"); ExampleJiraExample.java import org.codehaus.swizzle.jira.Issue; import org.codehaus.swizzle.jira.Jira; import org.codehaus.swizzle.jira.Project; import java.util.List; /** * @version $Rev$ $Date$ */ public class JiraExample { public static void main(String[] args) throws Exception { Jira jira = new Jira("http://issues.apache.org/jira/rpc/xmlrpc"); jira.login("jsmith", "superpass"); // What projects are available? List projects = jira.getProjects(); for (int i = 0; i < projects.size(); i++) { Project project = (Project) projects.get(i); String id = project.getId(); String key = project.getKey(); String name = project.getName(); String lead = project.getLead(); String projectUrl = project.getProjectUrl(); System.out.println(pad(id, 10) + pad(key, 10) + " " + pad(name, 20) + " " + pad(lead, 30)); } // Any issues with EJBs? List issues = jira.getIssuesFromTextSearch("EJB"); for (int i = 0; i < issues.size(); i++) { Issue issue = (Issue) issues.get(i); String assignee = issue.getAssignee(); String description = issue.getDescription(); String key = issue.getKey(); System.out.println(pad(key, 15) + " " + pad(description, 40) + " " + pad(assignee, 30)); } // Create an issue for GBUILD Issue issue = new Issue(); issue.setAssignee("dblevins"); issue.setProject("GBUILD"); issue.setDescription("Use VMWare for testing on other operating systems"); issue.setReporter("dblevins"); issue.setSummary("We should be able to automatically boot up an image for a specific os on demand in any host in the gbuild network."); issue.setType(2); Issue addedIssue = jira.createIssue(issue); String key = addedIssue.getKey(); String description = addedIssue.getDescription(); String assignee = addedIssue.getAssignee(); System.out.println(pad(key, 15) + " " + pad(description, 40) + " " + pad(assignee, 30)); } public static String pad(String str, int width) { str = (str == null) ? "" : str; for (int i = str.length(); i < width; i++) { str += " "; } return str.substring(0, width); } } # # List of projects # 12310200 GBUILD GBuild dblevins 10220 GERONIMO Geronimo coar 12310111 GERONIMODE Geronimo-Devtools sppatel 10661 GRFT Graffito taylor 10457 GUMP Gump gump@jakarta.apache.org 12310240 HADOOP Hadoop cutting 12310050 HARMONY Harmony geir 10500 HIVEMIND HiveMind hlship 12310360 HTTPCLIENT HttpClient olegk 12310340 HTTPCORE HttpComponents HttpC olegk 10602 IBATISNET iBatis for .NET gilles 10601 IBATIS iBatis for Java cbegin 10595 INCUBATOR Incubator noel 10410 INFRA Infrastructure infrastructure@apache.org 10591 JCR Jackrabbit jackrabbitdev 10411 JAMES James serge 10463 JAXME JaxMe dims 10630 JDO JDO clr 10012 JELLY Jelly jstrachan 10493 JS1 Jetspeed taylor@apache.org 10492 JS2 Jetspeed 2 taylor@apache.org 10412 JSIEVE jSieve sbrewin@apache.org 12310350 JSPF jSPF apache@bago.org 10401 JUDDI jUDDI sviens 10519 JUICE JuiCE berin@ozemail.com.au 12310061 KAND Kandula dims 10550 LOGCXX Log4cxx carnold@apache.org 10690 LOG4NET Log4net nicko 12310110 LUCENE Lucene - Java ehatcher 12310290 LUCENENET Lucene.NET georgearoush ... # # Search for "EJB" # SOAP-50 Stateful EJB provider does not work with nagy@watson.ibm.com GERONIMO-187 EJB references (ejb-ref elements in the dain GERONIMO-185 EJBs with ejb-ref references to other EJ GERONIMO-1701 Improve the EJB Server portlet to do the GERONIMO-659 Currently the TSS gbeans have a referenc djencks GERONIMO-1220 Need a better error message, if nothing ammulder BEEHIVE-895 The EJB control tutorial needs to be upd ekoneil GERONIMO-1560 Just for fun I've tried to deploy the ej GERONIMO-1219 Problem reported on mailing list. Need ammulder GERONIMO-186 OpenEJB 2.0M1 does not support EJB-QL gianny GERONIMO-166 Basic support for EJB JAR deployment is WSIF-35 Similar problem to bug #16723 exist in t owenb@apache.org CACTUS-171 Add EJB Redirectors so that unit testing GERONIMO-175 At current time Geronimo's security prov maguro AXIS-3 EJBs do not allow use of the java.io.* c gdaniels AGILA-9 Allow invocation of EJBs or posting mess GERONIMO-534 Deployment of a simple stateless session dblevins CACTUS-191 According to the J2EE spec. one has to h GERONIMO-212 Support for JMS Topics or Queues via the SOAP-74 the ejb provided in samples/ejb/hellobea nagy@watson.ibm.com GERONIMO-209 References to JDBC DataSources configure BEEHIVE-790 Currently, the ejb control doesn't log a GERONIMO-623 In some unknown circumstances an ejb tim djencks GERONIMO-574 If an EJB home or object handle is seria dain GERONIMO-207 The env-entry element of the ejb-jar.xml GERONIMO-266 in my ongoing playing around with geroni djencks JAMES-112 You should make an EJB (Session Bean)rem AXIS-447 I tried to deploy an EJB as a web servic axis-dev@ws.apache.org GERONIMO-866 Add interfaces for EJBContainer / EJBCon ammulder GERONIMO-838 Currently you can embed a connector depl djencks GERONIMO-1695 I have an EJB with a local interface and ammulder ... # # Results of adding an issue to GBUILD # GBUILD-18 Use VMWare for testing on other operatin dblevins |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||