[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-dev] Using aspectj configuration file (aop.xml)
|
Thanks Ron, Your solution worked..
Regards,
Sandesh
Ron Bodkin wrote:
>
> Try this version:
> <include within="com.savvion.sbm.bizlogic.server..* && !
> com.savvion.sbm.bizlogic.server.svo.*"/>
> <include within="com.savvion.sbm.bizlogic.server.svo.SVOFactory"/>
>
> Excludes override includes, so you need to sculpt your includes to only
> pick
> out the bits you want.
>
> I think/hope AspectJ 1.5.4 will support AND instead of && but in
> past it hasn't (I filed a patch to fix that issue)
>
> -----Original Message-----
> From: aspectj-dev-bounces@xxxxxxxxxxx
> [mailto:aspectj-dev-bounces@xxxxxxxxxxx] On Behalf Of sandesh g
> Sent: Friday, November 16, 2007 6:03 AM
> To: aspectj-dev@xxxxxxxxxxx
> Subject: [aspectj-dev] Using aspectj configuration file (aop.xml)
>
>
> Hi,
>
> I want to achieve following testcase:
> Include server package & subpackages; exclude svo subpackage but
> include SVOFactory class in svo package for loadtime weaving.
>
> Part of my aop.xml file is as below.
>
> <weaver>
> <!-- Only weave types within the "server" package & subpackages;
> exclude svo package but include SVOFactory class. -->
> <include within="com.savvion.sbm.bizlogic.server..*"/>
> <include within="com.savvion.sbm.bizlogic.server.svo.SVOFactory"/>
> <exclude within="com.savvion.sbm.bizlogic.server.svo.*"/>
>
> </weaver>
>
> And dir structure is
> com.savvion.sbm.bizlogic.server
> com.savvion.sbm.bizlogic.server.svo
> com.savvion.sbm.bizlogic.server.ejb
> com.savvion.sbm.bizlogic.server.dao
>
> I am able to get the classes woven in server package & subpackage and
> classes in svo package are excluded which is as expected. But SVOFactory
> class is not getting woven.
> Is there any other way of doing it?
> Where can get more information on 'include/exclude within' tags, there
> priorities etc?
>
> Thanks,
> Sandesh
> --
> View this message in context:
> http://www.nabble.com/Using-aspectj-configuration-file-%28aop.xml%29-tf48213
> 90.html#a13793542
> Sent from the AspectJ - dev mailing list archive at Nabble.com.
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>
--
View this message in context: http://www.nabble.com/Using-aspectj-configuration-file-%28aop.xml%29-tf4821390.html#a13830339
Sent from the AspectJ - dev mailing list archive at Nabble.com.