Let me broaden my earlier question. My goal is to embed subversion versioning information into, say, an HTML file at build time. Right now I am using a call to the command-line client, xmlpeek, and replacetokens to do that, but is there an easier way to embed version information?
The project is a .net web application, if that helps. Here's the target that I'm using currently using -- it does everything except actually replace the tokens under .84. I'll try it out .85 today, and as far as I can tell it should work. But we are on .84 here, and won't be able to go to .85 yet. <target name="getVersion"> <property name="svn.home" value="..\..\Extras\tools\Subversion-1.2.0" /> <property name="code.trunk" value="http://trac.docusignhq.com/svn/trunk" /> <property name="svn.revision" value="not_available"/> <property name="svn.date" value="not_available"/> <exec program="${svn.home}\bin\svn.exe" commandline="log ${code.trunk} -r HEAD --xml" output="_revision.xml" failonerror="false"/> <xmlpeek file="_revision.xml" xpath="/log/logentry/@revision" property="svn.revision" failonerror="false"/> <xmlpeek file="_revision.xml" xpath="/log/logentry/date" property="svn.date" failonerror="false"/> <copy file="Version.cs.TEMPLATE" tofile="Version.cs" overwrite="true"> <filterchain> <replacetokens> <token key="URL" value="${code.trunk}" /> <token key="REV" value="${svn.revision}" /> <token key="DATE" value="${svn.date}" /> </replacetokens> </filterchain> </copy> </target> ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users