Skip to content

DITA-OT build fails - something to do with the dita-custom-ant-parser plugin? #4

@tthorner-sc

Description

@tthorner-sc

Hi,

I'm using a text editor and running DITA-OT 3.7.2 from the command line (Windows 10). I'm trying to build a proof of concept document from a single ditamap that references three different source filetypes (DITA/asciidoc/Markdown).

I also tried this with Jason Fox's Pandoc-based OT plugin and got a similar error, so this might be an issue of PEBKAC on my end.

I appreciate any insights into where I'm going wrong. Here's the output I get from DITA-OT:

 [gen-list]  [asciidoc] Result: 1
 [gen-list]
 [gen-list] BUILD FAILED
 [gen-list] C:\Program Files\DITA-OT 3.x (Manual Install)\dita-ot-3.7.2\plugins\com.oxygenxml.ant.parser.dita\resources\build.xml:19: The following error occurred while executing this line:
 [gen-list] C:\Program Files\DITA-OT 3.x (Manual Install)\dita-ot-3.7.2\plugins\com.oxygenxml.ant.parser.dita\resources\build.xml:34: input file C:\Users\xxx\AppData\Local\Temp\test17911611251485333634.outTemp1 does not exist
 [gen-list]
 [gen-list] Total time: 0 seconds
 [gen-list] [DOTJ013E][ERROR] Failed to parse the referenced file 'file:/C:/Users/xxx/Documents/Temp/DITA_Asciidoc_Markdown/dita-custom-ant-parser/topics/ug_ldap_synchronization.asciidoc'.: java.lang.RuntimeException: Unable to execute build file
    [chunk] null
    [chunk] null

The build.xml lines that get called out in the OT error message have this content:
Line 19: <antcall target="asciidoc2dita"/>
Line 34: <xslt in="${output.file.temp1}" out="${output.file.temp2}" style="db4-upgrade.xsl">

I added the asciidoc installation path on line 8 of the same build.xml file, as follows:
<property name="asciidoc.install.dir" value="C:\Users\xxx\Documents\asciidoc-10.2.0"/>

My ditamap looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map chunk="to-content">
 <title>Three Filetypes - DITA/Asciidoc/Markdown</title>
 <topicref href="topics/t_demo_intro.dita" format="dita"/>
 <topicref href="topics/ug_ldap_synchronization.asciidoc" format="ant-parser"/>
 <topicref href="topics/t_sys_container_ldap.dita" format="dita"/>
 <topicref href="topics/test.md" format="markdown"/>
</map>

This demo project's folder structure is fairly standard, the ditamap is at the top level along with a topics folder and others that the OT creates (e.g. out).

Thanks much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions