[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Wed Apr 20 21:42:10 UTC 2005


kawas
Wed Apr 20 17:42:10 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/properties
In directory pub.open-bio.org:/tmp/cvs-serv23926/org/biomoby/registry/properties

Modified Files:
	MobyCentralConfig.java 
Log Message:
removed some import statements, renamed some variables that shadowed super class variables.
Eddie

moby-live/Java/src/main/org/biomoby/registry/properties MobyCentralConfig.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/properties/MobyCentralConfig.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/properties/MobyCentralConfig.java	2005/04/07 16:42:26	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/properties/MobyCentralConfig.java	2005/04/20 21:42:10	1.2
@@ -103,7 +103,6 @@
 
     private final static void getProperties(String name, Map map)
             throws MobyException {
-        StringBuffer sb = new StringBuffer();
         File file = new File(location);
         BufferedReader br = null;
         try {
@@ -124,8 +123,12 @@
                         if (line.indexOf("[") >= 0 && line.indexOf("]") > 0) {
                             return;
                         }
-                        if (Pattern.compile(regexp).matcher(line).matches())
-                            map.put(parse(line, 1), parse(line, 2));
+                        if (Pattern.compile(regexp).matcher(line).matches()) {
+                            String key = parse(line, 1);
+                            String value = parse(line, 2);
+                            map.put(key, value);
+                            System.out.println(key+"->"+value);
+                        }
                     }
                 }
             }




More information about the MOBY-guts mailing list