You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by bl...@apache.org on 2004/05/12 10:26:08 UTC

cvs commit: jakarta-pluto/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry PortletDefinitionRegistryServiceFileImpl.java

blumm       2004/05/12 01:26:08

  Modified:    portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry
                        PortletDefinitionRegistryServiceFileImpl.java
  Log:
  This change has been made for support of JBoss.
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-pluto/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceFileImpl.java
  
  Index: PortletDefinitionRegistryServiceFileImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-pluto/portal/src/java/org/apache/pluto/portalImpl/services/portletdefinitionregistry/PortletDefinitionRegistryServiceFileImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PortletDefinitionRegistryServiceFileImpl.java	21 Apr 2004 17:02:38 -0000	1.4
  +++ PortletDefinitionRegistryServiceFileImpl.java	12 May 2004 08:26:08 -0000	1.5
  @@ -171,7 +171,7 @@
       // For JBoss compatibility, change webModule from the form
       // of "tmp12345foo.war" to "foo".
       int len = webModule.length();
  -    if (webModule.endsWith(WAR_FILE_EXT) && webModule.startsWith(TMP_PREFIX) && len > TMP_PREFIX.length() + WAR_FILE_EXT.length()) {
  +    if (webModule.endsWith(WAR_FILE_EXT) && webModule.startsWith(TMP_PREFIX.substring(0,3)) && len > TMP_PREFIX.length() + WAR_FILE_EXT.length()) { 
           webModule = webModule.substring(TMP_PREFIX.length(), len - WAR_FILE_EXT.length());
       }
       // else assumed literal.