ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: Java9's javac doesn't support -source 1.4 anymore
Date Fri, 13 Feb 2015 05:56:34 GMT
Repository: ant
Updated Branches:
  refs/heads/master e0f845f8c -> 17ebe7ad3


Java9's javac doesn't support -source 1.4 anymore


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/17ebe7ad
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/17ebe7ad
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/17ebe7ad

Branch: refs/heads/master
Commit: 17ebe7ad3419969cbe48e3ee7e8c5f0ea6b87e44
Parents: e0f845f
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Fri Feb 13 06:55:10 2015 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Fri Feb 13 06:55:10 2015 +0100

----------------------------------------------------------------------
 src/etc/testcases/types/assertions.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/17ebe7ad/src/etc/testcases/types/assertions.xml
----------------------------------------------------------------------
diff --git a/src/etc/testcases/types/assertions.xml b/src/etc/testcases/types/assertions.xml
index 2af2311..dee7ce7 100644
--- a/src/etc/testcases/types/assertions.xml
+++ b/src/etc/testcases/types/assertions.xml
@@ -21,10 +21,15 @@
   <import file="../buildfiletest-base.xml"/>
 
   <target name="setUp">
+    <available property="jdk1.6+" classname="java.net.CookieStore"/>
+    <condition property="source" value="6">
+      <isset property="jdk1.6+"/>
+    </condition>
+    <property name="source" value="1.4"/>
     <mkdir dir="${output}"/>
     <javac srcdir="${src.dir}"
            includes="*.java"
-           source="1.4"
+           source="${source}"
            debug="true"
            destdir="${output}"
         />


Mime
View raw message