[arquillian-issues] [JBoss JIRA] Created: (ARQ-161) Weld Extension doesn't fire ProcessAnnotatedType when importDirecyory is used.

alberto Gori (JIRA) jira-events at lists.jboss.org
Wed Jun 2 08:08:51 EDT 2010


Weld Extension doesn't fire ProcessAnnotatedType when importDirecyory is used.
------------------------------------------------------------------------------

                 Key: ARQ-161
                 URL: https://jira.jboss.org/browse/ARQ-161
             Project: Arquillian
          Issue Type: Bug
    Affects Versions: 1.0.0.Alpha2
            Reporter: alberto Gori


The deployment code is this:

		Archive<?> archive = ShrinkWrap.create("test.jar", JavaArchive.class);
		archive.as(ExplodedImporter.class).importDirectory("target/classes");
		archive.as(ExplodedImporter.class).importDirectory("target/test-classes");

If I pack classes using this technique, then my CDI Extension doesn't fire the ProcessAnnotatedType for classes that are not my test class.
On IRC aslak commented the following:

"it's due to a 'hack' in the WeldEmbedded deployer, it assumes it will get a Archive with ClassAssets.. but when you do import, it wil be FileAssets, so they are ignored"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list