01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.ffj.util;
07:
08: import org.netbeans.modules.web.config.WebAppDescriptor;
09:
10: /*
11: * HACK! - it seems as though web module groups order themselves
12: * by their directory names, and execute() executes the first one.
13: * We extend the WebAppDescriptor to enforce our own ordering.
14: */
15:
16: class PortletWebAppDescriptor extends WebAppDescriptor {
17:
18: public PortletWebAppDescriptor(boolean isportlet, String name,
19: String mapping) {
20: super (name, mapping);
21: m_IsPortlet = isportlet;
22: }
23:
24: // our portlet comes first (before the portal server file system).
25:
26: public int compareTo(Object o) {
27: return m_IsPortlet ? -1 : 1;
28: }
29:
30: private boolean m_IsPortlet;
31: }
|