Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 90958 invoked from network); 25 Nov 2008 17:56:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 17:56:05 -0000 Received: (qmail 37061 invoked by uid 500); 25 Nov 2008 17:56:15 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 37037 invoked by uid 500); 25 Nov 2008 17:56:15 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 37028 invoked by uid 99); 25 Nov 2008 17:56:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 09:56:15 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 17:54:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2F1C1234C28D for ; Tue, 25 Nov 2008 09:55:44 -0800 (PST) Message-ID: <1496118220.1227635744188.JavaMail.jira@brutus> Date: Tue, 25 Nov 2008 09:55:44 -0800 (PST) From: "Mitch Gitman (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-978) buildnumber Ant task ignoring prefix attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org buildnumber Ant task ignoring prefix attribute ---------------------------------------------- Key: IVY-978 URL: https://issues.apache.org/jira/browse/IVY-978 Project: Ivy Issue Type: Bug Components: Ant Affects Versions: 2.0-RC2 Environment: JDK 1.6.0_07 on Windows Vista Reporter: Mitch Gitman I'm setting the prefix attribute on the buildnumber Ant task: But when I go to manually output the properties that are set, I see: ivy-buildnumber: [echo] ivy:buildnumber output: [echo] ivy.revision=1.1 [echo] repo.revision=${repo.revision} You see that the default ivy.revision property gets set; the repo.revision property does not. Here's what the buildnumber documentation has to say about the prefix attribute: "the prefix to use for the property names set (will be prefix.revision, prefix.new.revision, ...)" Addendum: There's another, possibly related issue with the buildnumber task. My understanding is that the ivy.revision property is supposed to behave as a variable. As long as the user hasn't manually set it at any point, an Ant task can set it to one value, and then another Ant task can come along and set it to another value. I've run into a situation where I might run a task like ivy:info and then subsequently run ivy:buildnumber. According to info, which reads the ivy.xml, the revision is, say 1.1.200. According to buildnumber, which scans the repository, the revision SHOULD BE working@machinename. (Set aside the fact that the ivy.xml and repository are themselves inconsistent; I'm trying to catch and deal with the situation where they are.) The buildnumber invocation shows revision as 1.1.200 rather than working@machinename. In other words, it fails to find the main thing it's supposed to be finding. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.