Determine installed version of Oxygen XML

Oxygen general issues.
chrullrich
Posts: 1
Joined: Thu Aug 21, 2014 11:25 am

Determine installed version of Oxygen XML

Post by chrullrich »

Hello,
is there a way to find out which version of Oxygen XML is installed when using the platform independent distribution (oxygen.tar.gz)? That is, is there a file somewhere that has the release version and/or build number in it?
I have found a few that contain version numbers of components, such as frameworks/dita/DITA-OT3.x/README_OXYGEN.txt:

Code: Select all

DITA Open Toolkit bundled with Oxygen 25.1, build 2023031500
I would prefer a "primary" source, however.
Thanks for any hints.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Determine installed version of Oxygen XML

Post by Radu »

Hi,
If you can start Oxygen you can look in the main menu Help->"About" dialog.
Other than that the main version information is located inside a Java class which is part of our main JAR library so it's not something accessible to a script.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: Determine installed version of Oxygen XML

Post by chrispitude »

Hi chrullrich,

We have a bash script that dowloads and extracts the platform-independent Oxygen Publishing Engine, then renames the directory according to the Oxygen build number. We use the DITA-OT.README_OXYGEN.txt file for this purpose:

Code: Select all

# rename by build number, then make a filesystem link
BUILD=$(perl -ne 'm{Oxygen \d\d\.\d, build (\d+)} && print $1;' ${OXYPUB}/DITA-OT.README_OXYGEN.txt)
VERSION=$(perl -ne 'm{Oxygen (\d\d\.\d), build \d+} && print $1;' ${OXYPUB}/DITA-OT.README_OXYGEN.txt)
OXYPUB_FULL=${OXYPUB}-${VERSION}-${BUILD}
rm -rf ${OXYPUB_FULL}
mv ${OXYPUB} ${OXYPUB_FULL}
ln -s ${OXYPUB_FULL} ${OXYPUB}
We reference the publishing engine with a filesystem link:

Code: Select all

$ ls -l oxy*
lrwxrwxrwx 1 chrispy chrispy   65 Mar 16 09:55 oxygen-publishing-engine -> /home/chrispy/syncrosoft/oxygen-publishing-engine-25.1-2023031411
drwxr-xr-x 1 chrispy chrispy  512 Mar 16 09:55 oxygen-publishing-engine-25.1-2023031411
drwxr-xr-x 1 chrispy chrispy  512 Mar 15 15:32 oxygen-publishing-engine-25.0-2023012609
By pointing the filesystem link at different installation directories, we can configure the environment to use different publishing engine builds.
Post Reply