You could use svnant. These are ant tasks to acces svn
repository.

http://subclipse.tigris.org/svnant.html
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=1731&expandFolder=1731&folderID=0

Yan.


--- Kees de Kooter <[EMAIL PROTECTED]> a écrit :

> 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]
> 
> 



        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to