diff options
author | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-02 15:48:23 +0000 |
---|---|---|
committer | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-02 15:48:23 +0000 |
commit | cfc1165d1fcaf4dc523821a707ad4696921c98c8 (patch) | |
tree | 25ca879515603a255e0033b00e6c93040e7fc064 | |
parent | b057cc4d3e9f434bea662ca67e864752d553df3a (diff) |
parameterise file
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@905677 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java b/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java index 56f3b56ca2..9be9d967ef 100644 --- a/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java +++ b/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java @@ -24,9 +24,7 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import java.net.MalformedURLException; import java.net.URL; -import java.sql.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; @@ -34,12 +32,11 @@ import java.util.List; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBElement; -import javax.xml.bind.Unmarshaller; import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; import org.oasisopen.sca.annotation.Init; -import org.xml.sax.InputSource; -import org.xml.sax.XMLReader; +import org.oasisopen.sca.annotation.Property; import com.example.ipo.jaxb.Item; import com.example.ipo.jaxb.JiraData; @@ -47,19 +44,12 @@ import com.example.ipo.jaxb.Milestone; import com.example.ipo.jaxb.Plan; import com.example.ipo.jaxb.RSS; import com.example.ipo.jaxb.WorkItem; -import com.example.ipo.jaxb.JiraRSS; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.FeedException; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.XmlReader; public class PlanViewImpl implements PlanView { - // private com.example.ipo.jaxb.Plan _p = null; static String rssPrefix = "http://issues.apache.org/jira/si/jira.issueviews:issue-xml/"; - static String planFile="src/main/resources/jiraSideBand.xml"; - // TUSCANY-1178/TUSCANY-1178.xml + @Property + public String planFile = "src/main/resources/jiraSideBand.xml"; @Init public void init() { @@ -72,8 +62,6 @@ public class PlanViewImpl implements PlanView { augmentPlan(p); } catch (Exception e) { e.printStackTrace(); - } finally { - // FIXME } return p; } @@ -92,7 +80,6 @@ public class PlanViewImpl implements PlanView { private void augmentWorkItem(WorkItem wi) { String jira = wi.getJira(); if(jira != null) { - String feed = rssPrefix += jira + "/" + jira + ".xml"; JiraData jd = new JiraData(); wi.setJiraData(jd); jd.setID(jira); |