Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 789274 Details for
Bug 998968
add EPP product slot to EAP 5 plug-in
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch that adds EPP to JBossProductType
BZ998968_AddEPPProductType.patch (text/plain), 4.78 KB, created by
Larry O'Leary
on 2013-08-22 16:53:07 UTC
(
hide
)
Description:
Proposed patch that adds EPP to JBossProductType
Filename:
MIME Type:
Creator:
Larry O'Leary
Created:
2013-08-22 16:53:07 UTC
Size:
4.78 KB
patch
obsolete
>commit c5bbe8dfdd4b1708ccfa27c871d624c2bba4cf2f >Author: Larry O'Leary <loleary@redhat.com> >Date: Wed Aug 21 17:37:30 2013 -0500 > > Bug 998968 - add EPP product slot to EAP 5 plug-in > >diff --git a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/JBossProductType.java b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/JBossProductType.java >index 312ea80..784fd43 100644 >--- a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/JBossProductType.java >+++ b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/JBossProductType.java >@@ -1,25 +1,21 @@ > /* >-* Jopr Management Platform >-* Copyright (C) 2005-2012 Red Hat, Inc. >-* All rights reserved. >-* >-* This program is free software; you can redistribute it and/or modify >-* it under the terms of the GNU General Public License, version 2, as >-* published by the Free Software Foundation, and/or the GNU Lesser >-* General Public License, version 2.1, also as published by the Free >-* Software Foundation. >-* >-* This program is distributed in the hope that it will be useful, >-* but WITHOUT ANY WARRANTY; without even the implied warranty of >-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >-* GNU General Public License and the GNU Lesser General Public License >-* for more details. >-* >-* You should have received a copy of the GNU General Public License >-* and the GNU Lesser General Public License along with this program; >-* if not, write to the Free Software Foundation, Inc., >-* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. >-*/ >+ * RHQ Management Platform >+ * Copyright (C) 2013 Red Hat, Inc. >+ * All rights reserved. >+ * >+ * This program is free software; you can redistribute it and/or modify >+ * it under the terms of the GNU General Public License as published by >+ * the Free Software Foundation version 2 of the License. >+ * >+ * This program is distributed in the hope that it will be useful, >+ * but WITHOUT ANY WARRANTY; without even the implied warranty of >+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+ * GNU General Public License for more details. >+ * >+ * You should have received a copy of the GNU General Public License >+ * along with this program; if not, write to the Free Software >+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. >+ */ > package org.rhq.plugins.jbossas5.helper; > > import java.util.jar.Attributes; >@@ -35,7 +31,8 @@ public enum JBossProductType { > EAP("JBoss EAP", "JBoss Enterprise Application Platform", "default"), > EWP("JBoss EWP", "JBoss Enterprise Web Platform", "default"), > SOA("JBoss SOA-P", "JBoss Enterprise SOA Platform", "default"), >- BRMS("JBoss BRMS", "JBoss Business Rules Management System", "default"); >+ BRMS("JBoss BRMS", "JBoss Business Rules Management System", "default"), >+ EPP("JBoss EPP", "JBoss Enterprise Portal Platform", "default"); > > public final String NAME; > public final String DESCRIPTION; >@@ -45,6 +42,7 @@ public enum JBossProductType { > private static final String EWP_IMPLEMENTATION_TITLE = "JBoss [EWP]"; > private static final String SOA_IMPLEMENTATION_TITLE = "JBoss [SOA]"; > private static final String BRMS_IMPLEMENTATION_TITLE = "JBoss [BRMS]"; >+ private static final String EPP_IMPLEMENTATION_TITLE = "JBoss [EPP]"; > > JBossProductType(String name, String description, String defaultConfigName) { > this.NAME = name; >@@ -53,7 +51,8 @@ public enum JBossProductType { > } > > /** >- * Determines the product type (AS, EAP, EWP, or SOA) based on the Implementation-Title MANIFEST.MF attribute. >+ * Determines the product type (AS or EAP or a layered product like BRMS) based on the >+ * Implementation-Title MANIFEST.MF attribute. > * <p> > * Note that this method is <b>NOT</b> always correct about the actual version of the product, because > * certain version of certain products don't advertise the correct product/version in the manifest. >@@ -62,7 +61,7 @@ public enum JBossProductType { > * > * @param attributes the attributes from a manifest file (typically run.jar or jboss-j2ee.jar) > * >- * @return the product type (AS, EAP, EWP, or SOA) >+ * @return the product type (AS, EAP, EWP, SOA, BRMS, or EPP) > */ > public static JBossProductType determineJBossProductType(Attributes attributes) { > JBossProductType result = JBossProductType.AS; >@@ -77,7 +76,9 @@ public enum JBossProductType { > result = JBossProductType.SOA; > } else if (implementationTitle.equalsIgnoreCase(BRMS_IMPLEMENTATION_TITLE)) { > result = JBossProductType.BRMS; >- } >+ } else if (implementationTitle.equalsIgnoreCase(EPP_IMPLEMENTATION_TITLE)) { >+ result = JBossProductType.EPP; >+ } > } > return result; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 998968
: 789274