oasis-open / dita-rng-converter

OASIS TC Open Repository: The DITA RNG Converter provides cross-platform tools for generating DITA-conforming DTD- and XSD-format versions of RELAX NG DITA grammars: document type shells, vocabulary modules, and constraint modules. It makes it as easy as possible to develop and maintain DITA grammars by allowing use of RELAX NG syntax.
https://github.com/oasis-open/dita-rng-converter
Apache License 2.0
7 stars 10 forks source link

Missing directories #11

Closed stefan-jung closed 6 years ago

stefan-jung commented 7 years ago

The transformation fails, because /lib does not exist. This is related to the following lines in the build.xml:

<property name="toolsDir" location="${basedir}/../../tools"/>
<property name="javaLibDir" location="${basedir}/lib"/>
nakohdo commented 6 years ago

I can confirm this behavior. The "javaLibDir" property is used only once to create a fileset with Saxon-related Java files:

<path id="saxonClasspath">
    <fileset dir="${javaLibDir}">
      <include name="**/saxon9*.jar"/>
      <include name="**/xml-resolver*.jar"/>
      <include name="**/resolver*.jar"/>
    </fileset>
</path>
nakohdo commented 6 years ago

Setting the "javaLibDir" property to point to oXygen's \lib directory seems to solve the problem.

<property name="javaLibDir" location="C:\path to oXygen installation directory\Oxygen XML Editor 19\lib" />
nakohdo commented 6 years ago

A related problem is the setting of the "saxonDir" property:

<property name="saxonDir" location="${javaLibDir}/saxon"/> didn't work for me so as a workaround I changed the setting as follows: <property name="saxonDir" location="${javaLibDir}" />

drmacro commented 6 years ago

New target OT is 3.x, where the lib structure is different. Will correct code to reflect.

drmacro commented 6 years ago

I think I've corrected this by ensuring that the lib/ dir is populated in the git repo and adding the necessary jars.

drmacro commented 6 years ago

Closing this as obsolete and/or fixed. Creating a new issue to track update of OT plugins to work with 3.x