Copy resource files to output.dir for custom xhtml
Posted: Tue Apr 12, 2016 9:07 pm
Hi,
I am creating a custom plugin based on the xhtml plugin. The transform appears to be working, but I cannot get the resource files from my plugin to copy over to the output directory. I'm using DITA-OT 2.2.2 and have it configured properly in oXygenXML 17.1 to use that toolkit.
Here's my plugin.xml:
My conductor.xml:
My build file:
What am I missing? I can't seem to get the files to copy from my plugin/resource directory to the output directory.
Thanks,
--Scott
I am creating a custom plugin based on the xhtml plugin. The transform appears to be working, but I cannot get the resource files from my plugin to copy over to the output directory. I'm using DITA-OT 2.2.2 and have it configured properly in oXygenXML 17.1 to use that toolkit.
Here's my plugin.xml:
Code: Select all
<plugin id="com.company.xhtml">
<feature extension="dita.xsl.xhtml" value="dita2custom.xsl" type="file"/>
<feature extension="dita.conductor.target.relative" file="conductor.xml"/>
</plugin>
Code: Select all
<project name="com.company.custom.conductor">
<import file="build_dita2custom.xml"/>
</project>
Code: Select all
<project xmlns:dita="http://dita-ot.sourceforge.net" name="dita2custom">
<property name="dita2custom.plugin.path" value="${dita.dir}/plugins/com.company.custom/"/>
<target name="dita2custom.init" depends="copyfiles">
<property name="html-version" value="xhtml"/>
</target>
<target name="dita2custom"
depends="dita2custom.init,
build-init,
preprocess,
xhtml.topics,
dita.map.xhtml">
</target>
<target name="copyfiles">
<!-- copy files -->
<copy todir="${output.dir}">
<fileset dir="${dita2custom.plugin.path}${file.separator}resource"/>
</copy>
</target>
</project>
Thanks,
--Scott