How do I extract the version and path from an SVN working copy into a nant variable? -


i creating new build process dotnet project held in subversion.

for each dll/exe compile (via nant) include 2 additional attibutes in dlls built.

i understand workings of 'asminfo' nant task. need retrieving information hope embed in binaries.

the build happen full working copy (checked out build process itself.) , therefore have .svn directory available.

the attributes want add repositoryversion , repositorypath. (i understand these not names information goes in svn)

in order need extract repositoryversion , repositorypath represented working copy folder buildfile sits within.

how extract information given .svn folder 2 nant variables?

firstly, can use "svn info --xml >out.xml" svn information text file. can use nant xml-peek value out of file variable.

<xmlpeek file="out.xml" xpath="/info/entry/url" property="svn.url" /> 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -