You may use the ANT build script found in the install directory to easily find the OFBiz version number.
Note: this recipe only works if you are running a copy of OFBiz downloaded from the Subversion repository and you have a Subversion client on your CLASSPATH. Pre-built packages of 9.04 versions downloaded from the official Apache OFBiz website download page do not support this feature at the time of this writing.
You can find the OFBiz version by following these steps.
ant svninfo
Buildfile: build.xml svninfo: [echo] Creating svninfo [echo] Rev:903429 [delete] Deleting: /opt/release9.04/runtime/svninfo_tmp.xml [echo] Done! BUILD SUCCESSFUL Total time: 3 seconds
[echo] Rev:903429
line gives us the version number as 903429
.OFBiz uses the ANT Java build tool to both build OFBiz code creating Java executables and manage the OFBiz build process. The version number returned from the ANT command line invocation is the "last changed revision", meaning this is the last version that saw an actual commit to the code base.
Note: the "last changed revision" may not be the same as the version number associated with your download. To find the version number of your download, you will need to either run the Subversion command to get the version number or, if you don't have Subversion installed locally, retrieve the version number from your download directly from the text file that contains this information.
If you are running Subversion locally, you may use Subversion to determine the OFBiz version number as shown here:
svn info
In addition to using ANT or Subversion to determine the installed version, you may also go directly to the location on disk where the version information is kept. You may need to resort to this if you do not have Subversion installed or if your ANT file is corrupt. The process is shown here:
.svn
sub-directory as shown in the figure. .svn
directory, locate the entries
file.18.188.98.148