From dev-return-62535-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Thu Dec 23 07:01:21 2004 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 71746 invoked from network); 23 Dec 2004 07:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Dec 2004 07:01:20 -0000 Received: (qmail 84824 invoked by uid 500); 23 Dec 2004 07:01:19 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 84542 invoked by uid 500); 23 Dec 2004 07:01:18 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 84529 invoked by uid 99); 23 Dec 2004 07:01:18 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Dec 2004 23:01:15 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id iBN71COX011680 for ; Thu, 23 Dec 2004 08:01:12 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id iBN71CCo011678; Thu, 23 Dec 2004 08:01:12 +0100 Date: Thu, 23 Dec 2004 08:01:12 +0100 Message-Id: <200412230701.iBN71CCo011678@ajax.apache.org> From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 32804] - check version of Ant X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32804 ------- Additional Comments From jan@materne.de 2004-12-23 08:01 ------- Not the "cleanest" way, but I wrote two *def´s for handling with that: " + neededInt); verbose("Actual: " + actual + " --> " + actualInt); check = false; if (actualInt >= neededInt) check = true; if (!check) { java.lang.System.out.println(" -- abbruch --"); fail = project.createTask("fail"); fail.setMessage("Needed Ant-Version (" + needed + ") not available. Was: " + actual); fail.perform(); } // convert the version string to int value for easier comparison function getInt(string) { if (string.equals("1.1")) return 11; if (string.equals("1.2")) return 12; if (string.equals("1.3")) return 13; if (string.equals("1.4")) return 14; if (string.equals("1.4.1")) return 14.1; if (string.equals("1.5")) return 15; if (string.equals("1.5.1")) return 15.1; if (string.equals("1.5.2")) return 15.2; if (string.equals("1.5.3")) return 15.3; if (string.equals("1.5.4")) return 15.4; if (string.equals("1.5alpha")) return 15.880; if (string.equals("1.6beta1")) return 15.991; if (string.equals("1.6beta2")) return 15.992; if (string.equals("1.6beta3")) return 15.993; if (string.equals("1.6")) return 16; if (string.equals("1.6.0") ) return 16; if (string.equals("1.6.1") ) return 16.1; if (string.equals("1.6.2") ) return 16.2; if (string.equals("1.6.3") ) return 16.3; if (string.equals("1.7alpha")) return 16.880; if (string.equals("1.7beta")) return 16.990; if (string.equals("1.7")) return 17; if (string.equals("1.7.0")) return 17; if (string.equals("1.7.1")) return 17.1; if (string.equals("1.7.2")) return 17.2; return 0; } // log-message function verbose(msg) { project.log("[needAnt] " + msg, project.MSG_VERBOSE); } ]]> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org