|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Easy way to access SVN revision in code?
For the automated builds of the C++ WPILib libraries we use sliksvn (a command line svn tool) and a .vbs script that executes an svn command and gets the version number. It uses it to name the installer based on the svn version number.
Brad |
|
#2
|
||||
|
||||
|
Re: Easy way to access SVN revision in code?
Quote:
Do you know if there is an easy way to do this with Java's build system? (ANT) |
|
#3
|
|||
|
|||
|
Re: Easy way to access SVN revision in code?
This works for ant:
<condition property="isWindows"> <os family="windows" /> </condition> <target name="do.run.Windows" if="isWindows"> <exec executable="cmd" dir="${your-target-dir}" > <arg line="/C command-to-run arg1 arg2 arg3" /> </exec> </target> |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|