0

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.

User515
  • 186
  • 12

1 Answers1

2

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>
Stefan Jung
  • 1,209
  • 11
  • 20
  • @ Stefan Eike , please explain about those attributes specification inside the tags – User515 Feb 06 '17 at 07:32
  • "todir" is the target directory. "**/*.bar" means, all files with the file ending .bar from the current directory and all subdirectories. Google for "Ant fileset" – Stefan Jung Feb 06 '17 at 09:14
  • if i am want to copy files and folder from 'C:\DITA-OT\DITA-OT1.8.5-XHTML\plugins\org.dita.xhtml\resource' to output directory which is created by plugin like this (E:\out\xhtml) then how can i add attribures todir="foo" and name="**/*.bar" of tags and please give me tags code. Thanks in advance – User515 Feb 07 '17 at 06:41