【发布时间】:2017-06-23 04:32:33
【问题描述】:
这是我尝试过的代码,
将文件夹和文件从 XHTML 插件 - 资源文件夹复制到 XHTML DITA-OT 转换创建的输出位置。
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>
使用这个,我们需要将多个文件和文件夹复制到输出位置。 IE。 (C:\DITA-OT1.8.5\plugins\org.dita.xhtml\resource) 到输出位置 (E:\task\out\xmthl) - 由 XHTML DITA OT 转换创建。
请解释一下如何指定以下标签。
<copy todir="foo">
and
<include name="**/*.bar"/>
【问题讨论】:
-
这是 Stefan Eike 在这里回答的直接副本 (stackoverflow.com/questions/42024569/…)...也许我没有看到这一点,但如果你问我,你是在试图让某人做你的工作轻松。
-
我试图将“资源”文件夹从插件复制到输出位置,但它没有出现,你能告诉我这个的语法吗?
标签: xml xhtml dita oxygenxml dita-ot