Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 237739 Details for
Bug 422481
Add a new preference to consider the target runtime when deciding to check or not 'Add to EAR' by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch update with version update
webtools.javaee_352.patch (text/plain), 8.02 KB, created by
Julio C. Chavez
on 2013-11-26 16:38:02 EST
(
hide
)
Description:
Patch update with version update
Filename:
MIME Type:
Creator:
Julio C. Chavez
Created:
2013-11-26 16:38:02 EST
Size:
8.02 KB
patch
obsolete
>diff --git a/plugins/org.eclipse.jst.j2ee.web/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee.web/META-INF/MANIFEST.MF >index 5c6c3e8..74c62b4 100644 >--- a/plugins/org.eclipse.jst.j2ee.web/META-INF/MANIFEST.MF >+++ b/plugins/org.eclipse.jst.j2ee.web/META-INF/MANIFEST.MF >@@ -2,7 +2,7 @@ > Bundle-ManifestVersion: 2 > Bundle-Name: Web Plug-in > Bundle-SymbolicName: org.eclipse.jst.j2ee.web; singleton:=true >-Bundle-Version: 1.1.700.qualifier >+Bundle-Version: 1.1.701.qualifier > Bundle-Activator: org.eclipse.jst.j2ee.internal.web.plugin.WebPlugin > Bundle-Vendor: Eclipse.org > Bundle-Localization: plugin >diff --git a/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDataModelProvider.java b/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDataModelProvider.java >index b9a1205..e4764cd 100644 >--- a/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDataModelProvider.java >+++ b/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDataModelProvider.java >@@ -31,11 +31,13 @@ > import org.eclipse.jst.j2ee.project.facet.J2EEModuleFacetInstallDataModelProvider; > import org.eclipse.wst.common.componentcore.ComponentCore; > import org.eclipse.wst.common.componentcore.ModuleCoreNature; >+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties; > import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; > import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; > import org.eclipse.wst.common.frameworks.datamodel.IDataModel; > import org.eclipse.wst.common.frameworks.internal.plugin.WTPCommonPlugin; > import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; >+import org.eclipse.wst.common.project.facet.core.runtime.IRuntime; > import org.eclipse.wst.project.facet.ProductManager; > > import com.ibm.icu.text.UTF16; >@@ -106,9 +108,33 @@ > return Boolean.TRUE; > }else if (propertyName.equals(INSTALL_WEB_LIBRARY)){ > return J2EEComponentClasspathContainerUtils.getDefaultUseWebAppLibraries(); >+ } >+ else if (propertyName.equals(ADD_TO_EAR)) { >+ Object result = super.getDefaultProperty(propertyName); >+ if (result instanceof Boolean) { >+ return ((Boolean) result).booleanValue() && isEARDefaultForRuntime(); >+ } > } > return super.getDefaultProperty(propertyName); > } >+ >+ private boolean isEARDefaultForRuntime() { >+ boolean result = true; >+ IRuntime rt = (IRuntime) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME); >+ if (rt != null && rt.getName() != null) { >+ for(String excluded : >+ J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.ADD_TO_EAR_RUNTIME_EXCEPTIONS).split(",")) { //$NON-NLS-1$ >+ >+ if (rt.getName().equals(excluded)) { >+ >+ result = false; >+ break; >+ } >+ } >+ } >+ >+ return result; >+} > > @Override > public boolean propertySet(String propertyName, Object propertyValue) { >diff --git a/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF >index b483ca7..3e64fa5 100644 >--- a/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF >+++ b/plugins/org.eclipse.jst.j2ee/META-INF/MANIFEST.MF >@@ -2,7 +2,7 @@ > Bundle-ManifestVersion: 2 > Bundle-Name: %Bundle-Name.0 > Bundle-SymbolicName: org.eclipse.jst.j2ee; singleton:=true >-Bundle-Version: 1.1.701.qualifier >+Bundle-Version: 1.1.702.qualifier > Bundle-Activator: org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin > Bundle-Vendor: %Bundle-Vendor.0 > Bundle-Localization: plugin >diff --git a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/JavaEEPreferencesInitializer.java b/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/JavaEEPreferencesInitializer.java >index ccbd44d..06b3c3b 100644 >--- a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/JavaEEPreferencesInitializer.java >+++ b/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/JavaEEPreferencesInitializer.java >@@ -70,6 +70,11 @@ > * @since 2.0 > */ > static final String ADD_TO_EAR_BY_DEFAULT = IProductConstants.ADD_TO_EAR_BY_DEFAULT; >+ >+ /** >+ * @since 2.0 >+ */ >+ static final String ADD_TO_EAR_RUNTIME_EXCEPTIONS = IProductConstants.ADD_TO_EAR_RUNTIME_EXCEPTIONS; > /** > * @since 2.0 > */ >@@ -237,6 +242,7 @@ > node.put(Keys.EJB_CONTENT_FOLDER, ProductManager.getProperty(IProductConstants.EJB_CONTENT_FOLDER)); > node.put(Keys.JCA_CONTENT_FOLDER, ProductManager.getProperty(IProductConstants.JCA_CONTENT_FOLDER)); > node.put(Keys.ADD_TO_EAR_BY_DEFAULT, ProductManager.getProperty(IProductConstants.ADD_TO_EAR_BY_DEFAULT)); >+ node.put(Keys.ADD_TO_EAR_RUNTIME_EXCEPTIONS, ProductManager.getProperty(IProductConstants.ADD_TO_EAR_RUNTIME_EXCEPTIONS)); > // done in CommonFrameworksPref..Initializer > //node.put(Keys.OUTPUT_FOLDER, ProductManager.getProperty(IProductConstants.OUTPUT_FOLDER)); > >diff --git a/plugins/org.eclipse.wst.web/META-INF/MANIFEST.MF b/plugins/org.eclipse.wst.web/META-INF/MANIFEST.MF >index 982f367..764e283 100644 >--- a/plugins/org.eclipse.wst.web/META-INF/MANIFEST.MF >+++ b/plugins/org.eclipse.wst.web/META-INF/MANIFEST.MF >@@ -2,7 +2,7 @@ > Bundle-ManifestVersion: 2 > Bundle-Name: %Bundle-Name.0 > Bundle-SymbolicName: org.eclipse.wst.web; singleton:=true >-Bundle-Version: 1.1.700.qualifier >+Bundle-Version: 1.1.701.qualifier > Bundle-Activator: org.eclipse.wst.web.internal.WSTWebPlugin > Bundle-Vendor: %Bundle-Vendor.0 > Bundle-Localization: plugin >diff --git a/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/IProductConstants.java b/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/IProductConstants.java >index 3418475..a1dac21 100644 >--- a/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/IProductConstants.java >+++ b/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/IProductConstants.java >@@ -32,6 +32,7 @@ > public static final String JCA_CONTENT_FOLDER = "jcaContent"; //$NON-NLS-1$ > public static final String DEFAULT_SOURCE_FOLDER = "defaultSource"; //$NON-NLS-1$ > public static final String ADD_TO_EAR_BY_DEFAULT = "addToEarByDefault"; //$NON-NLS-1$ >+ public static final String ADD_TO_EAR_RUNTIME_EXCEPTIONS = "addToEARruntimeExceptions"; //$NON-NLS-1$ > public static final String OUTPUT_FOLDER = "outputFolder"; //$NON-NLS-1$ > public static final String USE_SINGLE_ROOT_STRUCTURE = "useSingleRootStructure"; //$NON-NLS-1$ > public static final String ID_PERSPECTIVE_HIERARCHY_VIEW = "idPerspectiveHierarchyView"; //$NON-NLS-1$ >diff --git a/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/ProductManager.java b/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/ProductManager.java >index 53583f5..9fdbfe9 100644 >--- a/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/ProductManager.java >+++ b/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/project/facet/ProductManager.java >@@ -34,6 +34,7 @@ > private static final String JCA_CONTENT_FOLDER = "connectorModule"; //$NON-NLS-1$ > private static final String DEFAULT_SOURCE_FOLDER = "src"; //$NON-NLS-1$ > private static final String ADD_TO_EAR_BY_DEFAULT = "false"; //$NON-NLS-1$ >+ private static final String ADD_TO_EAR_RUNTIME_EXCEPTIONS = ""; //$NON-NLS-1$ > private static final String OUTPUT_FOLDER = "build/classes"; //$NON-NLS-1$ > private static final String USE_SINGLE_ROOT_STRUCTURE = "false"; //$NON-NLS-1$ > private static final String VIEWER_SYNC_FOR_WEBSERVICES = "true"; //$NON-NLS-1$ >@@ -81,6 +82,8 @@ > return DEFAULT_SOURCE_FOLDER; > else if (key.equals(IProductConstants.ADD_TO_EAR_BY_DEFAULT)) > return ADD_TO_EAR_BY_DEFAULT; >+ else if (key.equals(IProductConstants.ADD_TO_EAR_RUNTIME_EXCEPTIONS)) >+ return ADD_TO_EAR_RUNTIME_EXCEPTIONS; > else if (key.equals(IProductConstants.USE_SINGLE_ROOT_STRUCTURE)) > return USE_SINGLE_ROOT_STRUCTURE; > else if (key.equals(IProductConstants.VIEWER_SYNC_FOR_WEBSERVICES))
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 422481
:
237692
|
237739
|
237820
|
237821
|
237823