Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 247FD186FC for ; Wed, 11 Nov 2015 13:52:29 +0000 (UTC) Received: (qmail 89862 invoked by uid 500); 11 Nov 2015 13:52:27 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 89790 invoked by uid 500); 11 Nov 2015 13:52:27 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 89777 invoked by uid 99); 11 Nov 2015 13:52:27 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2015 13:52:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0E0E1180A49 for ; Wed, 11 Nov 2015 13:52:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.009 X-Spam-Level: *** X-Spam-Status: No, score=3.009 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.008, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com header.b=vh4Legta; dkim=pass (2048-bit key) header.d=wisc_edu.20150623.gappssmtp.com header.b=Hgfciuim Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rCrAOB11ruoo for ; Wed, 11 Nov 2015 13:52:15 +0000 (UTC) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id EC51E21277 for ; Wed, 11 Nov 2015 13:52:14 +0000 (UTC) Received: by ioc74 with SMTP id 74so33829685ioc.2 for ; Wed, 11 Nov 2015 05:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=88mmZo/F1uduDuDaQkPeCsMYKhEifBiV1DmIA9IDde8=; b=vh4Legta/xOSWbTObqfrsPARK2rkTIXEv9ChorODt3w2dq6Oxnhpr+7L/m7eZ1DQim 3R8sFF3Ar6sPFIrxsMEonB1zFSISvtF4VktdsSBirlEMEaIeKGsy8lQg9nPBhrI73hX9 S2fFCO/3ZDzadw809/5ayWkmCemisHWjA1RAHJ95Z5HxUDbHeBJXgGGtVccascZYofyg SsLSvzBi130PdOjgvyP262vXbj/0AK44f/cIXpcEJ0i9o6W5FX3PfNL7MzMKLerCJ9iy roFU9ozdlH0xdiCUI0VSGDsKKb7Dcw3IfXb96ukZk4Bk4y5FGGXv0pOS7SeC3mEQCqhK 01mQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wisc_edu.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=88mmZo/F1uduDuDaQkPeCsMYKhEifBiV1DmIA9IDde8=; b=HgfciuimAhWZsEcof1scj3TgDJgEXlagUxPYGchdahZaRb4Q7QLi5mlKAm8uwPyNFH 9SrQd6D/gZT81Iu/sLwVg/oD4LVFaZ0trgnHO6DP/gWRmltIP6GL+WdpqJ45bqxpTK1w Ht1RhH3L8uFEWApsEDg4JI2D/+GiwR+wLYhorVeOz/EFqdDJWbXUk+foU8BSQngE6R2X R8DOKc0tOAYSfa93ossCYZ/3uKcIwSQYQyz7bvAoOGWAioPZvrD2dxvmlRQJWzw+h9E8 716NCifQ/Gr3y+JkOfJieWJIvX7EVzcGqYW3D+TpyxLDXm5ulbh9aPfGKf0FawUDRFLN 8Aig== X-Received: by 10.107.158.10 with SMTP id h10mr9453508ioe.63.1447249927758; Wed, 11 Nov 2015 05:52:07 -0800 (PST) MIME-Version: 1.0 Sender: ctrueden.wisc@gmail.com Received: by 10.107.190.2 with HTTP; Wed, 11 Nov 2015 05:51:38 -0800 (PST) In-Reply-To: <1FBB66C88DE7D149817B11CE8B578FCB4AB6FBBD@FRGR3D1MX02.services.firstrand.net> References: <1FBB66C88DE7D149817B11CE8B578FCB4AB6FBBD@FRGR3D1MX02.services.firstrand.net> From: Curtis Rueden Date: Wed, 11 Nov 2015 07:51:38 -0600 X-Google-Sender-Auth: x3zzdxZT8hS3B4OO0YCitorhuNA Message-ID: Subject: Re: Build Number Maven Plugin branch naming To: Maven Users List Content-Type: multipart/alternative; boundary=001a11407968d879250524442137 --001a11407968d879250524442137 Content-Type: text/plain; charset=UTF-8 Hi Victor, > I would like to change the way $svnVersion is set for my branches. > That is, I would like to shorten it a bit Not sure if the buildnumber-maven-plugin has a direct way, but the build-helper-maven-plugin has a regex-property goal for manipulating properties. http://www.mojohaus.org/build-helper-maven-plugin/usage.html#Set_a_property_by_applying_a_regex_replacement_to_a_value Here is an example usage: https://github.com/scijava/pom-scijava/blob/pom-scijava-8.5.0/pom.xml#L1066-L1097 Regards, Curtis On Wed, Nov 11, 2015 at 1:53 AM, Neiman, Victor wrote: > Hi all, > > Working on a project that generates RPM's using rpm-maven-plugin, the > RPM's then have the build number appended to them using the > buildnumber-maven-plugin. > > Currently using SVN. I would like to change the way $svnVersion is set for > my branches. That is, I would like to shorten it a bit, currently my branch > is located at > http:///repos//branches/dev/ > > I compile the RPM and add the build number using $svnVersion to get the > following: > > -1.0-branches_dev_BuildModule_MainRPMs_Standalone_TerminalDriver.9057.noarch.rpm > > so > $svnVersion=branches_dev_BuildModule_MainRPMs_Standalone_TerminalDriver.9057 > > I understand that the reason for this is that the branch itself has the > path /branches/dev/ and the RPM sources are located at > /BuildModule/MainRPMs/Standalone/TerminalDriver. > > What I'd like to get to is truncating the branch name to something like > branches_dev, so the resulting RPM would be named > -1.0-branches_dev.9057.noarch.rpm > > So my question is whether there is a way I can manipulate $svnVersion > somehow to make it @svnVersion=branches_dev, which is a substring of the > original? > > Regards and thanks > Vic > To read FirstRand Bank's Disclaimer for this email click on the following > address or copy into your Internet browser: > https://www.fnb.co.za/disclaimer.html > > If you are unable to access the Disclaimer, send a blank e-mail to > firstrandbankdisclaimer@fnb.co.za and we will send you a copy of the > Disclaimer. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --001a11407968d879250524442137--