I recently I followed this great guide to integrate the subversion revision into exe/dll files generated from my c++/c# visual studio projects. Now I can easily right-click on an exe-file to find which revision was used to build the binary (see image below). I love this feature.
Is this possible to do the same in flash/flex when building air/stand-alone applications? I would like to tag both exe file and dlls.
(source: zachburlingame.com)
Update with solution:
Although the ANT-based solutions provided here aren't as smooth as the one where the svn info is burnt into .exe/.dll files (in my opinion), it has solved my problem and is now implemented in our productions. My setup is based both on Kevin's and frankhermes's answeres but uses SubMCRev.exe instead of svn.exe or jar files.
In our implementation we dump the svn revision to the logfile at startup. The output from the SVN target below looks like this:
Built with SVN Revision: 1.0.0.1181 (local modifications found)
SVN target:
<target name="SVN Revision">
<exec executable="subWCRev.exe" outputproperty="revision">
<arg value="${basedir}\\.." />
<redirector>
<outputfilterchain>
<linecontainsregexp>
<regexp pattern='^([Last]|[Local])' />
</linecontainsregexp>
<tokenfilter>
<replaceregex pattern='[\D]+([\d]+)' replace="Built with SVN Revision: 1.0.0.\1" />
<replaceregex pattern='Local modifications found' replace=" (local modifications found)" />
</tokenfilter>
<striplinebreaks />
</outputfilterchain>
</redirector>
</exec>
</target>
Compile target:
<target name="compile" depends="init, SVN Revision">
<mxmlc file="..." output="...">
<define name="compile::REVISION" value="'${revision}'" />
....
</mxmlc>
</target>