different libs in single framework

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

different libs in single framework

Post by Patrik »

Hi,

the requirement is to have a framework that works with different oxygen versions. And this framework includes a saxon extension library. Since Saxon has changed the internal interface from 9.5 to 9.6 a library that works with oxygen 16.1 won't work with oxygen 17.0.

Now the question is if there is some good way to provide both libraries (for saxon 9.5 and 9.6) in different folders and configure the framework in such a way that - depending on the oxygen version - the right library will be put into the classpath.

I'm already aware of the variable $env()$ but this would require the user to set environment variables which is not very user frriendly...

Thanks and regards,
Patrik
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: different libs in single framework

Post by Radu »

Hi Patrik,

Could you tell me more about how the framework is using that extension that it references in the classpath?
Does it have a transformation scenario which uses it or does it use some Schematron schema?
Do you have some custom Java code which installs the extension?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
toby
Posts: 6
Joined: Thu Mar 19, 2009 3:37 pm
Location: Tübingen, Germany
Contact:

Re: different libs in single framework

Post by toby »

Hi Radu,

Patrik wrote this forum post after having a conversation with us at pagina. You probably do remember, that we provide a single XPR file for our project which needs to be backward compatible with the last three oxygen versions (~2 years back). So the current XPR needs to run in 16.1, 17.1, 18.0

For our test with Patrik's XsltGui library we experienced errors in 16.1 and Patrik did some fixes for 16.1. However, the 16.1 JAR won't run in 17 and 18 and vice versa.
We're using it from a transformation scenario.
We don't have a plugin or extension. We're providing the XPR file and some frameworks in the file system.

One possibility for us could be, to deliver two JAR files (one for 16.1 and one for 17/18) if there is a possibility to let oxygen choose the appropriate version.
If that's not possible, probably Patrik and I can find a Java way which handels the different Saxon interfaces without exceptions...
Or probably you have an idea how to incorporate Patriks changes for 16.1 in a single 16-18 version?
https://github.com/dita-semia/XsltGui/c ... 9f2d5aa0ac

Thanks,
Tobias
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: different libs in single framework

Post by Radu »

Hi Tobias,

Other than providing a separate framework for Oxygen 16.1 which comes with its particular extensions JAR library I'm not sure what else you could do.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
toby
Posts: 6
Joined: Thu Mar 19, 2009 3:37 pm
Location: Tübingen, Germany
Contact:

Re: different libs in single framework

Post by toby »

Hi Radu,

alright, thanks.

So we're leaving that for now as is and won't implement...
Thanks anyways.

Cheers,
Tobias
Post Reply