Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06CFD105DA for ; Sat, 23 Nov 2013 06:12:06 +0000 (UTC) Received: (qmail 72946 invoked by uid 500); 23 Nov 2013 06:12:04 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 72865 invoked by uid 500); 23 Nov 2013 06:11:57 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 72857 invoked by uid 99); 23 Nov 2013 06:11:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 06:11:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [178.254.33.213] (HELO samaflost.de) (178.254.33.213) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 06:11:49 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 30E3A588BABD for ; Sat, 23 Nov 2013 07:11:27 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rK-thL4KuOac for ; Sat, 23 Nov 2013 07:11:26 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 02C6C588BABC; Sat, 23 Nov 2013 07:11:25 +0100 (CET) From: Stefan Bodewig To: dev@ant.apache.org Subject: Re: Short version of the ant version string? References: Date: Sat, 23 Nov 2013 07:11:25 +0100 In-Reply-To: (Andre-John Mas's message of "Fri, 22 Nov 2013 21:18:42 -0500") Message-ID: <8738mnlkaa.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org On 2013-11-23, Andre-John Mas wrote: > As part of my work on issue 55489, "Allow specifying of alternative user > agent for the 'get' task", I need to be able to include the Ant version > string in the user-agent (Apache Ant/0.0), but using the following: > getProject().getProperty(MagicNames.ANT_VERSION) > or > Main.getVersion() > both returning a long version string of them form: > "Apache Ant(TM) version 1.9.3alpha compiled on November 22 2013" > From what I can see there is no method to get a 'short' version, unless > I am not looking in the right place. You may want to look at the Task which strips the alpha designators and all that. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org