Getting the OFBiz version number

You may use the ANT build script found in the install directory to easily find the OFBiz version number.

Note

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.

Getting ready

There are no special prerequisite requirements to perform this task.

How to do it...

You can find the OFBiz version by following these steps.

  1. From the install directory, open a command line or console window (note: you do not need to stop OFBiz to perform this task).
  2. Type in the following command:
    ant svninfo
    
  3. You will observe results as shown:
    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
    
  4. The [echo] Rev:903429 line gives us the version number as 903429.

How it works...

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.

Tip

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.

There's more...

If you are running Subversion locally, you may use Subversion to determine the OFBiz version number as shown here:

  1. From the install directory, open a command line.
  2. Type in the following command:
    svn info
    
  3. Observe the results as posted to the command line:
There's more...

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:

  1. Navigate to the OFBiz install directory.
  2. Find the .svn sub-directory as shown in the figure.
  3. From inside the .svn directory, locate the entries file.
  4. Open this file in any text editor and observe the version number information as shown here:
There's more...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.98.148