You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ltw-tests.xml 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!-- Load-time weaving tests -->
  2. <ajc-test dir="ltw"
  3. title="Ensure 1st aspect is rewoven when weaving 2nd aspect"
  4. keywords="reweavable">
  5. <compile
  6. files="Main.java, Aspect1.aj"
  7. outjar="main1.jar"
  8. options="-showWeaveInfo"
  9. >
  10. <message kind="weave" text="method-execution(void Main.test1())' in Type 'Main' (Main.java:15) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  11. </compile>
  12. <compile
  13. classpath="main1.jar"
  14. files="Aspect2.aj"
  15. outjar="aspect2.jar"
  16. options="-showWeaveInfo"
  17. >
  18. </compile>
  19. <run class="Main" ltw="aop-ltwreweavable.xml">
  20. <stdout>
  21. <line text="Main.main"/>
  22. <line text="Main.test1"/>
  23. <line text="Main.test2"/>
  24. </stdout>
  25. <stderr>
  26. <line text="Aspect1.before_test1"/>
  27. <line text="Aspect2.before_test2"/>
  28. </stderr>
  29. </run>
  30. </ajc-test>
  31. <ajc-test dir="ltw"
  32. title="Ensure valid aop.xml file is generated"
  33. keywords="-outxml">
  34. <compile
  35. files="Main.java"
  36. outjar="main.jar"
  37. >
  38. </compile>
  39. <compile
  40. classpath="main.jar"
  41. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  42. outxmlfile="META-INF/aop.xml"
  43. >
  44. </compile>
  45. <run class="Main" ltw="">
  46. <stdout>
  47. <line text="Main.main"/>
  48. <line text="Main.test1"/>
  49. <line text="Main.test2"/>
  50. </stdout>
  51. <stderr>
  52. <line text="Aspect1.before_test1"/>
  53. <line text="Aspect2.before_test2"/>
  54. <line text="pakkage.Aspect3.before_test2"/>
  55. </stderr>
  56. </run>
  57. </ajc-test>
  58. <ajc-test dir="ltw"
  59. title="Ensure valid aop.xml is generated for -outjar"
  60. keywords="-outxml">
  61. <compile
  62. files="Main.java"
  63. outjar="main.jar"
  64. >
  65. </compile>
  66. <compile
  67. classpath="main.jar"
  68. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  69. outjar="aspects.jar"
  70. options="-outxml"
  71. >
  72. </compile>
  73. <run class="Main" ltw="">
  74. <stdout>
  75. <line text="Main.main"/>
  76. <line text="Main.test1"/>
  77. <line text="Main.test2"/>
  78. </stdout>
  79. <stderr>
  80. <line text="Aspect1.before_test1"/>
  81. <line text="Aspect2.before_test2"/>
  82. <line text="pakkage.Aspect3.before_test2"/>
  83. </stderr>
  84. </run>
  85. </ajc-test>