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