[forge-dev] Control Weld classpath scanning during Arquillian unit tests?

Dan Allen dan.j.allen at gmail.com
Mon Nov 21 19:41:36 EST 2011


Keep in mind, ShrinkWrap also has a filter when adding packages or
directories recursively to an archive.

http://docs.jboss.org/shrinkwrap/1.0.0-cr-1/org/jboss/shrinkwrap/api/Filters.html

Here's an example of the usage:

https://github.com/arquillian/arquillian-core/blob/master/testng/container/src/main/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppender.java

-Dan

On Sat, Nov 19, 2011 at 04:01, Richard Kennard <
richard at kennardconsulting.com> wrote:

> Oh sweet, yeah @Veto worked. Thanks!
>
> Regards,
>
> Richard.
>
> On 18/11/2011 7:45 PM, Lincoln Baxter, III wrote:
> > Hmmm. Is it the scanning you need to prevent, or will the @Veto or
> @Requires annotations suffice?
> >
> > ~Lincoln
> >
> > PS. Haven't had a chance to sit down and work on your issues yet, really
> sorry if this is holding you up. I just haven't had a chance to breathe
> this week!
> >
> > On Wed, Nov 16, 2011 at 11:34 PM, Richard Kennard <
> richard at kennardconsulting.com <mailto:richard at kennardconsulting.com>>
> wrote:
> >
> >     Hi guys,
> >
> >     I've hit a problem related to an interaction of Arquillian, Weld and
> Metawidget. It could probably be fixed in any one of those, and I will
> endaveour to
> >     fix it in Metawidget in the future, but for now I need a workaround.
> >
> >     Basically, I need to exclude
> 'org.jboss.forge.scaffold.faces.metawidget' from the Weld scanning during
> Arquillian unit testing. Where should I do that? I
> >     tried modifying
> /forge/scaffold-faces/src/main/resources/META-INF/beans.xml but I think
> that's the beans.xml that gets built into the app that Forge
> >     generates, *not* the beans.xml that controls the Arquillian unit
> testing?
> >
> >     Regards,
> >
> >     Richard.
> >     _______________________________________________
> >     forge-dev mailing list
> >     forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
> >     https://lists.jboss.org/mailman/listinfo/forge-dev
> >
> >
> >
> >
> > --
> > Lincoln Baxter, III
> > http://ocpsoft.com
> > http://scrumshark.com
> > "Keep it Simple"
> >
> >
> > _______________________________________________
> > forge-dev mailing list
> > forge-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/forge-dev
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>



-- 
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://www.google.com/profiles/dan.j.allen#about
http://mojavelinux.com
http://mojavelinux.com/seaminaction
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20111121/3797e3c7/attachment.html 


More information about the forge-dev mailing list