aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw
diff options
context:
space:
mode:
authormwebster <mwebster>2006-07-31 15:28:31 +0000
committermwebster <mwebster>2006-07-31 15:28:31 +0000
commit079fb81e534c13dbc1b1f4cd01f4f70cffd45b77 (patch)
treedcdb1f41f4ecd9c880853e23c8d9a49d95f8f5a9 /tests/ltw
parenta3f3ae406d01081897b68c1344b4f23cbabaeed8 (diff)
downloadaspectj-079fb81e534c13dbc1b1f4cd01f4f70cffd45b77.tar.gz
aspectj-079fb81e534c13dbc1b1f4cd01f4f70cffd45b77.zip
Bug 150487 "Tracing and Logging Framework" (remove tracing from ClassPathManager to prevent recursion in JDK 1.4 LTW)
Diffstat (limited to 'tests/ltw')
-rw-r--r--tests/ltw/HelloWorld.java7
-rw-r--r--tests/ltw/ant.xml26
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/ltw/HelloWorld.java b/tests/ltw/HelloWorld.java
new file mode 100644
index 000000000..8e5a1fdd7
--- /dev/null
+++ b/tests/ltw/HelloWorld.java
@@ -0,0 +1,7 @@
+public class HelloWorld {
+
+ public static void main (String[] args) throws Exception {
+ System.out.println("Hello World!");
+ }
+
+} \ No newline at end of file
diff --git a/tests/ltw/ant.xml b/tests/ltw/ant.xml
new file mode 100644
index 000000000..6f7971d96
--- /dev/null
+++ b/tests/ltw/ant.xml
@@ -0,0 +1,26 @@
+<!-- ajc-ant script, not to be used from Ant commant line - see AntSpec -->
+<project name="ltw">
+
+ <!-- using this we can debug the forked VM -->
+ <property
+ name="jdwp"
+ value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
+
+ <target name="JDK14 LTW">
+ <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <classpath refid="aj.path"/>
+ <classpath>
+ <pathelement path="${aj.sandbox}/hello.jar"/>
+ </classpath>
+ <jvmarg value="-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
+ <!--
+-->
+ <jvmarg value="-Daj.class.path=${aj.sandbox}/hello.jar"/>
+ <jvmarg value="-Dorg.aspectj.tracing.debug=true"/>
+ <!-- use META-INF/aop.xml style -->
+<!-- <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>-->
+<!-- <jvmarg line="${jdwp}"/>-->
+ </java>
+ </target>
+
+</project>