portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager FileSystemPAM.java
Date Wed, 10 Mar 2004 17:17:01 GMT
jford       2004/03/10 09:17:01

  Modified:    portal/src/java/org/apache/jetspeed/tools/pamanager
                        FileSystemPAM.java
  Log:
  Added attempt to load JetspeedPortletDescriptor
  
  Revision  Changes    Path
  1.24      +15 -1     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/FileSystemPAM.java
  
  Index: FileSystemPAM.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/FileSystemPAM.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- FileSystemPAM.java	9 Mar 2004 19:35:46 -0000	1.23
  +++ FileSystemPAM.java	10 Mar 2004 17:17:01 -0000	1.24
  @@ -378,6 +378,20 @@
           }
           webapp.addDisplayName(Jetspeed.getDefaultLocale(), paName);
           app.setWebApplicationDefinition(webapp);
  +        
  +        try
  +        {
  +            String jetspeedXMLPath = portletAppDir + "/WEB-INF/jetspeed-portlet.xml";
  +            log.info("Loading " + jetspeedXMLPath + " into memory....");
  +            if(JetspeedDescriptorUtilities.loadPortletDescriptor(jetspeedXMLPath, app))
  +            {
  +                log.info("Loaded " + jetspeedXMLPath + " into memory....");
  +            }
  +        }
  +        catch(Exception e)
  +        {
  +            e.printStackTrace();
  +        }
   
           // save it to the registry
           log.info("Saving the portlet.xml in the registry...");
  
  
  

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


Mime
View raw message