--- /dev/null
+public class Application {\r
+ public static void main(String[] args) {\r
+ sayHelloTo("world");\r
+ }\r
+\r
+ public static void sayHelloTo(String subject) {\r
+ System.out.println("Hello " + subject + "!");\r
+ }\r
+}\r
--- /dev/null
+public aspect MyAspect {\r
+ before() : execution(* Application.*(..)) {\r
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);\r
+ }\r
+}\r
--- /dev/null
+public aspect MyAspect2 {\r
+ before() : execution(* *(..)) {\r
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);\r
+ }\r
+}\r
--- /dev/null
+public aspect MyAspect3 {\r
+ before() : execution(* *(..)) {\r
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);\r
+ }\r
+}\r
--- /dev/null
+echo "ow1"
+ajc -1.8 -sourceroots OverWeave_1/src -outjar ow1.jar -showWeaveInfo
+echo "ow2"
+ajc -1.8 -sourceroots OverWeave_2/src -outjar ow2.jar -showWeaveInfo
+echo "ow4 build"
+ajc -1.8 -sourceroots OverWeave_4/src -outjar ow4.jar -showWeaveInfo
+echo "ow3"
+ajc -1.8 -d out -inpath ow1.jar -aspectpath ow2.jar -showWeaveInfo -sourceroots OverWeave_3/src -outjar ow3.jar
+
+java -classpath out:/Users/aclement/installs/aspectj192/lib/aspectjrt.jar:ow2.jar Application
--- /dev/null
+ajc -1.8 -sourceroots OverWeave_1/src -outjar ow1.jar
+ajc -1.8 -sourceroots OverWeave_2/src -outjar ow2.jar
+ajc -1.8 -Xset:overWeaving=true -d out -inpath ow1.jar -aspectpath ow2.jar -sourceroots OverWeave_3/src
+java -classpath out:/Users/aclement/installs/aspectj192/lib/aspectjrt.jar:ow2.jar Application