[
https://issues.jboss.org/browse/JBIDE-19356?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-19356:
-------------------------------------
So, as a more correct code for you guys, I'd try this:
{code}
IFacetedProjectWorkingCopy dm = getFacetedProjectWorkingCopy();
IPreset preset = dm.getSelectedPreset();
if(preset!=null) {
oldPreset = preset;
}
dm.setTargetedRuntimes(Collections.<IRuntime> emptySet());
boolean dontUseRuntimeConfig = false;
if (runtime != null) {
Set<IProjectFacetVersion> presetFacets =
preset.getProjectFacets();
// TODO, iterate the facets and check there
{code}
The reason I suggest this is because for eap6.1x it is "partially compliant" so
the runtime *will* support web 3.1, but the *default* facet for that runtime is web 3.0 as
per the plugin.xml in as.core. So I suggest you check the preset for which web facet is
present.
Wrong Dynamic web module version & config for EAP 6.1+
------------------------------------------------------
Key: JBIDE-19356
URL:
https://issues.jboss.org/browse/JBIDE-19356
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi, server
Affects Versions: 4.3.0.Alpha1
Reporter: Rastislav Wagner
Assignee: Rob Stryker
Priority: Critical
Fix For: 4.3.0.Alpha2
EAP 6.1+ supports JEE6 but CDI Project Wizard sets config & dynamic web module
version for EE7
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)