DITA-OT plug-in integration

<oXygen/> general issues.
SD-Dave
Posts: 6

DITA-OT plug-in integration

Thu Aug 10, 2017 4:34 am

I am developing a custom DITA-OT PDF plugin that launches from an ANT build file. It is working, using an external DITA-OT installation. Now I would like to launch it from within Oxygen XML. I have tried using the ANT transformation scenario, both with the included DITA-OT installation that comes with Oxygen and the external DITA-OT directory. I have tried playing with the JRE and ANT directories in the options tab for the ANT transform. But I am getting errors regardless of what I try.

Below is the error log from Oxygen:

Executing:
"c:\program files (x86)\oxygen xml editor 19\jre/bin/java" -Xmx256m -classpath "C:\dita-ot-2.4.6/lib/ant-launcher.jar" "-Dant.home=C:\dita-ot-2.4.6" org.apache.tools.ant.launch.Launcher -f "QSR-Drum-Synth-Manual.ditamap" "-Dwebhelp.trial.license=no"

Buildfile: C:\Users\David\Documents\QSR-Drum-Synth\QSR-Drum-Synth-Manual.ditamap
C:\Users\David\Documents\QSR-Drum-Synth\learningmap.dtd could not be found

BUILD FAILED
java.io.FileNotFoundException: C:\Users\David\Documents\QSR-Drum-Synth\learningmap.dtd (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)...

Total time: 0 seconds

The process finished with exit code: 1
Radu
Posts: 5088

Re: DITA-OT plug-in integration

Thu Aug 10, 2017 8:14 am

Hi,

Looking at the command line Oxygen executes you created an ANT transformation scenario in Oxygen but as the value of the "Build File" path you set the path to the main DITA Map instead of setting the reference to the ANT build file.
I think that instead of a plain ANT transformation scenario you should create a transformation scenario of type "DITA OT". In the "Parameters" list you can define the "dita.dir" parameter and have it point to the DITA OT used for publishing.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests