ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justyna Horwat <Justyna.Hor...@eng.sun.com>
Subject [PATCH] properly set version property
Date Thu, 27 Apr 2000 23:00:53 GMT
Properly set the "ant.java.version" property.


Index: Project.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v
retrieving revision 1.18
diff -u -r1.18 Project.java
--- Project.java        2000/04/12 16:20:53     1.18
+++ Project.java        2000/04/27 22:51:15
@@ -288,11 +288,11 @@
             javaVersion = JAVA_1_2;
             Class.forName("java.lang.StrictMath");
             javaVersion = JAVA_1_3;
-            setProperty("ant.java.version", javaVersion);
         } catch (ClassNotFoundException cnfe) {
             // swallow as we've hit the max class version that
             // we have
         }
+        setProperty("ant.java.version", javaVersion);
 
         // sanity check
         if (javaVersion == JAVA_1_0) {


Mime
View raw message