Author: taylor
Date: Fri Jun 22 10:16:48 2007
New Revision: 549884
URL: http://svn.apache.org/viewvc?view=rev&rev=549884
Log:
register on startup for internal apps, and convert from local if going 2.1 ->
2.1.1
(NOTE this feature will not be enabled in 2.1.1 after discussions with Ate, but
I still want to get the code there for ref)
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/tools/pamanager/PortletApplicationManager.java
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/tools/pamanager/PortletApplicationManager.java
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/tools/pamanager/PortletApplicationManager.java?view=diff&rev=549884&r1=549883&r2=549884
==============================================================================
---
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/tools/pamanager/PortletApplicationManager.java
(original)
+++
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/tools/pamanager/PortletApplicationManager.java
Fri Jun 22 10:16:48 2007
@@ -171,6 +171,12 @@
File webinf = new File (appRoot);
ClassLoader contextClassLoader =
Thread.currentThread().getContextClassLoader();
DirectoryHelper dir = new DirectoryHelper(webinf);
+ MutablePortletApplication app =
registry.getPortletApplicationByIdentifier(contextName);
+ if (app.getApplicationType() == MutablePortletApplication.LOCAL)
+ {
+ app.setApplicationType(MutablePortletApplication.INTERNAL);
+ registry.updatePortletApplication(app);
+ }
startPA(contextName, dir, contextClassLoader,
MutablePortletApplication.INTERNAL);
// startInternal(contextName, warStruct, paClassLoader, true);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]