gatein/gatein-portal — pull request #716 by jpkrohling (2013-12-05 17:20:12+00:00)
Title: GTNPORTAL-3318 - Added EAP 6.2 profile

Added a profile for EAP 6.2. This required a few changes in the code, which should be completely backwards compatible.

Note that the artifact jboss-as-subsystem-test is now a POM artifact, instead of a JAR (as it was previously). The replacement (for our case) is jboss-as-subsystem-test-framework. So, the new eap620 profile overrides a new property, that holds the name of the artifact to use. For the existing profiles, it will fall back to the old name.

The change in CdiContextExtensionProcessor is due to changes in Weld. The constant WeldAttachments.PORTABLE_EXTENSIONS look like this in the version of Weld that we are currently using:

public static final AttachmentKey>> PORTABLE_EXTENSIONS = AttachmentKey.createList(Metadata.class);

So, the usage of the constant was replaced by a simple use of the value of the constant.