portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager PsmlImporter.java
Date Tue, 20 Nov 2001 05:31:19 GMT
taylor      01/11/19 21:31:19

  Modified:    src/java/org/apache/jetspeed/services/psmlmanager
                        PsmlImporter.java
  Log:
  - put in check for PsmlImporter service being commented out
  
  Revision  Changes    Path
  1.3       +8 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java
  
  Index: PsmlImporter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PsmlImporter.java	2001/11/20 05:01:22	1.2
  +++ PsmlImporter.java	2001/11/20 05:31:19	1.3
  @@ -97,15 +97,20 @@
   
       public void run(ServletConfig conf)
       {
  -        String msg = "Running PSMLImporter...";
  -        System.out.println(msg);
  -        Log.note(msg);
           int count = 0;
           try
           {
              if (alreadyImported())
                   return; 
  +
               PsmlManagerService fileService = (PsmlManagerService)TurbineServices.getInstance().getService("PsmlImportManager");
    
  +            if (null == fileService)
  +                return;
  +
  +            String msg = "Running PSMLImporter...";
  +            System.out.println(msg);
  +            Log.note(msg);
  +
               QueryLocator locator = new QueryLocator(QueryLocator.QUERY_ALL);
               count = fileService.export(PsmlManager.getService(), locator);
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message