123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <!-- Incremental compilation Tests -->
-
- <ajc-test dir="incrementalju/initialTests/classAdded"
- title="expect class added in initial incremental tests"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="main.Main"/>
- <!--
- <inc-compile tag="20" >
- <dir-changes added="main.Target"/>
- </inc-compile>
- <run class="main.Main" skipTester="true"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/classRemoved"
- title="expect class removed in initial incremental tests"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="main.Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="main.Target"/>
- </inc-compile>
- <run class="main.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/classUpdated"
- title="expect class updated in initial incremental tests"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="main.Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes updated="main.Main"/>
- </inc-compile>
- <run class="main.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/sourceAdded"
- title="add file with class"
- comment="only expecting pickup if sourceroots"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="main.Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes added="main.Target"/>
- </inc-compile>
- <inc-compile tag="30">
- <dir-changes updated="main.Main"/>
- </inc-compile>
- <run class="main.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/sourceDeleted"
- title="delete source file before incremental compile"
- comment="build config should permit file deletions for incremental (sourceroots)"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="delete.Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="delete.DeleteMe"/>
- <message kind="error" line="6" file="delete/Target.java"/>
- </inc-compile>
- <inc-compile tag="30"/>
- <run class="delete.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/defaultPackage"
- title="do everything in default package (sourceroots)"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes added="Target"/>
- </inc-compile>
- <run class="Target" skipTester="true"/>
- <inc-compile tag="30">
- <dir-changes updated="Main"/>
- </inc-compile>
- <run class="Main" skipTester="true"/>
- <inc-compile tag="40">
- <message kind="error" line="6" file="Main.java"/>
- </inc-compile>
- <inc-compile tag="50"/>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/defaultPackage"
- keywords="incremental-test"
- title="change sources in default package">
- <compile
- staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="Main"/>
- <!--
- <inc-compile tag="20"/>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/interPackage"
- keywords="incremental-test"
- title="change source">
- <compile
- staging="true"
- options="-incremental"
- sourceroots="src"/>
- <run class="app.Main"/>
- <!--
- <inc-compile tag="20"/>
- <run class="app.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/stringliteral"
- keywords="incremental-test"
- title="incrementally change only string literal, still expect advice">
- <compile staging="true" options="-incremental"
- sourceroots="src"/>
- <run class="packageOne.Main"
- options="in packageOne.Main.main(..),before main packageOne.Main"/>
- <!--
- <inc-compile tag="20">
- <dir-changes updated="packageOne.Main"/>
- </inc-compile>
- <run class="packageOne.Main"
- options="in longer packageOne.Main.main(..),
- before main packageOne.Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/aspectSourceAdded"
- title="add aspect source file and check world is rewoven"
- keywords="incremental-test" >
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <!--
- <inc-compile tag="20">
- <dir-changes added="Detour"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/initialTests/classWAroundClosureRemoved"
- title="make sure additional classes generated during weave are deleted with src class file"
- keywords="incremental-test">
- <compile staging="true"
- options="-incremental"
- sourceroots="src"/>
- <!--
- <inc-compile tag="20" >
- <dir-changes removed="AdviceOnIntroduced$AjcClosure1"/>
- </inc-compile>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/full-rebuild"
- pr="59895"
- title="incremental with aspect-driven full rebuild">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental">
- <message kind="error" line="3" file="Aspect.java"/>
- </compile>
- <!--
- <inc-compile tag="20">
- <message kind="warning" line="3" file="Main.java"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/resourceTests/resourceAdded"
- pr="54622"
- title="incremental with addition of resource to inpath directory">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="indir">
- </compile>
- <!--
- <inc-compile tag="20">
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/resourceTests/resourceAdded"
- pr="54622"
- title="incremental with addition of resource to inpath jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes added="AResourceFile.txt"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/resourceTests/resourceRemoved"
- pr="54622"
- title="incremental with removal of resource from inpath jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="AResourceFile.txt"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/injarTests/classAdded"
- pr="54621"
- title="incremental with addition of class to inpath jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes added="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/injarTests/classRemoved"
- pr="54621"
- title="incremental with removal of class from inpath jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/injarTests/classAdded"
- pr="54621"
- title="incremental with addition of class to injar jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental,-injars,MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes added="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/injarTests/classRemoved"
- pr="54621"
- title="incremental with removal of class from injar jar">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental,-injars,MyJar.jar"
- inpath="MyJar.jar">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
-
- <ajc-test dir="incrementalju/inpathDirTests/classAdded"
- pr="54621"
- title="incremental with addition of class to inpath dir">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="indir">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes added="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
-
- <ajc-test dir="incrementalju/inpathDirTests/classRemoved"
- pr="54621"
- title="incremental with removal of class from inpath dir">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="indir">
- </compile>
- <!--
- <inc-compile tag="20">
- <dir-changes removed="Hello2"/>
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
-
- <ajc-test dir="incrementalju/inpathDirTests/classUpdated"
- pr="54621"
- title="incremental with update of class in inpath dir">
- <compile
- staging="true"
- sourceroots="src"
- options="-incremental"
- inpath="indir">
- </compile>
- <!--
- <inc-compile tag="20">
- </inc-compile>
- <run class="Main"/>
- -->
- </ajc-test>
|