]> source.dussan.org Git - aspectj.git/commitdiff
Annotation Matching - test code
authoraclement <aclement>
Tue, 7 Dec 2004 09:41:57 +0000 (09:41 +0000)
committeraclement <aclement>
Tue, 7 Dec 2004 09:41:57 +0000 (09:41 +0000)
weaver/testdata/AnnotatedClass.java [new file with mode: 0644]
weaver/testdata/SimpleAnnotation.java [new file with mode: 0644]
weaver/testdata/build-15.xml [new file with mode: 0644]
weaver/testdata/testcode.jar [new file with mode: 0644]

diff --git a/weaver/testdata/AnnotatedClass.java b/weaver/testdata/AnnotatedClass.java
new file mode 100644 (file)
index 0000000..0c9429b
--- /dev/null
@@ -0,0 +1,10 @@
+@SimpleAnnotation(id=2)
+public class AnnotatedClass {
+
+  @SimpleAnnotation(id=3)
+  public void m1() { }
+
+  @SimpleAnnotation(id=4)
+  int i;
+}
+
diff --git a/weaver/testdata/SimpleAnnotation.java b/weaver/testdata/SimpleAnnotation.java
new file mode 100644 (file)
index 0000000..5b43037
--- /dev/null
@@ -0,0 +1,7 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SimpleAnnotation {
+  int id();
+  String fruit() default "bananas";
+}
diff --git a/weaver/testdata/build-15.xml b/weaver/testdata/build-15.xml
new file mode 100644 (file)
index 0000000..d38a770
--- /dev/null
@@ -0,0 +1,11 @@
+<project name="Java 5 compilation of test source" default="default" basedir=".">
+
+    <target name="default" >
+       <delete dir="output" failonerror="false"/>
+       <mkdir dir="output"/>
+       <javac destdir="output" debug="on" srcdir="." includes="*.java"/>
+       <zip file="testcode.jar" basedir="output" includes="**/*"/>
+       <delete dir="output"/>
+    </target>
+
+</project>
diff --git a/weaver/testdata/testcode.jar b/weaver/testdata/testcode.jar
new file mode 100644 (file)
index 0000000..45e0d8e
Binary files /dev/null and b/weaver/testdata/testcode.jar differ