0

Mylyn WikiText ユーザー ガイドを使用してテキスタイル ファイルを Eclipse ヘルプに変換する方法を学習しましたが、ant を使用してこれを実行できるようにしたいと考えています。 Eclipse ヘルプに変換して、複数の開発者が最小限の競合でヘルプ ページを作成できるようにします。

次の ant スクリプトは、「doc」フォルダー内のすべての *.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

Mylyn のすべての機能がインストールされていることは確かなので、Ant スクリプトはそれらの場所を認識していないようです。これを修正する方法を知っている人はいますか?

4

1 に答える 1

1

ディレクトリにwikitextスタンドアロンパッケージがインストールされていますdocか?

これは、taskdefが使用するパスを次のように定義するときに予想されることです。

<property name="wikitext.standalone" value="doc" />

ウィキテキストパッケージが別のディレクトリにあると推測します。

次に、テキストファイルのルートと同じディレクトリを使用します。wikitextスタンドアロンパッケージをテキストファイルから分離しておくことをお勧めします。

于 2011-11-24T10:58:54.157 に答える