]> source.dussan.org Git - aspectj.git/commitdiff
prevents funny behaviour on JDK1.6
authoraclement <aclement>
Fri, 8 Aug 2008 17:29:45 +0000 (17:29 +0000)
committeraclement <aclement>
Fri, 8 Aug 2008 17:29:45 +0000 (17:29 +0000)
tests/java5/ataspectj/ajc-ant.xml

index 99697cc56c6a1419b3d9243055c6ccd0f483d5c6..4f2e9f36cbbe84742c38996b6545fef42321af2d 100644 (file)
@@ -10,7 +10,7 @@
 
     <target name="compile:javac">
         <!-- compile only javac compilable stuff, exclude the one that needs other dependencies -->
-        <javac destdir="${aj.sandbox}" classpathref="aj.path"
+        <javac target="1.5" destdir="${aj.sandbox}" classpathref="aj.path"
             srcdir="${basedir}"
             includes="ataspectj/*"
             excludes="ataspectj/UnweavableTest.java"
@@ -75,7 +75,7 @@
 
     <target name="ltw.Aspect2MainTest">
         <!-- javac Aspect2 -->
-        <javac destdir="${aj.sandbox}" classpathref="aj.path"
+        <javac target="1.5" destdir="${aj.sandbox}" classpathref="aj.path"
             srcdir="${basedir}"
             includes="ataspectj/ltwreweavable/Aspect2.java"
             debug="true">
@@ -93,7 +93,7 @@
     </target>
 
     <target name="ltwlog.LTWLog">
-        <javac destdir="${aj.sandbox}" classpathref="aj.path"
+        <javac target="1.5" destdir="${aj.sandbox}" classpathref="aj.path"
             srcdir="${basedir}"
             includes="ataspectj/ltwlog/*"
             debug="true">
     </target>
 
     <target name="ltw.Unweavable">
-        <javac destdir="${aj.sandbox}"
+        <javac target="1.5"  destdir="${aj.sandbox}"
             srcdir="${basedir}"
             includes="ataspectj/UnweavableTest.java, ataspectj/TestHelper.java"
             debug="true">
 
     <target name="ltw.Decp2">
         <!-- javac compile the 2nd aspect -->
-        <javac destdir="${aj.sandbox}"
+        <javac target="1.5"  destdir="${aj.sandbox}"
             srcdir="${basedir}"
             includes="ataspectj/DeclareParentsImplementsReweavableTestAspect.java"
             debug="true">