Re: [aspectwerkz-user] Re: How to point to WEB-INF/aop.xml with offline weaving?
Alexandru Popescu <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [quote Jing Xue::on 4/24/2005 9:37 PM] > Alexandru Popescu wrote: > >>Quoting from memory (but i think this is in our documentation too): >>- - META-INF/aop.xml works everywhere, and as a consequence >>- - WEB-INF/classes/META-INF/aop.xml >>- - WEB-INF/lib/myJar.jar/META-INF/aop.xml >> >> > Well but all the documentation and tutorials I have read all talk about > META-INF/aop.xml and WEB-INF/aop.xml. Are they all only applicable to > online weaving? > > Anyway, my experiment got more interesting than I thought. It appears > that, even if I use WEB-INF/aop.xml, as long as I have a WEB-INF/classes > directory, even empty, everything works fine. As soon as I remove > WEB-INF/classes, none of the weaving would have any effect. > > --Jing Xue > > I am not sure I understood what you're trying to achieve. If you try to use offline weaving you still need the aop.xml at runtime. So after compile step, you run the aspectwerkz.bat using -offiline mode, and at runtime you provide the aop.xml in either META-INF dir or throught the system property -Daspectwerkz.definition.file= - --:alex |.::the_mindstorm::.| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCbAToOCPjdDT2FEURAiUzAKCA11n+wog50qYhlyXDEVhBySJACACdFP51 YXAqGNjGSo9XsC+QwcIisZM= =IxKh -----END PGP SIGNATURE-----