I fixed it using svn keyword expansion in my pom. This seems to work
just fine for me and
I just discovered the release plugin so I guess I'm covered.
Wouter
On 2/21/06, Kees de Kooter <[EMAIL PROTECTED]> wrote:
> I am afraid there is no support for this in the scm plugin. You could
> solve it using an ant task though:
>
> <target name="find_revision">
>
> <property name="revision" value="HEAD"/>
> <property name="svn.root"
> value="svn://traffic01/var/svnroot/trafficits"/>
> <property name="log.dir" location="log"/>
> <property name="release.root" location="c:/var/projects/release"/>
>
> <!-- find out revision number of HEAD, need svn.exe installed on
> local machine -->
> <exec executable="svn" outputproperty="svnlog.out">
> <arg line="log ${svn.root} -r ${revision} -q"/>
> </exec>
>
> <echo>${svnlog.out}</echo>
>
> <!-- need ant-contrib.jar for this in lib dir of ant install -->
> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
>
> <propertyregex property="revision.number" input="${svnlog.out}"
> select="\1">
> <regexp pattern="r([0-9]*)"/>
> </propertyregex>
>
> <echo>Revision found: ${revision.number}</echo>
>
> </target>
>
>
>
> On 2/21/06, Wouter de Vaal <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I was wondering if there was a way to get the current subversion
> > revision number for a working project, so I can use it as a property
> > in my pom, e.g. ${svn.revision}. It would be nice if I could add it to
> > the manifest to track problems with previously release jars (yes I do
> > use version numbers, but I don't update it each time I commit my
> > code).
> >
> > Thanx,
> > Wouter
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Cheers,
> Kees de Kooter
> http://www.boplicity.nl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]