首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用ant将textile转换为Eclipse help?

如何使用ant将textile转换为Eclipse help?
EN

Stack Overflow用户
提问于 2011-11-24 18:24:31
回答 1查看 488关注 0票数 0

我一直在使用Mylyn WikiText User Guide来学习如何将textile文件转换为Eclipse help,但我也希望能够使用ant来实现这一点,因为最终,我希望many textile files contribute to a single textile file then convert to Eclipse help能够使多个开发人员能够以最小的冲突创建帮助页面。

下面的ant脚本将获取'doc‘文件夹中的所有*.textile文件,并将它们转换为Eclipse help:

代码语言:javascript
复制
<?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>

我得到以下错误:

代码语言:javascript
复制
[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

我非常确定我已经安装了所有的Mylyn特性,所以看起来ant脚本不知道在哪里可以找到它们。有人知道怎么解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-11-24 18:58:54

您是否在doc目录中安装了wikitext独立包?

这就是您定义taskdef使用的路径时所期望的,如下所示:

代码语言:javascript
复制
<property name="wikitext.standalone" value="doc" />

我猜你的wikitext包在不同的目录下。

然后使用相同的目录作为文本文件的根目录。我建议将wikitext独立包与您的文本文件分开。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8255510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档