fork="true"
vmargs="-DPASS=true,-Dname=value"/>
</ajc-test>
+ <ajc-test dir="harness/aspectpath"
+ title="pass aspectpath LTW aspect works in one compile">
+ <compile files="A.java,Main.java"/>
+ <run class="Main"/>
+ </ajc-test>
+
+ <ajc-test dir="harness/aspectpath"
+ keywords="expect-fail"
+ title="fail aspectpath LTW failure case">
+ <compile files="Main.java"/>
+ <run class="Main"/>
+ </ajc-test>
+
+ <!-- uncomment after weaveinfo messages
+ (which cause false negatives) are suppressed
+ <ajc-test dir="harness/aspectpath"
+ title="pass aspectpath LTW">
+ <compile files="A.java" outjar="out.jar"/>
+ <compile files="Main.java"/>
+ <run class="Main" aspectpath="out.jar"/>
+ </ajc-test>
+ -->
</suite>
--- /dev/null
+
+aspect A {
+ before() : execution(void main(String[])) {
+ System.setProperty("A.before", "true");
+ }
+}
\ No newline at end of file
--- /dev/null
+
+public class Main {
+ public static void main(String[] args) {
+ if (!Boolean.getBoolean("A.before")) {
+ throw new Error("property A.before not set by aspect A.java");
+ }
+ }
+}
\ No newline at end of file