You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2013/07/20 01:18:31 UTC

svn commit: r1505062 - /pivot/branches/2.0.x/build.xml

Author: rwhitcomb
Date: Fri Jul 19 23:18:30 2013
New Revision: 1505062

URL: http://svn.apache.org/r1505062
Log:
Using <antversion> condition to check for Ant at least version 1.7.0
(instead of using string tests for each supported version).

This is a little problematic since the <antversion> condition was
introduced in Ant 1.7 (i.e., version 1.6 will fail in a rather ugly
fashion).  But, everyone should be running recent versions anyway,
since 1.7 was released in December 2006.

Modified:
    pivot/branches/2.0.x/build.xml

Modified: pivot/branches/2.0.x/build.xml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/build.xml?rev=1505062&r1=1505061&r2=1505062&view=diff
==============================================================================
--- pivot/branches/2.0.x/build.xml (original)
+++ pivot/branches/2.0.x/build.xml Fri Jul 19 23:18:30 2013
@@ -89,11 +89,7 @@ limitations under the License.
     <fail>
         <condition>
             <not>
-                <or>
-                    <contains string="${ant.version}" substring="1.7"/>
-                    <contains string="${ant.version}" substring="1.8"/>
-                    <contains string="${ant.version}" substring="1.9"/>
-                </or>
+                <antversion atleast="1.7.0"/>
             </not>
         </condition>
         <![CDATA[