Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 74721 invoked from network); 16 Jun 2006 12:30:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 12:30:32 -0000 Received: (qmail 62830 invoked by uid 500); 16 Jun 2006 12:30:28 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 62785 invoked by uid 500); 16 Jun 2006 12:30:28 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 62730 invoked by uid 99); 16 Jun 2006 12:30:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 05:30:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.193.206.9] (HELO webmail9.amenworld.com) (62.193.206.9) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Jun 2006 05:30:26 -0700 Received: (qmail 18740 invoked from network); 16 Jun 2006 12:30:09 -0000 Received: from 74.189.97-84.rev.gaoland.net (HELO ?127.0.0.1?) (84.97.189.74) by 0 with SMTP; 16 Jun 2006 12:30:09 -0000 Message-ID: <4492A448.1080807@venisse.net> Date: Fri, 16 Jun 2006 14:30:00 +0200 From: Emmanuel Venisse User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: continuum-users@maven.apache.org Subject: Re: Build Version Numbering References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N only builds in succes have a continuum build number. Adam Leggett a �crit : > Thanks Emmanuel, > > I want to display the build version in the built application. The app is a java gui installer. > My M2 build binds antrun to package phase which invokes an ant buildfile. The ant build reads the version number property and includes it in the application. > > Im not looking to define a continuum build number. Im just wondering if all builds (success and failure) could be numbered. > > Thanks > > Adam > > -----Original Message----- > From: Emmanuel Venisse [mailto:emmanuel@venisse.net] > Sent: Friday, June 16, 2006 12:40 PM > To: continuum-users@maven.apache.org > Subject: Re: Build Version Numbering > > > it isn't possible actually to define your own build number in continuum. The build number generated > by continuum is an internal number. > > what is the interest of your version.properties file? Do you use it in your code? > > You can tag your code after each success build. > > Emmanuel > > Adam Leggett a �crit : >> Hi all, >> >> I have added a versioning profile to a Maven 2 pom as follows >> >> >> >> version-increment >> >> >> >> >> maven-antrun-plugin >> >> >> >> increment version >> >> generate-sources >> >> >> >> >> >> > classname="ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask" >> classpath="maven.plugin.dependency.classpath"> >> >> >> > packageName="uk.co.upco.engage" >> targetDir="${project.build.directory}" >> buildNumFile="${basedir}/version.properties" >> buildNumProperty="buildnum"> >> >> >> >> >> >> >> run >> >> >> >> >> >> >> maven-scm-plugin >> >> >> >> package >> >> >> version.properties >> >> incremented build version >> >> >> >> checkin >> >> >> >> >> >> >> >> >> >> This allows me to display the build version of my app when its >> packaged. I'd like to tie this to my continuum builds somehow. If only >> continuum runs the profile, it does the increment and checks in the >> version number. I'd like to match the version number to continuums own >> build number, but I cant figure how to do this. >> >> Continuum seems to >> a) not list failed builds with an id and >> b) log the builds with a different id e.g. my m2 project build#5 is >> logged as 135.log.txt >> >> Does anyone have an idea of how to best approach this issue of >> versioning builds with continuum? >> >> TIA >> >> Adam >> >> Adam Leggett >> Senior Consultant >> UPCO >> Direct Line: 0113 20 10 631 >> Fax: 0113 20 10 666 >> >> >> >> >> >> ====================================================================== >> ===== >> The contents of this email are intended for the named addresses and may >> contain confidential and/or privileged material. If received in error, >> please contact UPCO head office on +44(0)113 201 0600 and then delete >> the entire mail from your system. Unauthorised review, distribution, >> disclosure or other use of information could constitute a breach of >> confidence. Your co-operation in this matter is greatly appreciated. >> >> Every effort has been taken to ensure that this email and any >> attachments are virus-free. However, UPCO does not make any warranty >> to this effect, and is not liable for any damage done by an infected >> email message or attachment. UPCO recommends that all emails and >> attachments are checked before opening. >> >> All views or opinions expressed in this electronic message and its >> attachements are those of the sender and do not necessarily reflect >> the views and opinions of The Ultimate People Company Ltd. >> =========================================================================== >> >> >> >> >> > > > >