Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-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 69A1AC9AF for ; Fri, 1 Jun 2012 17:44:23 +0000 (UTC) Received: (qmail 91581 invoked by uid 500); 1 Jun 2012 17:44:23 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 91509 invoked by uid 500); 1 Jun 2012 17:44:23 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 91501 invoked by uid 500); 1 Jun 2012 17:44:23 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 91498 invoked by uid 99); 1 Jun 2012 17:44:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 17:44:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E8EDD141663 for ; Fri, 1 Jun 2012 17:44:22 +0000 (UTC) Date: Fri, 1 Jun 2012 17:44:22 +0000 (UTC) From: "Jonathan Coveney (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <67052537.27493.1338572662957.JavaMail.jiratomcat@issues-vm> In-Reply-To: <48776072.27457.1338572183694.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (PIG-2735) Add a pig.version.prefix property in build.xml to easily override with a build number MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-2735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287559#comment-13287559 ] Jonathan Coveney commented on PIG-2735: --------------------------------------- ALTHOUGH, if you're feeling munificent, it may be worth going the extra step and updating how we parse out version in Main.java {code} version = attr.getValue("Implementation-Version"); svnRevision = attr.getValue("Svn-Revision"); buildTime = attr.getValue("Build-TimeStamp"); String[] split = version.split("-")[0].split("\\."); majorVersion=split[0]; minorVersion=split[1]; patchVersion=split[2]; {code} You could clean this up to make patchVersion pick up the pig.version.suffix, and so on. This may involve writing that in a clearer way to the manifest. > Add a pig.version.prefix property in build.xml to easily override with a build number > ------------------------------------------------------------------------------------- > > Key: PIG-2735 > URL: https://issues.apache.org/jira/browse/PIG-2735 > Project: Pig > Issue Type: Improvement > Reporter: Julien Le Dem > Assignee: Julien Le Dem > Attachments: PIG-2735.patch > > > This can be used as follows in Jenkins: > ant -Dpig.version.suffix=+${BUILD_NUMBER} jar -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira