If you are compiling java sources and aspectj sources together, you can just 
aspectj to do it all:

ajc -1.8 -outjar mywoven.jar Foo.aj Bar.java

If wanting to apply your aspects to an already built jar files of classes:

ajc -1.8 -inpath myExistingJar.jar Foo.aj -outjar myWovenJar.jar

and then use myWovenJar.jar instead of myExistingJar.jar.

Andy


On Oct 12, 2014, at 11:07 PM, mufc_fan <rajeshkumarit8...@gmail.com> wrote:

> Hi...I have written an aspect.aj file for my java class and I got the entry
> points of the functions involved in the class. Now, I have to create a jar
> file by combining .aj file and java file. can any one tell me how to achieve
> this..
> 
> 
> 
> --
> View this message in context: 
> http://aspectj.2085585.n4.nabble.com/Compiling-aspectj-file-tp4651590.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to