[MOBY-guts] biomoby commit

Nina Opushneva nopushneva at pub.open-bio.org
Thu Apr 14 16:11:55 UTC 2005


nopushneva
Thu Apr 14 12:11:55 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util
In directory pub.open-bio.org:/tmp/cvs-serv12737

Modified Files:
	Constants.java Log.java 
Log Message:
recent version

moby-live/Java/src/main/org/biomoby/registry/rdfagent/util Constants.java,1.3,1.4 Log.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Constants.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Constants.java	2005/04/07 22:31:34	1.3
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Constants.java	2005/04/14 16:11:55	1.4
@@ -1,14 +1,15 @@
 
 package org.biomoby.registry.rdfagent.util;
 
-import java.io.File;
-import java.io.IOException;
-
 import org.jdom.Document;
 import org.jdom.Element;
 import org.jdom.JDOMException;
 import org.jdom.input.SAXBuilder;
 
+import javax.swing.*;
+import java.io.File;
+import java.io.IOException;
+
 //import ca.icapture.moby.util.Log;
 
 /**
@@ -58,10 +59,10 @@
 		try {
 		  final SAXBuilder builder = new SAXBuilder();
 		   RDFagentHome = System.getProperty(ENV_PROPERTY_NAME);
-		  
+//System.out.println("agentHome = "+RDFagentHome);		  
 	
      	String str = RDFagentHome +	CONFIG_FILE;
-System.out.println("config_path = "+str);
+//System.out.println("config_path = "+str);
       
        
            File file = new File(str);
@@ -84,7 +85,7 @@
              SP_SUBJECT = sProvider.getChildTextTrim("subject");
              SP_ERR_MSG_CON = sProvider.getChildTextTrim("errMesConnect");
          } else {
-             Log.warning("The <serviceProvider> node is not defined in the config file. Sending messages to a service provider is impossible");
+            Report.add("The <serviceProvider> node is not defined in the config file. Sending messages to a service provider is impossible");
          }
 
          final Element sv = root.getChild("serviceValidator");
@@ -104,16 +105,14 @@
 				SV_SIGN_URL_PATH = sv.getChildTextTrim("signURLFilePath");
 				SV_LOG_LEVEL = Integer.parseInt(sv.getChildTextTrim("logLevel"));
 			}else{
-                Log.warning("The <serviceValidator> node is not defined in the config file. Writing recordes into log/report files is impossible");
+               Report.add("The <serviceValidator> node is not defined in the config file. Writing recordes into log/report files is impossible");
             }
             
      } 
      catch (JDOMException e) {
 		Log.severe(e.getMessage());
-     } 
-     catch (IOException e) {
-		Log.severe(e.getMessage());
-     } 
+//		e.getMessage();	
+     }
       
     
   }    

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Log.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Log.java	2005/04/07 22:31:34	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/registry/rdfagent/util/Log.java	2005/04/14 16:11:55	1.3
@@ -2,10 +2,10 @@
 
 package org.biomoby.registry.rdfagent.util;
 
-import java.io.IOException;
-import java.util.logging.FileHandler;
-import java.util.logging.Logger;
-import java.util.logging.SimpleFormatter;
+import java.util.logging.*;
+import java.util.Date;
+import java.util.Calendar;
+import java.io.*;  
 
 public class Log {
 	




More information about the MOBY-guts mailing list