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 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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:17) 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="weaveinfo Join point 'method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  27. <line text="weaveinfo Join point 'method-execution(void Main.test2())' in Type 'Main' (Main.java:21) advised by before advice from 'Aspect2' (Aspect2.aj:16)"/>
  28. <line text="Aspect1.before_test1"/>
  29. <line text="Aspect2.before_test2"/>
  30. </stderr>
  31. </run>
  32. </ajc-test>
  33. <ajc-test dir="ltw"
  34. title="Ensure valid aop.xml file is generated"
  35. keywords="-outxml">
  36. <compile
  37. files="Main.java"
  38. outjar="main.jar"
  39. >
  40. </compile>
  41. <compile
  42. classpath="main.jar"
  43. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  44. outxmlfile="META-INF/aop.xml"
  45. >
  46. </compile>
  47. <run class="Main" ltw="">
  48. <stdout>
  49. <line text="Main.main"/>
  50. <line text="Main.test1"/>
  51. <line text="Main.test2"/>
  52. </stdout>
  53. <stderr>
  54. <line text="Aspect1.before_test1"/>
  55. <line text="Aspect2.before_test2"/>
  56. <line text="pakkage.Aspect3.before_test2"/>
  57. </stderr>
  58. </run>
  59. </ajc-test>
  60. <ajc-test dir="ltw"
  61. title="Ensure valid aop.xml is generated for -outjar"
  62. keywords="-outxml">
  63. <compile
  64. files="Main.java"
  65. outjar="main.jar"
  66. >
  67. </compile>
  68. <compile
  69. classpath="main.jar"
  70. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  71. outjar="aspects.jar"
  72. options="-outxml"
  73. >
  74. </compile>
  75. <run class="Main" ltw="">
  76. <stdout>
  77. <line text="Main.main"/>
  78. <line text="Main.test1"/>
  79. <line text="Main.test2"/>
  80. </stdout>
  81. <stderr>
  82. <line text="Aspect1.before_test1"/>
  83. <line text="Aspect2.before_test2"/>
  84. <line text="pakkage.Aspect3.before_test2"/>
  85. </stderr>
  86. </run>
  87. </ajc-test>
  88. <ajc-test dir="ltw"
  89. title="Ensure no weaving without visible aop.xml"
  90. keywords="reweavable">
  91. <compile
  92. files="TestMain.java, Main.java"
  93. >
  94. </compile>
  95. <run class="TestMain" ltw="">
  96. <stdout>
  97. <line text="Main.main"/>
  98. <line text="Main.test1"/>
  99. <line text="Main.test2"/>
  100. </stdout>
  101. <stderr>
  102. <line text="info AspectJ Weaver Version"/>
  103. <line text="info register classloader org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
  104. <line text="info no configuration found. Disabling weaver for class loader org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
  105. </stderr>
  106. </run>
  107. </ajc-test>
  108. <!-- type discarding tests, investigating call munging -->
  109. <ajc-test dir="ltw/callMunging" title="discarding woven types - 1">
  110. <compile files="A.java,B.java,T.java,Main.java" outjar="classes.jar"/>
  111. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-Xlint:ignore"/>
  112. <run class="Main" ltw="aop.xml">
  113. <stdout>
  114. <line text="into:main"/>
  115. <line text="A.method() running"/>
  116. <line text="advice running"/>
  117. <line text="T.m1() running"/>
  118. <line text="B.method() running"/>
  119. <line text="advice running"/>
  120. <line text="T.m2() running"/>
  121. <line text="leave:main"/>
  122. </stdout>
  123. </run>
  124. </ajc-test>
  125. <ajc-test dir="ltw/callMunging/case1" title="aggressive ltw - decp">
  126. <compile files="A.java,T.java,Main.java" outjar="classes.jar"/>
  127. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-Xlint:ignore"/>
  128. <run class="Main" ltw="aop.xml">
  129. <stdout>
  130. <line text="into:main"/>
  131. <line text="A.method() running"/>
  132. <line text="advice running"/>
  133. <line text="T.m1() running"/>
  134. <line text="leave:main"/>
  135. </stdout>
  136. </run>
  137. </ajc-test>
  138. <ajc-test dir="ltw/callMunging/case1" title="aggressive ltw - decp - deactivate">
  139. <compile files="A.java,T.java,Main.java" outjar="classes.jar"/>
  140. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-Xlint:ignore"/>
  141. <run class="Main" ltw="aop2.xml">
  142. <stdout>
  143. <line text="into:main"/>
  144. <line text="A.method() running"/>
  145. <line text="T.m1() running"/>
  146. <line text="leave:main"/>
  147. </stdout>
  148. </run>
  149. </ajc-test>
  150. <ajc-test dir="ltw/callMunging/case1" title="aggressive ltw - hierarchy">
  151. <compile files="T.java,HierMain.java" outjar="classes.jar"/>
  152. <compile files="A.java" outjar="sub.hiddenjar" classpath="classes.jar"/>
  153. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-Xlint:ignore"/>
  154. <run class="HierMain" ltw="aop.xml">
  155. <stdout>
  156. <line text="into:main"/>
  157. <line text="A.method() running"/>
  158. <line text="advice running"/>
  159. <line text="T.m1() running"/>
  160. <line text="leave:main"/>
  161. </stdout>
  162. </run>
  163. </ajc-test>
  164. <ajc-test dir="ltw/callMunging/case3" title="aggressive ltw - decp - 2">
  165. <compile files="A.java,T.java,S.java,Main.java" outjar="classes.jar"/>
  166. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-Xlint:ignore"/>
  167. <run class="Main" ltw="aop.xml">
  168. <stdout>
  169. <line text="into:main"/>
  170. <line text="A.method() running"/>
  171. <line text="advice running"/>
  172. <line text="T.m1() running"/>
  173. <line text="leave:main"/>
  174. </stdout>
  175. </run>
  176. </ajc-test>
  177. <ajc-test dir="ltw/callMunging/case2" title="aggressive ltw - deca">
  178. <compile files="A.java,T.java,Main.java,MarkerAnnotation.java" outjar="classes.jar" options="-1.5"/>
  179. <compile files="X.java" outjar="aspects.jar" classpath="classes.jar" options="-1.5 -Xlint:ignore"/>
  180. <run class="Main" ltw="aop.xml">
  181. <stdout>
  182. <line text="into:main"/>
  183. <line text="A.method() running"/>
  184. <line text="advice running"/>
  185. <line text="T.m1() running"/>
  186. <line text="leave:main"/>
  187. </stdout>
  188. </run>
  189. </ajc-test>
  190. <!-- end of discarding type tests -->
  191. <ajc-test dir="ltw"
  192. title="Define concrete sub-aspect using aop.xml"
  193. keywords="aop.xml">
  194. <compile
  195. files="Main.java"
  196. outjar="main.jar"
  197. >
  198. </compile>
  199. <compile
  200. classpath="main1.jar"
  201. files="AbstractSuperAspect.aj"
  202. outjar="aspect.jar"
  203. >
  204. </compile>
  205. <run class="Main" ltw="aop-defineaspect.xml">
  206. <stdout>
  207. <line text="Main.main"/>
  208. <line text="Main.test1"/>
  209. <line text="Main.test2"/>
  210. </stdout>
  211. <stderr>
  212. <line text="info AspectJ Weaver Version"/>
  213. <line text="info register classloader"/>
  214. <line text="info using"/>
  215. <line text="info generating class 'ConcreteAspect'"/>
  216. <line text="info weaving 'Main'"/>
  217. <line text="AbstractSuperAspect.before_test1"/>
  218. </stderr>
  219. </run>
  220. </ajc-test>
  221. <ajc-test dir="ltw"
  222. title="Use abstract aspect for ITD using aop.xml"
  223. keywords="abstract aspect, ITD">
  224. <compile
  225. files="TestITDMethod.java"
  226. >
  227. </compile>
  228. <compile
  229. files="AbstractAspect.aj"
  230. >
  231. <message kind="warning" text="this affected type is not exposed to the weaver: TestITDMethod"/>
  232. </compile>
  233. <run class="TestITDMethod" options="test" ltw="aop-abstractaspect.xml">
  234. <stdout>
  235. <line text="TestITDMethod.main"/>
  236. </stdout>
  237. <stderr>
  238. <line text="weaveinfo Type 'TestITDMethod' (TestITDMethod.java) has intertyped method from 'AbstractAspect' (AbstractAspect.aj:'void TestITDMethod.test()')"/>
  239. <line text="AbstractAspect_TestITDMethod.test"/>
  240. </stderr>
  241. </run>
  242. </ajc-test>
  243. <ajc-test dir="ltw"
  244. title="Ensure a subset of inherited aspects is used for weaving"
  245. keywords="aspects, include">
  246. <compile
  247. files="Main.java"
  248. outjar="main.jar"
  249. >
  250. </compile>
  251. <compile
  252. classpath="main.jar"
  253. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  254. outjar="aspects.jar"
  255. options="-outxml"
  256. >
  257. </compile>
  258. <run class="Main" ltw="aop-aspectsinclude.xml">
  259. <stdout>
  260. <line text="Main.main"/>
  261. <line text="Main.test1"/>
  262. <line text="Main.test2"/>
  263. </stdout>
  264. <stderr>
  265. <line text="pakkage.Aspect3.before_test2"/>
  266. </stderr>
  267. </run>
  268. </ajc-test>
  269. <ajc-test dir="ltw"
  270. title="Ensure weaver lint warning issued when an aspect is not used for weaving"
  271. keywords="aspects, include, lint">
  272. <compile
  273. files="Main.java"
  274. outjar="main.jar"
  275. >
  276. </compile>
  277. <compile
  278. classpath="main.jar"
  279. files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
  280. outjar="aspects.jar"
  281. options="-outxml"
  282. >
  283. </compile>
  284. <run class="Main" ltw="aop-aspectsincludewithlintwarning.xml">
  285. <stdout>
  286. <line text="Main.main"/>
  287. <line text="Main.test1"/>
  288. <line text="Main.test2"/>
  289. </stdout>
  290. <stderr>
  291. <line text="warning aspect Aspect1 exluded for class loader org.aspectj.weaver.loadtime.WeavingURLClassLoader [Xlint:aspectExcludedByConfiguration]"/>
  292. <line text="warning aspect Aspect2 exluded for class loader org.aspectj.weaver.loadtime.WeavingURLClassLoader [Xlint:aspectExcludedByConfiguration]"/>
  293. <line text="pakkage.Aspect3.before_test2"/>
  294. </stderr>
  295. </run>
  296. </ajc-test>
  297. <ajc-test dir="ltw"
  298. title="Empty Xlint.properties file"
  299. keywords="xlint, ltw">
  300. <compile
  301. files="Main.java"
  302. >
  303. </compile>
  304. <run class="Main" ltw="aop-xlintfile.xml" xlintfile="Xlint-empty.properties">
  305. <stderr>
  306. </stderr>
  307. </run>
  308. </ajc-test>
  309. <ajc-test dir="ltw"
  310. title="Set Xset properties enabled"
  311. keywords="xSet, ltw">
  312. <compile
  313. files="Main.java,Aspect1.aj"
  314. >
  315. </compile>
  316. <run class="Main" ltw="aop-xset-verbose.xml" xlintfile="Xlint-empty.properties">
  317. </run>
  318. </ajc-test>
  319. <ajc-test dir="ltw"
  320. title="Set Xset properties disabled"
  321. keywords="xSet, ltw">
  322. <compile
  323. files="Main.java,Aspect1.aj"
  324. >
  325. </compile>
  326. <run class="Main" ltw="aop-xset-verbose.xml" xlintfile="Xlint-empty.properties">
  327. </run>
  328. </ajc-test>
  329. <ajc-test dir="ltw"
  330. title="Warning with missing Xlint.properties file"
  331. keywords="xlint, ltw">
  332. <compile
  333. files="Main.java"
  334. >
  335. </compile>
  336. <run class="Main" ltw="aop-xlintfile.xml">
  337. <stderr>
  338. <line text="warning Cannot access resource for -Xlintfile:Xlint-empty.properties"/>
  339. </stderr>
  340. </run>
  341. </ajc-test>
  342. <ajc-test dir="ltw/hier" title="separate compilation with ltw: declare parents and call" keywords="ltw">
  343. <compile files="util/A.aj,util/T.aj"/>
  344. <compile files="child/Executor.aj,child/Advisor.aj,top/SimpleMain.aj">
  345. <message kind="warning" text="this affected type is not exposed to the weaver: util.A"/>
  346. </compile>
  347. <run class="top.SimpleMain" ltw="aop-single.xml">
  348. <stdout>
  349. <line text="T call"/>
  350. </stdout>
  351. <stderr>
  352. <line text="weaveinfo Join point 'method-call(void util.A.foo())' in Type 'child.Executor' (Executor.aj:18) advised by before advice from 'child.Advisor' (Advisor.aj:20)"/>
  353. <line text="weaveinfo Extending interface set for type 'util.A' (A.aj) to include 'util.T' (Advisor.aj)"/>
  354. <line text="weaveinfo Extending interface set for type 'child.Advisor' (Advisor.aj) to include 'util.T' (Advisor.aj)"/>
  355. </stderr>
  356. </run>
  357. </ajc-test>
  358. <ajc-test dir="ltw"
  359. title="Warning when advice doesn't match suppressed for LTW"
  360. keywords="xlint, ltw">
  361. <compile
  362. files="Main.java"
  363. >
  364. </compile>
  365. <compile
  366. files="Aspect3.aj"
  367. >
  368. </compile>
  369. <run class="Main" ltw="aop-nomatch.xml">
  370. <stderr>
  371. <line text="info AspectJ Weaver Version"/>
  372. <line text="info register classloader"/>
  373. <line text="info using"/>
  374. <line text="info register aspect Aspect3"/>
  375. <line text="info weaving 'Main'"/>
  376. </stderr>
  377. </run>
  378. </ajc-test>
  379. <ajc-test dir="ltw"
  380. title="Override suppressing of warning when advice doesn't match using -Xlintfile"
  381. keywords="xlint, ltw">
  382. <compile
  383. files="Main.java"
  384. >
  385. </compile>
  386. <compile
  387. files="Aspect3.aj"
  388. >
  389. </compile>
  390. <run class="Main" ltw="aop-nomatchxlintfile.xml" xlintfile="Xlint-nomatch.properties">
  391. <stderr>
  392. <line text="info AspectJ Weaver Version"/>
  393. <line text="info register classloader"/>
  394. <line text="info using"/>
  395. <line text="info register aspect Aspect3"/>
  396. <line text="info weaving 'Main'"/>
  397. <!-- will never come out for LTW, due to pipelining change pr146781 -->
  398. <!--line text="advice defined in Aspect3 has not been applied [Xlint:adviceDidNotMatch]"/-->
  399. </stderr>
  400. </run>
  401. </ajc-test>
  402. <ajc-test dir="ltw"
  403. title="Warning when advice doesn't match using -Xlint:default"
  404. keywords="xlint, ltw">
  405. <compile
  406. files="Main.java"
  407. >
  408. </compile>
  409. <compile
  410. files="Aspect3.aj"
  411. >
  412. </compile>
  413. <run class="Main" ltw="aop-nomatchxlint.xml">
  414. <stderr>
  415. <line text="info AspectJ Weaver Version"/>
  416. <line text="info register classloader"/>
  417. <line text="info using"/>
  418. <line text="info register aspect Aspect3"/>
  419. <line text="info weaving 'Main'"/>
  420. <!-- will never come out for LTW, due to pipelining change pr146781 -->
  421. <!--line text="advice defined in Aspect3 has not been applied [Xlint:adviceDidNotMatch]"/-->
  422. </stderr>
  423. </run>
  424. </ajc-test>
  425. <ajc-test dir="ltw"
  426. title="Override suppressing of warning when advice doesn't match using -Xlint:warning"
  427. keywords="xlint, ltw">
  428. <compile
  429. files="Main.java"
  430. >
  431. </compile>
  432. <compile
  433. files="Aspect3.aj"
  434. >
  435. </compile>
  436. <run class="Main" ltw="aop-nomatchxlint.xml">
  437. <stderr>
  438. <line text="info AspectJ Weaver Version"/>
  439. <line text="info register classloader"/>
  440. <line text="info using"/>
  441. <line text="info register aspect Aspect3"/>
  442. <line text="info weaving 'Main'"/>
  443. <!-- will never come out for LTW, due to pipelining change pr146781 -->
  444. <!--line text="advice defined in Aspect3 has not been applied [Xlint:adviceDidNotMatch]"/-->
  445. </stderr>
  446. </run>
  447. </ajc-test>
  448. <!-- based on "Ensure 1st aspect is rewoven when weaving 2nd aspect" -->
  449. <ajc-test dir="ltw"
  450. title="Nonstandard jar file extensions" pr="137235">
  451. <compile
  452. files="folder.jar/Main.java, folder.jar/Aspect1.aj"
  453. outjar="folder.jar/main1.zip"
  454. options="-showWeaveInfo"
  455. >
  456. <message kind="weave" text="method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  457. </compile>
  458. <compile
  459. classpath="$sandbox/folder.jar/main1.zip"
  460. files="Aspect2.aj"
  461. outjar="aspect2Jar"
  462. options="-showWeaveInfo"
  463. >
  464. </compile>
  465. <run class="Main" ltw="aop-ltwreweavable.xml" classpath="$sandbox/folder.jar/main1.zip,$sandbox/aspect2Jar">
  466. <stdout>
  467. <line text="Main.main"/>
  468. <line text="Main.test1"/>
  469. <line text="Main.test2"/>
  470. </stdout>
  471. <stderr>
  472. <line text="weaveinfo Join point 'method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  473. <line text="weaveinfo Join point 'method-execution(void Main.test2())' in Type 'Main' (Main.java:21) advised by before advice from 'Aspect2' (Aspect2.aj:16)"/>
  474. <line text="Aspect1.before_test1"/>
  475. <line text="Aspect2.before_test2"/>
  476. </stderr>
  477. </run>
  478. </ajc-test>
  479. <ajc-test dir="ltw"
  480. title="Odd zip on classpath" pr="137235">
  481. <compile
  482. files="folder.jar/Main.java, folder.jar/Aspect1.aj"
  483. outjar="folder.jar/main1.archive"
  484. options="-showWeaveInfo"
  485. >
  486. <message kind="weave" text="method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  487. </compile>
  488. <compile
  489. classpath="$sandbox/folder.jar/main1.archive"
  490. files="Aspect2.aj"
  491. outjar="aspect2Jar"
  492. options="-showWeaveInfo"
  493. >
  494. </compile>
  495. <run class="Main" ltw="aop-ltwreweavable.xml" classpath="$sandbox/folder.jar/main1.archive,$sandbox/aspect2Jar">
  496. <stdout>
  497. <line text="Main.main"/>
  498. <line text="Main.test1"/>
  499. <line text="Main.test2"/>
  500. </stdout>
  501. <stderr>
  502. <line text="weaveinfo Join point 'method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
  503. <line text="weaveinfo Join point 'method-execution(void Main.test2())' in Type 'Main' (Main.java:21) advised by before advice from 'Aspect2' (Aspect2.aj:16)"/>
  504. <line text="Aspect1.before_test1"/>
  505. <line text="Aspect2.before_test2"/>
  506. </stderr>
  507. </run>
  508. </ajc-test>
  509. <ajc-test dir="ltw" title="JDK14 LTW with XML" keywords="ltw">
  510. <compile files="HelloWorld.java" options="-outjar hello.jar"/>
  511. <compile files="ExceptionHandler.aj" options="-outxml -outjar handler.jar"/>
  512. <ant file="ant.xml" target="JDK14 LTW with XML" verbose="true">
  513. <stdout>
  514. <line text="TraceFactory.instance="/>
  515. <line text="Hello World!"/>
  516. </stdout>
  517. </ant>
  518. </ajc-test>
  519. <ajc-test dir="ltw" title="JDK14 LTW with ASPECTPATH" keywords="ltw">
  520. <compile files="HelloWorld.java" options="-outjar hello.jar"/>
  521. <compile files="ExceptionHandler.aj" options="-outjar handler.jar"/>
  522. <ant file="ant.xml" target="JDK14 LTW with ASPECTPATH" verbose="true">
  523. <stdout>
  524. <line text="TraceFactory.instance="/>
  525. <line text="Hello World!"/>
  526. </stdout>
  527. </ant>
  528. </ajc-test>
  529. <ajc-test dir="ltw" title="TestServer with HelloWorld" keywords="ltw,server">
  530. <compile files="HelloWorld.java" options="-outjar hello.jar"/>
  531. <compile files="ExceptionHandler.aj" options="-outxml -outjar handler.jar"/>
  532. <ant file="ant-server.xml" target="TestServer with HelloWorld" verbose="true">
  533. <stdout>
  534. <line text="Starting ..."/>
  535. <line text="Running HelloWorld"/>
  536. <line text="Hello World!"/>
  537. <line text="Stopping ..."/>
  538. </stdout>
  539. </ant>
  540. </ajc-test>
  541. <ajc-test dir="ltw" title="TestServer with Parent and Child" keywords="ltw,server">
  542. <compile files="Parent.java" options="-outjar parent.jar"/>
  543. <compile files="Child.java" options="-classpath parent.jar -outjar child.jar"/>
  544. <ant file="ant-server.xml" target="TestServer with Parent and Child" verbose="true">
  545. <stdout>
  546. <line text="Starting ..."/>
  547. <line text="Running Child"/>
  548. <line text="Parent"/>
  549. <line text="Child"/>
  550. <line text="Stopping ..."/>
  551. </stdout>
  552. </ant>
  553. </ajc-test>