[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: SVNANT: Getting revision number on checkout?

From: <kevin.slater_at_pfpc.com>
Date: 2005-11-14 20:34:40 CET

Ken,

that's exactly what we came up with over here. Looks like there's lots of
good stuff in the status task. Thanks for the response.

...Kevin

Kevin Slater
PFPC ESS
412 762-1642

Monday, November 14, 2005 1:06 PM
To: <users@subclipse.tigris.org>
cc:
From: "Ken Nakamura" <knakamur@tripwire.com>
Subject: RE: RE: SVNANT: Getting revision number on checkout?

Hello,

I've been using the SvnAnt 'status' task to get the current revision
number into a property:

<svn>
<status path="/your/work/dir" revisionProperty="revision">
</svn>

<echo>revision is ${revision}.</echo>

As an aside, I've been including it as a manifest property of jars, just
so's I know which code they were built from, easy-like.

Hope this helps...

-k

-----Original Message-----
From: Gary McWilliams [mailto:gary_mcwilliams@lagan.com]
Sent: Monday, November 14, 2005 7:24 AM
To: users@subclipse.tigris.org
Subject: RE: SVNANT: Getting revision number on checkout?

Don't think there is, there's been some previous requests for this on
the list.

If you have a command-line client installed, you can use this:
<target name="getbuildid_svn" if="getsvnbuildid">
  <!-- bump minor build number -->
  <exec executable="${svn.bin}/svnversion" spawn="false"
outputproperty="build.id">
<arg value="."/>
  </exec>
  <echo message="svnver=${build.id}"/>
 </target>

-----Original Message-----
From: kevin.slater@pfpc.com [mailto:kevin.slater@pfpc.com]
Sent: 14 November 2005 14:04
To: users@subclipse.tigris.org
Subject: SVNANT: Getting revision number on checkout?

Is it possible to retrieve the revision number of a checkout using one
of
the SVNANT tasks? We'd like to include this information in a build.txt
file
before we publish a new binary (jar,war,ear) after a successful build.

...Kevin

Kevin Slater
PFPC ESS
412 762-1642

The contents of this email are the property of the sender. If it was not
addressed to you, you have no legal right to read it. If you think you
received it in error, please notify the sender. Do not forward or copy
without permission of the sender.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorised. If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or
any
action or omission taken by you in reliance on it, is prohibited and may

be unlawful. Please immediately contact the sender if you have received

this message in error.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org

The contents of this email are the property of the sender. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender.
Received on Tue Nov 15 06:34:40 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.