DITA-OT 2.4.5 : error lauching my plugin

82 views
Skip to first unread message

Marie

unread,
Mar 29, 2017, 6:17:50 PM3/29/17
to DITA-OT Users
I developed a plugin that extends the DITA-OT HTML5 output using DITA-OT 2.4.2.
I downloaded the DITA-OT 2.4.5 and I integrated my plugin successfully with this last version.
But when I launch my plugin I got the following error : 
Error : Target "copy-revflag" does not exist in the project "DOST". It is used from target "tocjsDefaultXhtmlOutput".

I don't understand this error, can anyone help me please ?
Thanks in advance.

Marie
Error_LaunchPlugIn.jpg

Jarno Elovirta

unread,
Mar 30, 2017, 12:29:18 AM3/30/17
to Marie, DITA-OT Users
Hi,

I downloaded 2.4.5 and ran TocJS transtype and it went through without errors. Thus the problem is probably in your plugin. Without seeing your plugin code it’s not possible to debug this further.
Cheers,

Jarno


--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Error_LaunchPlugIn.jpg>

signature.asc

Marie

unread,
Apr 2, 2017, 2:15:32 PM4/2/17
to DITA-OT Users, mariepier...@gmail.com
Hello Jarno,

Great thanks for your help.
I checked again my plugin with DITA-OT 2.4.2 and it worked fine. So I compared the DITA-OT build.xml file for the two DITA-OT versions and I found that there is a difference :
In the build.xml DITA-OT 2.4.2 all the plugins are imported, but in the build.xml DITA-OT 2.4.5 only the 3 first imports are present :
<import file="plugins/org.dita.base/build_init.xml"/>
<import file="plugins/org.dita.base/build_preprocess.xml"/>
<import file="plugins/org.dita.html5/build_dita2html5.xml"/>

That is to say that my plugin integration with DITA-OT 2.4.5 was not completed (but no error raised when I launch the integration with the command line).

I solved my integration problem with launching  twice the command "dita --install" from 2 different directories : the first time from the dita-ot directory, the second time from my plugin directory. Of course the path environment variable is set to the dita-ot/bin directory.

I hope that this will help. I will send you my plugin by e-mail.

Regards,

Marie

Jarno Elovirta

unread,
Apr 3, 2017, 2:04:13 AM4/3/17
to Marie, DITA-OT Users
In your plugin, you use 

<feature extension="dita.conductor.target.relative" value="integrator.xml"/>

And in the integrator.xml you have

<project name="dita2lci-competences" basedir=".">
<import file = "${dita.plugin.com.lci.competences.dir}/build.xml"/>
</project>

That extension point requires that imports are just relative paths. So change this to 

<import file = "build.xml"/>

That may help in the integration issues. Also, run the install process with -v option for verbose logging.

Jarno
signature.asc

Marie

unread,
Apr 3, 2017, 4:12:16 PM4/3/17
to DITA-OT Users, mariepier...@gmail.com
Thanks a lot !

I'm happy that the integration is working fine !

Regards,

Marie
Reply all
Reply to author
Forward
0 new messages