ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mindspin311 <connoc.minds...@gmail.com>
Subject extracting revision number using ant-contrib regexp
Date Fri, 18 Apr 2008 16:02:22 GMT

I'm using ant-contrib's propertyregex task to try to extract a revision
number from the repository without making any changes to a sandbox, so svn
up is no good...

I'm using this for the regexp attribute to parse the output of svn info:

regexp="Path: ([^\.]*)\n                                                                 
                                          
     URL: ([^\.]*)\n                                                                     
                                          
     Repository Root: ([^\.]*)\n                                                         
                                          
     Repository UUID: ([^\.]*)\n                                                         
                                          
     Revision: ([^\.]*)\n                                                                
                                          
     Node Kind: ([^\.]*)\n                                                               
                                          
     Last Changed Author: ([^\.]*)\n                                                     
                                          
     Last Changed Rev: ([^\.]*)\n                                                        
                                          
     Last Changed Date: ([^\.]*)\n"

now just doing select="\5" should get the revision number but all I get
returned is "${rev}" the name of the  property I am storing it in, not the
value.

Is my regexp wrong?
-- 
View this message in context: http://www.nabble.com/extracting-revision-number-using-ant-contrib-regexp-tp16763539p16763539.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message