Is it possible that a directory copied and pasted to a particular directory using XHTML plugin in DITA OT 1.8.5

怎甘沉沦 提交于 2020-01-06 15:17:33

问题


Is it possible that a directory or a file copying from 'resource' folder in org.dita.xhtml to out put folder generated by the XHTML DITA OT transform.

If its possible using xsl changes in plugin its possible means provide me the code.

Any other way is there means please guide me the steps to do.

Please assist me.


回答1:


You should use the depend.preprocess.post extension point, or another one that fits your needs, to call a new Ant target.

plugin.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 

myAntStuffWrapper.xml

<dummy>
  <import file="myAntStuff.xml"/>
</dummy>

myAntStuff.xml

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>


来源:https://stackoverflow.com/questions/42024569/is-it-possible-that-a-directory-copied-and-pasted-to-a-particular-directory-usin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!