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.

tracing.xml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- Tracing Tests -->
  3. <suite>
  4. <ajc-test dir="tracing" title="Tracing" keywords="tracing">
  5. <compile
  6. files="TracingTest.java"
  7. />
  8. <ant file="ant.xml" target="Tracing" verbose="true">
  9. <stdout>
  10. <line text="? TracingTest.main() trace="/>
  11. </stdout>
  12. </ant>
  13. </ajc-test>
  14. <ajc-test dir="tracing" title="Default tracing" keywords="tracing">
  15. <compile
  16. files="DefaultTracingTest.java"
  17. />
  18. <ant file="ant.xml" target="Default tracing" verbose="true">
  19. <stdout>
  20. <line text="? DefaultTracingTest.main() trace=org.aspectj.weaver.tools.DefaultTrace"/>
  21. </stdout>
  22. </ant>
  23. </ajc-test>
  24. <ajc-test dir="tracing" title="Trace messages" keywords="tracing">
  25. <compile
  26. files="HelloWorld.java"
  27. />
  28. <compile
  29. files="IncludedAspect.aj, ExcludedAspect.aj"
  30. />
  31. <ant file="ant.xml" target="Trace messages" verbose="true">
  32. <stdout>
  33. <line text="Hello World!"/>
  34. </stdout>
  35. <!--
  36. Always get info messages even without -verbose because output determined
  37. by tracing infrastructure.
  38. Duplicate warning and error messages: first through trace then message
  39. writer
  40. -->
  41. <stderr>
  42. <line text="info AspectJ Weaver Version"/>
  43. <line text="info register classloader"/>
  44. <line text="info using configuration"/>
  45. <line text="info register aspect IncludedAspect"/>
  46. <line text="warning aspect ExcludedAspect exluded"/>
  47. <line text="warning aspect ExcludedAspect exluded"/>
  48. <line text="info define aspect IncludedMissingAspect"/>
  49. <line text="error Cannot find parent aspect"/>
  50. <line text="error Cannot find parent aspect"/>
  51. <line text="error Concrete-aspect 'IncludedMissingAspect' could not be registered"/>
  52. <line text="error Concrete-aspect 'IncludedMissingAspect' could not be registered"/>
  53. <line text="warning failure(s) registering aspects. Disabling weaver for class loader"/>
  54. <line text="warning failure(s) registering aspects. Disabling weaver for class loader"/>
  55. </stderr>
  56. </ant>
  57. </ajc-test>
  58. <ajc-test dir="tracing" title="Trace everything" keywords="tracing">
  59. <compile
  60. files="HelloWorld.java"
  61. />
  62. <compile files="Aspect.aj" options="-outxml"/>
  63. <ant file="ant.xml" target="Trace everything" verbose="true">
  64. <stdout>
  65. <line text="Hello World!"/>
  66. </stdout>
  67. </ant>
  68. </ajc-test>
  69. <ajc-test dir="tracing" title="JDK 1.4 tracing" keywords="tracing">
  70. <compile
  71. files="HelloWorld.java"
  72. />
  73. <compile files="Aspect.aj" options="-outxml"/>
  74. <ant file="ant.xml" target="JDK 1.4 tracing" verbose="true">
  75. <stdout>
  76. <line text="Hello World!"/>
  77. </stdout>
  78. </ant>
  79. </ajc-test>
  80. <ajc-test dir="tracing" title="Tracing file System Property" keywords="tracing">
  81. <compile
  82. files="HelloWorld.java"
  83. />
  84. <compile files="Aspect.aj" options="-outxml"/>
  85. <ant file="ant.xml" target="Tracing file System Property" verbose="true">
  86. <stdout>
  87. <line text="Hello World!"/>
  88. </stdout>
  89. </ant>
  90. </ajc-test>
  91. </suite>