0
我一直在使用Mylyn WikiText User Guide来学习如何将纺织文件转换为Eclipse帮助,但我也希望能够使用ant来做到这一点,因为最终我想让many textile files contribute to a single textile file then convert to Eclipse help使多个开发人员能够用最小的代码创建帮助页面冲突。如何将纺织品转换为使用蚂蚁的Eclipse帮助?
以下ant脚本应该采取一切* .textile文件中的 '文档' 文件夹,并将其转换到Eclipse帮助:
<?xml version="1.0"?>
<project name="helpwikitext" default="generate-help">
<property name="wikitext.standalone" value="doc" />
<path id="wikitext.classpath">
<fileset dir="${wikitext.standalone}">
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
</fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
<target name="generate-help" description="Generate Eclipse help from textile source">
<wikitext-to-eclipse-help markupLanguage="Textile" multipleOutputFiles="true" navigationImages="true" helpPrefix="help">
<fileset dir="${basedir}">
<include name="doc/*.textile" />
</fileset>
<stylesheet url="styles/help.css" />
<stylesheet url="styles/main.css" />
</wikitext-to-eclipse-help>
</target>
</project>
我得到以下错误:
[taskdef] Could not load definitions from resource org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties. It could not be found.
build.xml:11: Problem: failed to create task or type wikitext-to-eclipse-help
我m相当肯定我已经安装了Mylyn的所有功能,所以它看起来像蚂蚁脚本不知道在哪里找到它们。有谁知道如何解决这一问题?
完美,谢谢。我从http://www.eclipse.org/mylyn/downloads/下载独立软件包,将'doc'文件夹重命名为'jars',并将jar放在那里。 – PhilJ