Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] RE: Can we rename aop.xml file in META-INF in AspectJ?

Thanks a lot Ron.
It worked perfectly. Thanks for your help.



Ron Bodkin wrote:
> 
> Yes you can use the system property
> org.aspectj.weaver.loadtime.configuration to change the path of the
> load-time weaving configuration files read, e.g., -D
> org.aspectj.weaver.loadtime.configuration=META-INF/myaop.xml;META-INF/myothe
> raop.xml
> 
> -----Original Message-----
> From: aspectj-dev-bounces@xxxxxxxxxxx
> [mailto:aspectj-dev-bounces@xxxxxxxxxxx] On Behalf Of sandesh g
> Sent: Monday, August 13, 2007 2:30 AM
> To: aspectj-dev@xxxxxxxxxxx
> Subject: [aspectj-dev] Can we rename aop.xml file in META-INF in AspectJ?
> 
> 
> Hi,
> 
> Can we rename aop.xml file to some custom name say myaop.xml?
> If I do it using -outxmlfile META-INF/myaop.xml option in ajc command, it
> creates the myaop.xml file but load time weaving does not happen as it
> does
> not get default ..\META-INF\aop.xml file.
> So is there any way to specify our own custom aop file name to ajc?
> eg something like this:
> call ajc -d ..\build\classes -classpath
> %ASPECTJ_HOME%\lib\aspectjrt.jar;..\build\classes -sourceroots
> ..\src\aspects -outxmlfile META-INF\myaop.xml
> 
> java -javaagent:%ASPECTJ_HOME%\lib\aspectjweaver.jar -cp
> ..\build\classes;%ASPECTJ_HOME%\lib\aspectjrt.jar;%ASPECTJ_HOME%\lib\aspectj
> weaver.jar
> com.perf.Worker
> 
> 
> Pls somebody help on this.
> 
> Thanks,
> sandesh
> -- 
> View this message in context:
> http://www.nabble.com/Can-we-rename-aop.xml-file-in-META-INF-in-AspectJ--tf4
> 260099.html#a12123290
> 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/Can-we-rename-aop.xml-file-in-META-INF-in-AspectJ--tf4260099.html#a12139537
Sent from the AspectJ - dev mailing list archive at Nabble.com.



Back to the top