Revision: 15490
Author: pavel.slegr
Date: Thu Nov 25 05:43:22 2010
Log: trackertool add presence roadmap
http://code.google.com/p/mobicents/source/detail?r=15490

Added:
/tools/productization/branches/trackertool_thin/trackertool-core/src/main/java/org/mobicents/gcode/trackertool/helper/IssuesForLabels.java /tools/productization/branches/trackertool_thin/trackertool-core/src/main/java/org/mobicents/gcode/trackertool/helper/IssuesForSvnLocation.java
Modified:
 /tools/productization/branches/trackertool_thin/build.xml
 /tools/productization/branches/trackertool_thin/conf/log4j.properties
 /tools/productization/branches/trackertool_thin/conf/trackertool.properties

=======================================
--- /dev/null
+++ /tools/productization/branches/trackertool_thin/trackertool-core/src/main/java/org/mobicents/gcode/trackertool/helper/IssuesForLabels.java Thu Nov 25 05:43:22 2010
@@ -0,0 +1,138 @@
+package org.mobicents.gcode.trackertool.helper;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Properties;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.mobicents.gcode.trackertool.Feed;
+import org.mobicents.gcode.trackertool.TrackerClient;
+import org.mobicents.gcode.trackertool.TrackertoolProperties;
+
+import com.google.gdata.client.projecthosting.IssuesQuery;
+import com.google.gdata.data.projecthosting.IssuesEntry;
+import com.google.gdata.data.projecthosting.IssuesFeed;
+import com.google.gdata.data.projecthosting.Label;
+import com.google.gdata.util.AuthenticationException;
+import com.google.gdata.util.ServiceException;
+
+/**
+ *
+ * This class gets a list of all issues for particular label(s)
+ * @author pslegr
+ *
+ */
+public class IssuesForLabels {
+
+       static Logger logger = Logger.getLogger(IssuesForLabels.class);
+
+       public static void main(String[] args) {
+               try {
+                       Properties properties = new Properties();
+                       try {
+                               properties.load(new 
FileInputStream("log4j.properties"));
+                       } catch (IOException e) {
+
+                       }
+                       System.out.println("URL of log4j properties: " + 
properties);
+                       PropertyConfigurator.configure(properties);
+
+                       List<String> labels = new ArrayList<String>();
+                       int from = new Integer(args[0]).intValue();
+                       int to = new Integer(args[1]).intValue();
+                       for (int i = 2; i < args.length; i++) {
+                               String string = args[i];
+                               labels.add(string);
+                       }
+                       IssuesForLabels issuesForLabels = new 
IssuesForLabels(from,to,labels);
+                       issuesForLabels.printAllLabels();
+                       issuesForLabels.writeLabelsToFile(new 
File("labels.txt"));
+
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+
+       }
+
+ final TrackertoolProperties properties = TrackertoolProperties.getInstance();
+       List<String> issues = new ArrayList<String>();
+
+
+       public IssuesForLabels(int from, int to, List<String> labels) {
+               try {
+                       TrackerClient client = TrackerClient.getInstance();
+                       for(int x = from; x <to;x++){
+                               IssuesQuery querySlee = null;
+                               querySlee = new IssuesQuery(new URL 
(Feed.getFeed(Feed.PROJECT)));
+                               querySlee.setId(x);
+                               IssuesFeed issuesFeed = null;
+                               try {
+                                       issuesFeed = 
client.queryIssues(querySlee);
+                               } catch (Exception e) {
+                                       // do nothing
+                               }
+                               if (issuesFeed == null)
+                                       continue;
+                               client.printAllIssues(issuesFeed);
+                               logger.debug("---");
+ // iterate over all issues and find out categories of components,versions,release
+                               for (int i = 0; i < 
issuesFeed.getEntries().size(); i++) {
+                                       IssuesEntry entry = 
issuesFeed.getEntries().get(i);
+                                       for(Label label: entry.getLabels()){
+                                               
if(labels.contains(label.getValue())){
+                                                       
issues.add("["+entry.getId()+"]:"+ entry.getTitle().getPlainText());
+                                               }
+
+                                       }
+                               }
+                       }
+
+
+               } catch (AuthenticationException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (MalformedURLException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (ServiceException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+
+       public void printAllLabels(){
+               Collections.sort(issues,String.CASE_INSENSITIVE_ORDER);
+               for(String label : issues){
+                       logger.debug(label);
+               }
+       }
+
+       public void writeLabelsToFile (File file) {
+               try {
+               BufferedWriter out = new BufferedWriter(new FileWriter(file));
+                       for(String label : issues){
+                               out.write(label + "\n");
+                       }
+                       out.close();
+           } catch (IOException e) {
+               e.printStackTrace();
+           } catch (Exception e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+}
=======================================
--- /dev/null
+++ /tools/productization/branches/trackertool_thin/trackertool-core/src/main/java/org/mobicents/gcode/trackertool/helper/IssuesForSvnLocation.java Thu Nov 25 05:43:22 2010
@@ -0,0 +1,138 @@
+package org.mobicents.gcode.trackertool.helper;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Properties;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.mobicents.gcode.trackertool.Feed;
+import org.mobicents.gcode.trackertool.TrackerClient;
+import org.mobicents.gcode.trackertool.TrackertoolProperties;
+
+import com.google.gdata.client.projecthosting.IssuesQuery;
+import com.google.gdata.data.projecthosting.IssuesEntry;
+import com.google.gdata.data.projecthosting.IssuesFeed;
+import com.google.gdata.data.projecthosting.Label;
+import com.google.gdata.util.AuthenticationException;
+import com.google.gdata.util.ServiceException;
+
+/**
+ *
+ * This class gets a list of all issues for particular label(s)
+ * @author pslegr
+ *
+ */
+public class IssuesForSvnLocation {
+
+       static Logger logger = Logger.getLogger(IssuesForSvnLocation.class);
+
+       public static void main(String[] args) {
+               try {
+                       Properties properties = new Properties();
+                       try {
+                               properties.load(new 
FileInputStream("log4j.properties"));
+                       } catch (IOException e) {
+
+                       }
+                       System.out.println("URL of log4j properties: " + 
properties);
+                       PropertyConfigurator.configure(properties);
+
+                       List<String> labels = new ArrayList<String>();
+                       int from = new Integer(args[0]).intValue();
+                       int to = new Integer(args[1]).intValue();
+                       for (int i = 2; i < args.length; i++) {
+                               String string = args[i];
+                               labels.add(string);
+                       }
+ IssuesForSvnLocation issuesForLabels = new IssuesForSvnLocation(from,to,labels);
+                       issuesForLabels.printAllLabels();
+ issuesForLabels.writeLabelsToFile(new File(IssuesForSvnLocation.class.getSimpleName()+".txt"));
+
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+
+       }
+
+ final TrackertoolProperties properties = TrackertoolProperties.getInstance();
+       List<String> issues = new ArrayList<String>();
+
+
+       public IssuesForSvnLocation(int from, int to, List<String> labels) {
+               try {
+                       TrackerClient client = TrackerClient.getInstance();
+                       for(int x = from; x <to;x++){
+                               IssuesQuery querySlee = null;
+                               querySlee = new IssuesQuery(new URL 
(Feed.getFeed(Feed.PROJECT)));
+                               querySlee.setId(x);
+                               IssuesFeed issuesFeed = null;
+                               try {
+                                       issuesFeed = 
client.queryIssues(querySlee);
+                               } catch (Exception e) {
+                                       // do nothing
+                               }
+                               if (issuesFeed == null)
+                                       continue;
+                               client.printAllIssues(issuesFeed);
+                               logger.debug("---");
+ // iterate over all issues and find out categories of components,versions,release
+                               for (int i = 0; i < 
issuesFeed.getEntries().size(); i++) {
+                                       IssuesEntry entry = 
issuesFeed.getEntries().get(i);
+                                       for(Label label: entry.getLabels()){
+                                               
if(labels.contains(label.getValue())){
+                                                       
issues.add("["+entry.getId()+"]:"+ entry.getTitle().getPlainText());
+                                               }
+
+                                       }
+                               }
+                       }
+
+
+               } catch (AuthenticationException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (MalformedURLException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (ServiceException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+
+       public void printAllLabels(){
+               Collections.sort(issues,String.CASE_INSENSITIVE_ORDER);
+               for(String label : issues){
+                       logger.debug(label);
+               }
+       }
+
+       public void writeLabelsToFile (File file) {
+               try {
+               BufferedWriter out = new BufferedWriter(new FileWriter(file));
+                       for(String label : issues){
+                               out.write(label + "\n");
+                       }
+                       out.close();
+           } catch (IOException e) {
+               e.printStackTrace();
+           } catch (Exception e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+}
=======================================
--- /tools/productization/branches/trackertool_thin/build.xml Mon Nov 1 07:47:48 2010 +++ /tools/productization/branches/trackertool_thin/build.xml Thu Nov 25 05:43:22 2010
@@ -169,10 +169,9 @@
<copy overwrite="true" tofile="${basedir}/trackertool-core/src/main/resources/g-app-templates/ssf-roadmap-template.html"> <fileset file="${basedir}/target/checkout/mobicents-google-app-engine/mss/ssf/ssf-roadmap.html" />
         </copy>
- <!-- DO NOT delete this one - is prepared for the future ROADMAPS of the Presence> - <copy overwrite="true" tofile="${basedir}/trackertool-core/src/main/resources/g-app-templates/presence-roadmap.xml"> - <fileset file="${basedir}/target/checkout/mobicents-google-app-engine/presence-roadmap.xml" />
-        </copy-->
+ <copy overwrite="true" tofile="${basedir}/trackertool-core/src/main/resources/g-app-templates/msps-roadmap-template.html"> + <fileset file="${basedir}/target/checkout/mobicents-google-app-engine/sip-presence/roadmap.html" />
+        </copy>
        </target>

        <target name="copy-g-app-roadmaps">
@@ -192,6 +191,9 @@
<copy overwrite="true" tofile="${basedir}/target/checkout/mobicents-google-app-engine/mss/ssf/ssf-roadmap.html"> <fileset file="${basedir}/trackertool-core/src/main/resources/g-app-templates/ssf-roadmap.html" />
         </copy>
+ <copy overwrite="true" tofile="${basedir}/target/checkout/mobicents-google-app-engine/sip-presence/roadmap.html"> + <fileset file="${basedir}/trackertool-core/src/main/resources/g-app-templates/msps-roadmap.html" />
+        </copy>
        </target>

        <target name="copy-incubator-roadmaps">
=======================================
--- /tools/productization/branches/trackertool_thin/conf/log4j.properties Mon Nov 1 07:47:48 2010 +++ /tools/productization/branches/trackertool_thin/conf/log4j.properties Thu Nov 25 05:43:22 2010
@@ -1,7 +1,7 @@
 log4j.rootLogger=DEBUG, A1, file

 ### direct log messages to stdout ###
-log4j.appender.A1.threshold=INFO
+log4j.appender.A1.threshold=DEBUG
 log4j.appender.A1=org.apache.log4j.ConsoleAppender
 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
 log4j.appender.A1.layout.ConversionPattern=%d{ABSOLUTE} [%-5p] %c{1} - %m%n
@@ -9,7 +9,6 @@
 ### file appender
 log4j.appender.file=org.apache.log4j.RollingFileAppender
 log4j.appender.file.maxFileSize=2000KB
-log4j.appender.file.maxBackupIndex=5
 log4j.appender.file.File=log/trackertool.log
 log4j.appender.file.threshold=debug
 log4j.appender.file.layout=org.apache.log4j.PatternLayout
=======================================
--- /tools/productization/branches/trackertool_thin/conf/trackertool.properties Mon Nov 1 07:47:48 2010 +++ /tools/productization/branches/trackertool_thin/conf/trackertool.properties Thu Nov 25 05:43:22 2010
@@ -48,17 +48,19 @@
 roadmap.template.file.plan.filename=RoadmapPlanTemplate.xml
 roadmap.template.file.planentry.filename=RoadmapPlanEntryTemplate.xml
roadmap.template.roadmap.filelist.location=/trackertool-core/src/main/resources/g-app-templates
-roadmap.template.roadmap.filelist.filenames=mss-roadmap-template.html,slee-roadmap-template.html,mms-roadmap-template.html,diameter-roadmap-template.html,ssf-roadmap-template.html
+roadmap.template.roadmap.filelist.filenames=mss-roadmap-template.html,slee-roadmap-template.html,mms-roadmap-template.html,diameter-roadmap-template.html,ssf-roadmap-template.html,msps-roadmap-template.html
 roadmap.template.name.mss-roadmap-template=mss
 roadmap.template.name.slee-roadmap-template=slee
 roadmap.template.name.mms-roadmap-template=mms
 roadmap.template.name.diameter-roadmap-template=diameter
 roadmap.template.name.ssf-roadmap-template=ssf
+roadmap.template.name.msps-roadmap-template=msps
 roadmap.template.components.mss=Component-Sip-Servlets,MSS
 roadmap.template.components.slee=Component-JainSLEE,SLEE
 roadmap.template.components.mms=Component-Media-Server,MMS
 roadmap.template.components.diameter=Component-Diameter,Diameter
 roadmap.template.components.ssf=Component-Spring-Servlets-Framework,SSF
+roadmap.template.components.msps=Component-MSPS,MSPS


 #roadmap incubator properties

Reply via email to